mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-11-16 12:34:43 +00:00
btrace: stopped_by_*() consider the selected thread
In stopped_by_sw_breakpoint() and stopped_by_hw_breakpoint(), we check whether any thread is replaying. This is unnecessary as it only matters if inferior_ptid is replaying. Narrow the check to inferior_ptid.
This commit is contained in:
@@ -2794,7 +2794,7 @@ record_btrace_target::can_execute_reverse ()
|
||||
bool
|
||||
record_btrace_target::stopped_by_sw_breakpoint ()
|
||||
{
|
||||
if (record_is_replaying (minus_one_ptid))
|
||||
if (record_is_replaying (inferior_ptid))
|
||||
{
|
||||
struct thread_info *tp = inferior_thread ();
|
||||
|
||||
@@ -2809,7 +2809,7 @@ record_btrace_target::stopped_by_sw_breakpoint ()
|
||||
bool
|
||||
record_btrace_target::stopped_by_hw_breakpoint ()
|
||||
{
|
||||
if (record_is_replaying (minus_one_ptid))
|
||||
if (record_is_replaying (inferior_ptid))
|
||||
{
|
||||
struct thread_info *tp = inferior_thread ();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user