public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH v3 0/5] Enable the user to dump all memory regions
@ 2017-12-04  8:18 Sergio Lopez
  2017-12-04  8:18 ` [PATCH v3 1/5] Implement 'set dump-excluded-mappings' command Sergio Lopez
                   ` (5 more replies)
  0 siblings, 6 replies; 11+ messages in thread
From: Sergio Lopez @ 2017-12-04  8:18 UTC (permalink / raw)
  To: gdb-patches; +Cc: Sergio Lopez

GDB versions prior to df8411da087dc05481926f4c4a82deabc5bc3859
unconditionally included all memory regions in the core dump.

After that change, while is still possible to ask GDB to ignore
/proc/PID/coredump_filter using the 'set use-coredump-filter' command,
there's no way to request it to dump regions marked with the VM_DONTDUMP
flag ("dd" in /proc/PID/smaps").

This patch series implement the new 'set dump-excluded-mappings' command
for GDB, and the "-a" argument for gcore, allowing the user to mimic the
behavior of previous GDB versions.

---

Changes since v2:
  - 1/5: Removed an empty line between command and definition of variable.
  - 5/5: Added a test case for 'set dump-excluded-mappings'.

Sergio Lopez (5):
  Implement 'set dump-excluded-mappings' command
  Document new {set,show} dump-excluded-mappings commands.
  Implement "-a" command line option for gcore
  Document the new "-a" command line option for gcore
  Extend gdb.core/coredump-filter.exp to test dump-excluded-mappings.

 gdb/NEWS                                   | 10 +++++++
 gdb/doc/gdb.texinfo                        | 21 +++++++++++--
 gdb/gcore.in                               | 47 +++++++++++++++++++-----------
 gdb/linux-tdep.c                           | 30 ++++++++++++++++++-
 gdb/testsuite/gdb.base/coredump-filter.exp | 46 +++++++++++++++++++++--------
 5 files changed, 122 insertions(+), 32 deletions(-)

-- 
2.14.3

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2017-12-04 17:10 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-04  8:18 [PATCH v3 0/5] Enable the user to dump all memory regions Sergio Lopez
2017-12-04  8:18 ` [PATCH v3 1/5] Implement 'set dump-excluded-mappings' command Sergio Lopez
2017-12-04  8:18 ` [PATCH v3 2/5] Document new {set,show} dump-excluded-mappings commands Sergio Lopez
2017-12-04 15:19   ` Eli Zaretskii
2017-12-04  8:18 ` [PATCH v3 3/5] Implement "-a" command line option for gcore Sergio Lopez
2017-12-04  8:26 ` [PATCH v3 4/5] Document the new " Sergio Lopez
2017-12-04 15:25   ` Eli Zaretskii
2017-12-04 17:10     ` Sergio Durigan Junior
2017-12-04  8:27 ` [PATCH v3 5/5] Extend gdb.core/coredump-filter.exp to test dump-excluded-mappings Sergio Lopez
2017-12-04 14:37 ` [PATCH v3 0/5] Enable the user to dump all memory regions Pedro Alves
2017-12-04 17:09   ` Sergio Durigan Junior

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).