aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorYao Qi <yao.qi@linaro.org>2016-05-17 08:24:26 +0100
committerYao Qi <yao.qi@linaro.org>2016-05-17 08:24:26 +0100
commitfcdad592cd1f76046c5e4b7a2b0337e146d1e796 (patch)
tree36487ac318a36fc802d3b8afc2568846fe9003d9 /gdb
parentacac2e457a32e84814c212183ab2824869a27b5b (diff)
downloadgdb-fcdad592cd1f76046c5e4b7a2b0337e146d1e796.zip
gdb-fcdad592cd1f76046c5e4b7a2b0337e146d1e796.tar.gz
gdb-fcdad592cd1f76046c5e4b7a2b0337e146d1e796.tar.bz2
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 <yao.qi@linaro.org> * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps instead of find_inferior.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/gdbserver/ChangeLog5
-rw-r--r--gdb/gdbserver/linux-low.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index f05144a..8b37925 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -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):
diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c
index 8e1e2fc..81134b0 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;