* linux-low.c (linux_wait, linux_send_signal): Don't test
[deliverable/binutils-gdb.git] / gdb / gdbserver / linux-low.c
index 9e94addd8cea3e21ac77a127ac1ecabefd8f3cd7..fbc3033f6724cfd2b1b794fc987f8b9b1fd8272c 100644 (file)
@@ -667,7 +667,7 @@ retry:
      then we need to make sure we restart the other threads.  We could
      pick a thread at random or restart all; restarting all is less
      arbitrary.  */
-  if (cont_thread > 0)
+  if (cont_thread != 0 && cont_thread != -1)
     {
       child = (struct thread_info *) find_inferior_id (&all_threads,
                                                       cont_thread);
@@ -1435,7 +1435,7 @@ linux_send_signal (int signum)
 {
   extern unsigned long signal_pid;
 
-  if (cont_thread > 0)
+  if (cont_thread != 0 && cont_thread != -1)
     {
       struct process_info *process;
 
This page took 0.025672 seconds and 4 git commands to generate.