]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/record-btrace.c
btrace: fix non-stop check in to_wait
authorMarkus Metzger <markus.t.metzger@intel.com>
Tue, 8 Sep 2015 14:13:47 +0000 (16:13 +0200)
committerMarkus Metzger <markus.t.metzger@intel.com>
Fri, 18 Sep 2015 12:17:41 +0000 (14:17 +0200)
commit5953356cc4f2bcbf76e2979c35283c11ce0ba992
tree053352eaa55a5022296f583a149370c97d493aa7
parent7ae4ea7d0db5228d8978d52bebac2b1d95a78560
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 ().
gdb/ChangeLog
gdb/record-btrace.c