From 3a7fb99b71337a9a8f99a54a41ca10a57aee4fe0 Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Fri, 5 Mar 2004 03:44:27 +0000 Subject: [PATCH] * server.c (main): Print child status or termination signal from variable 'signal', not 'sig'. --- gdb/gdbserver/ChangeLog | 5 +++++ gdb/gdbserver/server.c | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) 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) -- 2.30.2