gdbserver: fix build on NetBSD

The function remove_thread() was changed to a method in 2500e7d7d (gdbserver:
make remove_thread a method of process_info).

Signed-off-by: Wataru Ashihara <wsh@iij.ad.jp>
Change-Id: I4b2d8a6f84b5329b8d450b268fa9453fe424914e
This commit is contained in:
Wataru Ashihara
2025-03-19 14:09:19 +09:00
committed by Simon Marchi
parent 82455bdab8
commit 6a77c6575f

View File

@@ -453,7 +453,10 @@ netbsd_process_target::detach (process_info *process)
void
netbsd_process_target::mourn (struct process_info *proc)
{
proc->for_each_thread (remove_thread);
proc->for_each_thread ([proc] (thread_info *thread)
{
proc->remove_thread (thread);
});
remove_process (proc);
}