summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Metzger <markus.t.metzger@intel.com>2015-09-08 16:13:47 +0200
committerMarkus Metzger <markus.t.metzger@intel.com>2015-09-17 14:11:37 +0200
commitf5f10318832f2623eb6b5347c44d2277e150c89b (patch)
tree958be1c103d8947ea4378d83146129d14000cce0
parent43691ca179b1e573ca01e7bff87404519d4a3d75 (diff)
downloadbinutils-gdb-f5f10318832f2623eb6b5347c44d2277e150c89b.tar.gz
btrace: fix non-stop check in to_wait
The record btrace target stops other threads in non-stop mode after stepping the to-be-resumed thread. The check is done on the non_stop variable. It should rather be done on target_is_non_stop_p (). With all-stop on top of non-stop, infrun will take care of stopping other threads. Signed-off-by: Markus Metzger <markus.t.metzger@intel.com> gdb/ * record-btrace.c (record_btrace_wait): Replace non_stop check with target_is_non_stop_p ().
-rw-r--r--gdb/record-btrace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/record-btrace.c b/gdb/record-btrace.c
index 9e16ab412df..2d8b20bf963 100644
--- a/gdb/record-btrace.c
+++ b/gdb/record-btrace.c
@@ -2104,7 +2104,7 @@ record_btrace_wait (struct target_ops *ops, ptid_t ptid,
*status = record_btrace_step_thread (tp);
/* Stop all other threads. */
- if (!non_stop)
+ if (!target_is_non_stop_p ())
ALL_NON_EXITED_THREADS (other)
other->btrace.flags &= ~BTHR_MOVE;