gdb: Implement native dumpcore function
authorKamil Rytarowski <n54@gmx.com>
Tue, 28 Jul 2020 15:29:35 +0000 (17:29 +0200)
committerKamil Rytarowski <n54@gmx.com>
Thu, 13 Aug 2020 22:09:42 +0000 (00:09 +0200)
commitb31488a3449cd97297b0972c016016f1d4c60389
treea9707af272eb93896d792df09298e32c57cbcc45
parent002a3166d359a759b6cddfe4571d1da5b4f96dce
gdb: Implement native dumpcore function

Add new API for systems with native kernel support for dumping
a process on demand. Wire it into the gdb's gcore functionality.

gdb/ChangeLog:

       * target.h (supports_dumpcore, dumpcore): New
       function declarations.
       * target.c (supports_dumpcore, dumpcore): New
       functions.
       * target-delegates.c: Rebuild.
       * gcore.c (gcore_command): Use target_supports_dumpcore ()
       and target_dumpcore ().
gdb/ChangeLog
gdb/gcore.c
gdb/target-delegates.c
gdb/target.h