]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
btrace: stopped_by_*() consider the selected thread
authorMarkus Metzger <markus.t.metzger@intel.com>
Fri, 25 Oct 2024 14:15:59 +0000 (14:15 +0000)
committerMarkus Metzger <markus.t.metzger@intel.com>
Mon, 3 Nov 2025 06:37:00 +0000 (06:37 +0000)
commit603d5fa176dd05d713dc21ea77ce7a5cbdd9770a
tree3b90521d7840c4d601c70f4031fdf0985bd1e0cd
parent10a280caf51a012cc3de94271cc4e39de6946ed1
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.
gdb/record-btrace.c