This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH v3 0/5] Enable the user to dump all memory regions
- From: Sergio Durigan Junior <sergiodj at redhat dot com>
- To: Pedro Alves <palves at redhat dot com>
- Cc: Sergio Lopez <slp at redhat dot com>, gdb-patches at sourceware dot org
- Date: Mon, 04 Dec 2017 12:09:39 -0500
- Subject: Re: [PATCH v3 0/5] Enable the user to dump all memory regions
- Authentication-results: sourceware.org; auth=none
- References: <20171204081716.5414-1-slp@redhat.com> <42ab4f25-13ef-76d4-adf1-3412a406c96d@redhat.com>
On Monday, December 04 2017, Pedro Alves wrote:
> On 12/04/2017 08:17 AM, Sergio Lopez wrote:
>> 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'.
>
> Thanks!
>
> This is OK.
I pushed the patches for him (courtesy from Sergio to Sergio).
3e1a70a018 Extend gdb.core/coredump-filter.exp to test dump-excluded-mappings.
c179febe79 Document the new "-a" command line option for gcore
cd93789b89 Implement "-a" command line option for gcore
1e52e8495a Document new {set,show} dump-excluded-mappings commands.
afa840dcc0 Implement 'set dump-excluded-mappings' command
Thanks,
--
Sergio
GPG key ID: 237A 54B1 0287 28BF 00EF 31F4 D0EB 7628 65FC 5E36
Please send encrypted e-mail if possible
http://sergiodj.net/