gdb: Implement native dumpcore function for NetBSD
authorKamil Rytarowski <n54@gmx.com>
Thu, 13 Aug 2020 17:29:13 +0000 (19:29 +0200)
committerKamil Rytarowski <n54@gmx.com>
Thu, 13 Aug 2020 22:10:06 +0000 (00:10 +0200)
commita6e6223e9a2f6ca77e064fbe8b326ac7fa205872
treefccda1aacc4f32c154d438c0cf4fbd464a85fbd9
parentb31488a3449cd97297b0972c016016f1d4c60389
gdb: Implement native dumpcore function for NetBSD

Define supports_dumpcore and dumpcore for NetBSD, that wraps
the ptrace(2) call with the PT_DUMPCORE operation.

gdb/ChangeLog:

       * nbsd-nat.h (nbsd_nat_target::supports_dumpcore)
       (nbsd_nat_target::dumpcore): New declarations.
       * nbsd-nat.c (nbsd_nat_target::supports_dumpcore)
       (nbsd_nat_target::dumpcore): New functions.
gdb/nbsd-nat.c
gdb/nbsd-nat.h