Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(152)

Side by Side Diff: gdb/gdbserver/target.c

Issue 11969036: Merge GDB 7.5.1 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@master
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gdb/gdbserver/target.h ('k') | gdb/gdbserver/tracepoint.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Target operations for the remote server for GDB. 1 /* Target operations for the remote server for GDB.
2 Copyright (C) 2002, 2004-2005, 2007-2012 Free Software Foundation, 2 Copyright (C) 2002, 2004-2005, 2007-2012 Free Software Foundation,
3 Inc. 3 Inc.
4 4
5 Contributed by MontaVista Software. 5 Contributed by MontaVista Software.
6 6
7 This file is part of GDB. 7 This file is part of GDB.
8 8
9 This program is free software; you can redistribute it and/or modify 9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by 10 it under the terms of the GNU General Public License as published by
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 if (connected_wait) 80 if (connected_wait)
81 server_waiting = 1; 81 server_waiting = 1;
82 82
83 ret = (*the_target->wait) (ptid, ourstatus, options); 83 ret = (*the_target->wait) (ptid, ourstatus, options);
84 84
85 if (ourstatus->kind == TARGET_WAITKIND_EXITED) 85 if (ourstatus->kind == TARGET_WAITKIND_EXITED)
86 fprintf (stderr, 86 fprintf (stderr,
87 "\nChild exited with status %d\n", ourstatus->value.integer); 87 "\nChild exited with status %d\n", ourstatus->value.integer);
88 else if (ourstatus->kind == TARGET_WAITKIND_SIGNALLED) 88 else if (ourstatus->kind == TARGET_WAITKIND_SIGNALLED)
89 fprintf (stderr, "\nChild terminated with signal = 0x%x (%s)\n", 89 fprintf (stderr, "\nChild terminated with signal = 0x%x (%s)\n",
90 » target_signal_to_host (ourstatus->value.sig), 90 » gdb_signal_to_host (ourstatus->value.sig),
91 » target_signal_to_name (ourstatus->value.sig)); 91 » gdb_signal_to_name (ourstatus->value.sig));
92 92
93 if (connected_wait) 93 if (connected_wait)
94 server_waiting = 0; 94 server_waiting = 0;
95 95
96 return ret; 96 return ret;
97 } 97 }
98 98
99 int 99 int
100 start_non_stop (int nonstop) 100 start_non_stop (int nonstop)
101 { 101 {
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 const char *kind_str = "status->kind = "; 150 const char *kind_str = "status->kind = ";
151 151
152 switch (ws->kind) 152 switch (ws->kind)
153 { 153 {
154 case TARGET_WAITKIND_EXITED: 154 case TARGET_WAITKIND_EXITED:
155 sprintf (buf, "%sexited, status = %d", 155 sprintf (buf, "%sexited, status = %d",
156 kind_str, ws->value.integer); 156 kind_str, ws->value.integer);
157 break; 157 break;
158 case TARGET_WAITKIND_STOPPED: 158 case TARGET_WAITKIND_STOPPED:
159 sprintf (buf, "%sstopped, signal = %s", 159 sprintf (buf, "%sstopped, signal = %s",
160 » kind_str, target_signal_to_name (ws->value.sig)); 160 » kind_str, gdb_signal_to_name (ws->value.sig));
161 break; 161 break;
162 case TARGET_WAITKIND_SIGNALLED: 162 case TARGET_WAITKIND_SIGNALLED:
163 sprintf (buf, "%ssignalled, signal = %s", 163 sprintf (buf, "%ssignalled, signal = %s",
164 » kind_str, target_signal_to_name (ws->value.sig)); 164 » kind_str, gdb_signal_to_name (ws->value.sig));
165 break; 165 break;
166 case TARGET_WAITKIND_LOADED: 166 case TARGET_WAITKIND_LOADED:
167 sprintf (buf, "%sloaded", kind_str); 167 sprintf (buf, "%sloaded", kind_str);
168 break; 168 break;
169 case TARGET_WAITKIND_EXECD: 169 case TARGET_WAITKIND_EXECD:
170 sprintf (buf, "%sexecd", kind_str); 170 sprintf (buf, "%sexecd", kind_str);
171 break; 171 break;
172 case TARGET_WAITKIND_SPURIOUS: 172 case TARGET_WAITKIND_SPURIOUS:
173 sprintf (buf, "%sspurious", kind_str); 173 sprintf (buf, "%sspurious", kind_str);
174 break; 174 break;
175 case TARGET_WAITKIND_IGNORE: 175 case TARGET_WAITKIND_IGNORE:
176 sprintf (buf, "%signore", kind_str); 176 sprintf (buf, "%signore", kind_str);
177 break; 177 break;
178 default: 178 default:
179 sprintf (buf, "%sunknown???", kind_str); 179 sprintf (buf, "%sunknown???", kind_str);
180 break; 180 break;
181 } 181 }
182 182
183 return buf; 183 return buf;
184 } 184 }
OLDNEW
« no previous file with comments | « gdb/gdbserver/target.h ('k') | gdb/gdbserver/tracepoint.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698