]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb: use correct target in notify_thread_exited()
authorMarkus Metzger <markus.t.metzger@intel.com>
Fri, 24 Apr 2026 13:11:07 +0000 (13:11 +0000)
committerMarkus Metzger <markus.t.metzger@intel.com>
Mon, 11 May 2026 07:00:19 +0000 (07:00 +0000)
commitaca091c462db54e7b9fe96eded8ccc2d2eaf83cf
treea1d94e7a3babfc8a10a1e077a652bb732523cca4
parentcd52261cfb4d146b30e3a0ce456a582980f5b11b
gdb: use correct target in notify_thread_exited()

clean_up_just_stopped_threads_fsms() may call notify_thread_exited() in
the context of a thread from a different target.

Switch to the thread's inferior to get the target right.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
gdb/thread.c