This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[gdbserver] fix braino
- From: Pedro Alves <pedro at codesourcery dot com>
- To: gdb-patches at sourceware dot org
- Date: Wed, 25 Aug 2010 17:49:44 +0100
- Subject: [gdbserver] fix braino
I found some code erroneously guarded under "debug_threads".
I've applied this to fix it.
Tested on x86_64-unknown-linux and checked in.
--
Pedro Alves
2010-08-25 Pedro Alves <pedro@codesourcery.com>
* linux-low.c (linux_wait_1): Move non-debugging code out of
`debug_threads' control.
---
gdb/gdbserver/linux-low.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
Index: src/gdb/gdbserver/linux-low.c
===================================================================
--- src.orig/gdb/gdbserver/linux-low.c 2010-08-25 17:28:31.000000000 +0100
+++ src/gdb/gdbserver/linux-low.c 2010-08-25 17:39:31.000000000 +0100
@@ -2200,9 +2200,10 @@ Check if we're already there.\n",
if (debug_threads)
fprintf (stderr, "dequeued one signal.\n");
}
- else if (debug_threads)
+ else
{
- fprintf (stderr, "no deferred signals.\n");
+ if (debug_threads)
+ fprintf (stderr, "no deferred signals.\n");
if (stabilizing_threads)
{