This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v3 0/5] Enable the user to dump all memory regions


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]