From: Yao Qi Date: Tue, 17 May 2016 07:24:26 +0000 (+0100) Subject: Use unsuspend_all_lwps X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fcdad592cd1f76046c5e4b7a2b0337e146d1e796;p=binutils-gdb.git Use unsuspend_all_lwps 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 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps instead of find_inferior. --- diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index f05144a0d94..8b379257c69 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,8 @@ +2016-05-17 Yao Qi + + * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps + instead of find_inferior. + 2016-05-05 Yao Qi * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c index 8e1e2fce4ab..81134b0c525 100644 --- a/gdb/gdbserver/linux-low.c +++ b/gdb/gdbserver/linux-low.c @@ -2966,7 +2966,7 @@ linux_stabilize_threads (void) } } - find_inferior (&all_threads, unsuspend_one_lwp, NULL); + unsuspend_all_lwps (NULL); stabilizing_threads = 0;