Blame SOURCES/gdb-rhbz1518243-gcore-VM_DONTDUMP-2of5.patch

01917d
commit 1e52e8495a074c9d1f7ef17f13b9060b76be6f41
01917d
Author: Sergio Lopez <slp@redhat.com>
01917d
Date:   Mon Dec 4 09:17:13 2017 +0100
01917d
01917d
    Document new {set,show} dump-excluded-mappings commands.
01917d
    
01917d
    gdb/ChangeLog:
01917d
    2017-11-29  Sergio Lopez  <slp@redhat.com>
01917d
    
01917d
            * NEWS (Changes since GDB 8.0): Announce {set,show}
01917d
            dump_excluded_mappings commands.
01917d
    
01917d
    gdb/doc/ChangeLog:
01917d
    2017-11-29  Sergio Lopez  <slp@redhat.com>
01917d
    
01917d
            * gdb.texinfo (gcore): Mention new {set,show}
01917d
            dump-excluded-mappings commands.
01917d
            (set dump-excluded-mappings): Document new command.
01917d
01917d
Index: gdb-7.6.1/gdb/NEWS
01917d
===================================================================
01917d
--- gdb-7.6.1.orig/gdb/NEWS	2017-12-06 20:56:34.005080504 +0100
01917d
+++ gdb-7.6.1/gdb/NEWS	2017-12-06 20:56:52.510200234 +0100
01917d
@@ -7,6 +7,11 @@
01917d
   Add entries to the list of directories from which to load auto-loaded
01917d
   scripts.
01917d
 
01917d
+set dump-excluded-mappings
01917d
+show dump-excluded-mappings
01917d
+  Control whether mappings marked with the VM_DONTDUMP flag should be
01917d
+  dumped when generating a core file.
01917d
+
01917d
 * Newly installed $prefix/bin/gcore acts as a shell interface for the
01917d
   GDB command gcore.
01917d
 
01917d
Index: gdb-7.6.1/gdb/doc/gdb.texinfo
01917d
===================================================================
01917d
--- gdb-7.6.1.orig/gdb/doc/gdb.texinfo	2017-12-06 20:56:30.604058498 +0100
01917d
+++ gdb-7.6.1/gdb/doc/gdb.texinfo	2017-12-06 20:56:34.015080568 +0100
01917d
@@ -10318,7 +10318,9 @@
01917d
 
01917d
 On @sc{gnu}/Linux, this command can take into account the value of the
01917d
 file @file{/proc/@var{pid}/coredump_filter} when generating the core
01917d
-dump (@pxref{set use-coredump-filter}).
01917d
+dump (@pxref{set use-coredump-filter}), and by default honors the
01917d
+@code{VM_DONTDUMP} flag for mappings where it is present in the file
01917d
+@file{/proc/@var{pid}/smaps} (@pxref{set dump-excluded-mappings}).
01917d
 
01917d
 @kindex set use-coredump-filter
01917d
 @anchor{set use-coredump-filter}
01917d
@@ -10348,6 +10350,16 @@
01917d
 (anonymous private mappings), @code{1} (anonymous shared mappings),
01917d
 @code{4} (ELF headers) and @code{5} (private huge pages) are active.
01917d
 This will cause these memory mappings to be dumped automatically.
01917d
+
01917d
+@kindex set dump-excluded-mappings
01917d
+@anchor{set dump-excluded-mappings}
01917d
+@item set dump-excluded-mappings on
01917d
+@itemx set dump-excluded-mappings off
01917d
+If @code{on} is specified, @value{GDBN} will dump memory mappings
01917d
+marked with the @code{VM_DONTDUMP} flag.  This flag is represented in
01917d
+the file @file{/proc/@var{pid}/smaps} with the acronym @code{dd}.
01917d
+
01917d
+The default value is @code{off}.
01917d
 @end table
01917d
 
01917d
 @node Character Sets