summaryrefslogtreecommitdiffstats
path: root/gdb/gdbserver
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2004-03-05 03:44:27 +0000
committerDaniel Jacobowitz <drow@false.org>2004-03-05 03:44:27 +0000
commit3a7fb99b71337a9a8f99a54a41ca10a57aee4fe0 (patch)
treedddc0ca28bf5d8020c5a41a66623531f01e2d119 /gdb/gdbserver
parentc3e735a6a3d7b849b44f102a0c3e2722d49666b7 (diff)
downloadppe42-binutils-3a7fb99b71337a9a8f99a54a41ca10a57aee4fe0.tar.gz
ppe42-binutils-3a7fb99b71337a9a8f99a54a41ca10a57aee4fe0.zip
* server.c (main): Print child status or termination signal from
variable 'signal', not 'sig'.
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r--gdb/gdbserver/ChangeLog5
-rw-r--r--gdb/gdbserver/server.c5
2 files changed, 8 insertions, 2 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index 19227d1426..8baf82e9f6 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 cc8923e6c5..93e3ea431b 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)
OpenPOWER on IntegriCloud