Enable multi-process mode in the NetBSD native target.
authorKamil Rytarowski <n54@gmx.com>
Mon, 20 Jul 2020 15:07:25 +0000 (17:07 +0200)
committerKamil Rytarowski <n54@gmx.com>
Tue, 21 Jul 2020 12:43:36 +0000 (14:43 +0200)
commit1de14d77bbd1237ec03779b8a2e757f52978bbd9
treeb96e2480ced79b0fdeb21faf9358abc98abff463
parentbf4ba07ca61793a1faf81c0447ba97fdc6639b50
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.
gdb/ChangeLog
gdb/nbsd-nat.c
gdb/nbsd-nat.h