diff options
author | Kamil Rytarowski <n54@gmx.com> | 2020-07-20 17:07:25 +0200 |
---|---|---|
committer | Kamil Rytarowski <n54@gmx.com> | 2020-07-21 14:43:36 +0200 |
commit | 1de14d77bbd1237ec03779b8a2e757f52978bbd9 (patch) | |
tree | b96e2480ced79b0fdeb21faf9358abc98abff463 /gdb/nbsd-nat.c | |
parent | bf4ba07ca61793a1faf81c0447ba97fdc6639b50 (diff) | |
download | binutils-1de14d77bbd1237ec03779b8a2e757f52978bbd9.zip binutils-1de14d77bbd1237ec03779b8a2e757f52978bbd9.tar.gz binutils-1de14d77bbd1237ec03779b8a2e757f52978bbd9.tar.bz2 |
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 <null> 1 (native)
3 process 25684 1 (native) /bin/ls
4 <null> 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.
Diffstat (limited to 'gdb/nbsd-nat.c')
-rw-r--r-- | gdb/nbsd-nat.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/nbsd-nat.c b/gdb/nbsd-nat.c index 254a768..a9405eb 100644 --- a/gdb/nbsd-nat.c +++ b/gdb/nbsd-nat.c @@ -837,3 +837,11 @@ nbsd_nat_target::set_syscall_catchpoint (int pid, bool needed, are filtered by GDB rather than the kernel. */ return 0; } + +/* Implement the "supports_multi_process" target_ops method. */ + +bool +nbsd_nat_target::supports_multi_process () +{ + return true; +} |