]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdbserver: fix build on NetBSD
authorWataru Ashihara <wsh@iij.ad.jp>
Wed, 19 Mar 2025 05:09:19 +0000 (14:09 +0900)
committerSimon Marchi <simon.marchi@polymtl.ca>
Wed, 19 Mar 2025 14:19:12 +0000 (10:19 -0400)
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

gdbserver/netbsd-low.cc

index 9e7314b02a94157e4e08116c8c90e3f64bf9e00f..0c75f4ba6a4dceda8514ad2ed19607dbbe47f920 100644 (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);
 }