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 | |
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')
-rw-r--r-- | gdb/gdbserver/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/gdbserver/server.c | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 19227d1..8baf82e 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,5 +1,10 @@ 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com> + * server.c (main): Print child status or termination signal from + variable 'signal', not 'sig'. + +2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com> + * linux-low.c (linux_read_memory): Change return type to int. Check for and return error from ptrace(). * target.c (read_inferior_memory): Change return type to int. Pass 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) |