aboutsummaryrefslogtreecommitdiff
path: root/gdb/fbsd-nat.c
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2022-03-22 12:05:43 -0700
committerJohn Baldwin <jhb@FreeBSD.org>2022-03-22 12:05:43 -0700
commit983b1119bc315c9182e3aba898ca8099e54da49e (patch)
treee3193e091ee802a5622709841a061b75e5f79c6e /gdb/fbsd-nat.c
parent6719bc690e2829c50d3d3bb22ede1324e5baa12a (diff)
downloadfsf-binutils-gdb-983b1119bc315c9182e3aba898ca8099e54da49e.zip
fsf-binutils-gdb-983b1119bc315c9182e3aba898ca8099e54da49e.tar.gz
fsf-binutils-gdb-983b1119bc315c9182e3aba898ca8099e54da49e.tar.bz2
fbsd-nat: Add a low_delete_thread virtual method.
This method can be overridden by architecture-specific targets to perform additional work when a thread is deleted. Note that this method is only invoked on systems supporting LWP events, but the pending use case (aarch64 debug registers) is not supported on older kernels that do not support LWP events.
Diffstat (limited to 'gdb/fbsd-nat.c')
-rw-r--r--gdb/fbsd-nat.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/fbsd-nat.c b/gdb/fbsd-nat.c
index 51234ea..2bc7937 100644
--- a/gdb/fbsd-nat.c
+++ b/gdb/fbsd-nat.c
@@ -1293,6 +1293,7 @@ fbsd_nat_target::wait_1 (ptid_t ptid, struct target_waitstatus *ourstatus,
if (print_thread_events)
printf_unfiltered (_("[%s exited]\n"),
target_pid_to_str (wptid).c_str ());
+ low_delete_thread (thr);
delete_thread (thr);
}
if (ptrace (PT_CONTINUE, pid, (caddr_t) 1, 0) == -1)