From: Daniel Jacobowitz Date: Fri, 5 Mar 2004 03:44:27 +0000 (+0000) Subject: * server.c (main): Print child status or termination signal from X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3a7fb99b71337a9a8f99a54a41ca10a57aee4fe0;p=binutils-gdb.git * server.c (main): Print child status or termination signal from variable 'signal', not 'sig'. --- diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 19227d14261..8baf82e9f6e 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,8 @@ +2004-03-04 Nathan J. Williams + + * server.c (main): Print child status or termination signal from + variable 'signal', not 'sig'. + 2004-03-04 Nathan J. Williams * linux-low.c (linux_read_memory): Change return type to diff --git a/gdb/gdbserver/server.c b/gdb/gdbserver/server.c index cc8923e6c5f..93e3ea431bb 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)