mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-25 02:53:48 +08:00
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. gdb/ * record-btrace.c (record_btrace_wait): Replace non_stop check with target_is_non_stop_p ().
This commit is contained in:
parent
7ae4ea7d0d
commit
5953356cc4
@ -1,3 +1,8 @@
|
||||
2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
|
||||
|
||||
* record-btrace.c (record_btrace_wait): Replace non_stop check with
|
||||
target_is_non_stop_p ().
|
||||
|
||||
2015-09-15 Pierre-Marie de Rodat <derodat@adacore.com>
|
||||
|
||||
* ada-typeprint.c (print_array_type): Do not describe arrays as
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user