diff options
author | Daniel Jacobowitz <drow@false.org> | 2004-03-05 03:44:27 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2004-03-05 03:44:27 +0000 |
commit | 3a7fb99b71337a9a8f99a54a41ca10a57aee4fe0 (patch) | |
tree | dddc0ca28bf5d8020c5a41a66623531f01e2d119 /gdb/gdbserver/server.c | |
parent | c3e735a6a3d7b849b44f102a0c3e2722d49666b7 (diff) | |
download | gdb-3a7fb99b71337a9a8f99a54a41ca10a57aee4fe0.zip gdb-3a7fb99b71337a9a8f99a54a41ca10a57aee4fe0.tar.gz gdb-3a7fb99b71337a9a8f99a54a41ca10a57aee4fe0.tar.bz2 |
* server.c (main): Print child status or termination signal from
variable 'signal', not 'sig'.
Diffstat (limited to 'gdb/gdbserver/server.c')
-rw-r--r-- | gdb/gdbserver/server.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/gdbserver/server.c b/gdb/gdbserver/server.c index cc8923e..93e3ea4 100644 --- a/gdb/gdbserver/server.c +++ b/gdb/gdbserver/server.c @@ -573,9 +573,10 @@ main (int argc, char *argv[]) if (status == 'W') fprintf (stderr, - "\nChild exited with status %d\n", sig); + "\nChild exited with status %d\n", signal); if (status == 'X') - fprintf (stderr, "\nChild terminated with signal = 0x%x\n", sig); + fprintf (stderr, "\nChild terminated with signal = 0x%x\n", + signal); if (status == 'W' || status == 'X') { if (extended_protocol) |