]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
btrace, infrun: replay scheduler locking only depends on to-be-resumed thread
authorMarkus Metzger <markus.t.metzger@intel.com>
Fri, 25 Oct 2024 13:53:04 +0000 (13:53 +0000)
committerMarkus Metzger <markus.t.metzger@intel.com>
Mon, 3 Nov 2025 06:33:39 +0000 (06:33 +0000)
commit07fe1be26cb445ee254c962ddf382a702ff68c95
tree4eff74dae697fe4743c215650bdfc4300432fce9
parentd0844398e2b31632a6a486fc7f103d47d50fb4e4
btrace, infrun: replay scheduler locking only depends on to-be-resumed thread

Similar to the parent commit, simplify schedlock_applies() by only
checking the argument thread.

When resuming that thread, GDB will automatically stop replaying its
inferior.  The replay state of other inferiors is not considered by
user_visible_resume_ptid(), so let's not consider them in
schedlock_applies(), either.

Approved-By: Tom Tromey <tom@tromey.com>
gdb/infrun.c