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