diff options
author | John Baldwin <jhb@FreeBSD.org> | 2020-07-10 09:05:28 -0700 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2020-07-10 09:05:28 -0700 |
commit | 54904d818b4d6b71101d4eec4bfab6342617ea5e (patch) | |
tree | f4ddb0ddc352f80c9c4e9849ba0b4614b46e5bcd | |
parent | 921eafeada862b1e019650d17d7c5e0d35bfaa5e (diff) | |
download | gdb-54904d818b4d6b71101d4eec4bfab6342617ea5e.zip gdb-54904d818b4d6b71101d4eec4bfab6342617ea5e.tar.gz gdb-54904d818b4d6b71101d4eec4bfab6342617ea5e.tar.bz2 |
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.
-rw-r--r-- | gdb/ChangeLog | 7 | ||||
-rw-r--r-- | gdb/fbsd-nat.c | 6 | ||||
-rw-r--r-- | gdb/fbsd-nat.h | 2 |
3 files changed, 15 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index bdab91d..c292927 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2020-07-10 John Baldwin <jhb@FreeBSD.org> + + * 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 <jhb@FreeBSD.org> * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against diff --git a/gdb/fbsd-nat.c b/gdb/fbsd-nat.c index a63ad2a..a355ebe 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 4011717..b5a62b9 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 */ |