diff options
Diffstat (limited to 'gdb/gdbserver/linux-low.c')
-rw-r--r-- | gdb/gdbserver/linux-low.c | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c index c37c6d2..2bc91c2 100644 --- a/gdb/gdbserver/linux-low.c +++ b/gdb/gdbserver/linux-low.c @@ -3617,18 +3617,10 @@ wait_for_sigstop (void) if (debug_threads) debug_printf ("Previously current thread died.\n"); - if (non_stop) - { - /* We can't change the current inferior behind GDB's back, - otherwise, a subsequent command may apply to the wrong - process. */ - current_thread = NULL; - } - else - { - /* Set a valid thread as current. */ - set_desired_thread (0); - } + /* We can't change the current inferior behind GDB's back, + otherwise, a subsequent command may apply to the wrong + process. */ + current_thread = NULL; } } |