From 1de14d77bbd1237ec03779b8a2e757f52978bbd9 Mon Sep 17 00:00:00 2001 From: Kamil Rytarowski Date: Mon, 20 Jul 2020 17:07:25 +0200 Subject: Enable multi-process mode in the NetBSD native target. This enables proper support for multiple inferiors and ptrace(2) assisted management of the inferior processes and their threads. (gdb) info inferior Num Description Connection Executable * 1 process 14952 1 (native) /usr/bin/dig 2 1 (native) 3 process 25684 1 (native) /bin/ls 4 1 (native) /bin/ls Without this patch, additional inferiors can be added, but not properly controlled. gdb/ChangeLog: * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New declaration. * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New function. --- gdb/nbsd-nat.h | 1 + 1 file changed, 1 insertion(+) (limited to 'gdb/nbsd-nat.h') diff --git a/gdb/nbsd-nat.h b/gdb/nbsd-nat.h index 4a8b96026e6..0a7048ecf35 100644 --- a/gdb/nbsd-nat.h +++ b/gdb/nbsd-nat.h @@ -48,6 +48,7 @@ struct nbsd_nat_target : public inf_ptrace_target gdb::array_view syscall_counts) override; + bool supports_multi_process () override; }; #endif /* nbsd-nat.h */ -- cgit v1.2.1