This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[gdbserver/win32] Remove WSTOPSIG call from win32-low.c
- From: Pedro Alves <pedro_alves at portugalmail dot pt>
- To: gdb-patches at sourceware dot org
- Date: Tue, 08 May 2007 03:09:15 +0100
- Subject: [gdbserver/win32] Remove WSTOPSIG call from win32-low.c
Hi all,
There is a WSTOPSIG call on a value not returned from
wait or waitpid, in win32-low.c. The our_status.value.sig always
contains a TARGET_SIGNAL_*.
No functionality change here, as this is just a debug output.
OK?
Cheers,
Pedro Alves
2007-05-07 Pedro Alves <pedro_alves@portugalmail.pt>
* win32-low.c (win32_wait): Don't use WSTOPSIG.
---
gdb/gdbserver/win32-low.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
Index: src/gdb/gdbserver/win32-low.c
===================================================================
--- src.orig/gdb/gdbserver/win32-low.c 2007-04-16 23:03:58.000000000 +0100
+++ src/gdb/gdbserver/win32-low.c 2007-04-16 23:18:44.000000000 +0100
@@ -1092,13 +1092,8 @@ win32_wait (char *status)
}
else if (our_status.kind == TARGET_WAITKIND_STOPPED)
{
-#ifndef __MINGW32CE__
- OUTMSG2 (("Child Stopped with signal = %x \n",
- WSTOPSIG (our_status.value.sig)));
-#else
- OUTMSG2 (("Child Stopped with signal = %x \n",
+ OUTMSG2 (("Child Stopped with signal = %d \n",
our_status.value.sig));
-#endif
*status = 'T';