From 54904d818b4d6b71101d4eec4bfab6342617ea5e Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Fri, 10 Jul 2020 09:05:28 -0700 Subject: [PATCH] Enable multi-process mode in the FreeBSD native target. gdb/ChangeLog: * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New declaration. * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New function. --- gdb/ChangeLog | 7 +++++++ gdb/fbsd-nat.c | 6 ++++++ gdb/fbsd-nat.h | 2 ++ 3 files changed, 15 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index bdab91dd2d6..c292927e49c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2020-07-10 John Baldwin + + * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New + declaration. + * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New + function. + 2020-07-09 John Baldwin * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against diff --git a/gdb/fbsd-nat.c b/gdb/fbsd-nat.c index a63ad2a8f28..a355ebe4382 100644 --- a/gdb/fbsd-nat.c +++ b/gdb/fbsd-nat.c @@ -1669,6 +1669,12 @@ fbsd_nat_target::set_syscall_catchpoint (int pid, bool needed, #endif #endif +bool +fbsd_nat_target::supports_multi_process () +{ + return true; +} + void _initialize_fbsd_nat (); void _initialize_fbsd_nat () diff --git a/gdb/fbsd-nat.h b/gdb/fbsd-nat.h index 40117177b15..b5a62b9212e 100644 --- a/gdb/fbsd-nat.h +++ b/gdb/fbsd-nat.h @@ -94,6 +94,8 @@ public: override; #endif #endif /* PT_LWPINFO */ + + bool supports_multi_process () override; }; #endif /* fbsd-nat.h */ -- 2.39.2