Use unsuspend_all_lwps
authorYao Qi <yao.qi@linaro.org>
Tue, 17 May 2016 07:24:26 +0000 (08:24 +0100)
committerYao Qi <yao.qi@linaro.org>
Tue, 17 May 2016 07:24:26 +0000 (08:24 +0100)
This patch is to replace find_inferior (&all_threads, unsuspend_one_lwp, NULL)
with unsuspend_all_lwps (NULL), which is shorter.  They are equivalent
to each other.

gdb/gdbserver:

2016-05-17  Yao Qi  <yao.qi@linaro.org>

* linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
instead of find_inferior.

gdb/gdbserver/ChangeLog
gdb/gdbserver/linux-low.c

index f05144a0d947d252a472e0338bc0d08cd2f0b0ab..8b379257c69503b4df9902666e0b34204ed39ed7 100644 (file)
@@ -1,3 +1,8 @@
+2016-05-17  Yao Qi  <yao.qi@linaro.org>
+
+       * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
+       instead of find_inferior.
+
 2016-05-05  Yao Qi  <yao.qi@linaro.org>
 
        * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
index 8e1e2fce4ab5545dcd3890fdc447d4629e564045..81134b0c5258eb43e4fd6c966d3d9f6dd19e33ca 100644 (file)
@@ -2966,7 +2966,7 @@ linux_stabilize_threads (void)
        }
     }
 
-  find_inferior (&all_threads, unsuspend_one_lwp, NULL);
+  unsuspend_all_lwps (NULL);
 
   stabilizing_threads = 0;
 
This page took 0.034624 seconds and 4 git commands to generate.