Implement 'set dump-excluded-mappings' command
authorSergio Lopez <slp@redhat.com>
Mon, 4 Dec 2017 08:17:12 +0000 (09:17 +0100)
committerSergio Durigan Junior <sergiodj@redhat.com>
Mon, 4 Dec 2017 16:54:32 +0000 (11:54 -0500)
commitafa840dcc021eaeb975dcde3bedbf46ea0511717
treeecad46a127904cf53161c6c1f3aef804d84f068c
parent7403715e305f7733d8dfa4a8e1739f12f5180cb2
Implement 'set dump-excluded-mappings' command

Commit df8411da087dc05481926f4c4a82deabc5bc3859 implemented support for
checking /proc/PID/coredump_filter, and also changed gcore behavior to
unconditionally honor the VM_DONTDUMP flag, preventing sections marked
as such for being dumped into the core file.

This patch implements the 'set dump-excluded-mappings' command for
instructing gdb to ignore the VM_DONTDUMP flag. Combined with 'set
use-coredump-filter', this allows the user to restore the old behavior,
dumping all sections (except the ones marked as IO) unconditionally.

gdb/Changelog:
2017-11-29  Sergio Lopez  <slp@redhat.com>

* linux-tdep.c (dump_excluded_mappings): New variable.
(dump_mapping_p): Use dump_excluded_mappings variable.
(_initialize_linux_tdep): New command 'set dump_excluded_mappings'.
gdb/linux-tdep.c
This page took 0.023712 seconds and 4 git commands to generate.