aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2020-07-03 22:09:20 -0700
committerKevin Buettner <kevinb@redhat.com>2020-07-22 12:52:31 -0700
commitb089853a22ce53c4051ebe2b336afb442fe3e278 (patch)
tree0bb25ab64f850584abfc24c9989f750c18d4480a
parent09c2f5d45cda73009e5e68e6cc84be6722f386fb (diff)
downloadgdb-b089853a22ce53c4051ebe2b336afb442fe3e278.zip
gdb-b089853a22ce53c4051ebe2b336afb442fe3e278.tar.gz
gdb-b089853a22ce53c4051ebe2b336afb442fe3e278.tar.bz2
Add documentation for "maint print core-file-backed-mappings"
gdb/ChangeLog: * NEWS (New commands): Mention new command "maintenance print core-file-backed-mappings". gdb/doc/ChangeLog: * gdb.texinfo (Maintenance Commands): Add documentation for new command "maintenance print core-file-backed-mappings".
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/NEWS4
-rw-r--r--gdb/doc/ChangeLog5
-rw-r--r--gdb/doc/gdb.texinfo8
4 files changed, 22 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 2a7ffde..7ba1561 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2020-07-22 Kevin Buettner <kevinb@redhat.com>
+ * NEWS (New commands): Mention new command
+ "maintenance print core-file-backed-mappings".
+
+2020-07-22 Kevin Buettner <kevinb@redhat.com>
+
* corelow.c (gdbcmd.h): Include.
(core_target::info_proc_mappings): New method.
(get_current_core_target): New function.
diff --git a/gdb/NEWS b/gdb/NEWS
index 001dc5e..ff0624c 100644
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -85,6 +85,10 @@ maintenance print xml-tdesc [FILE]
the target description is read from FILE into GDB, and then
reprinted.
+maintenance print core-file-backed-mappings
+ Prints file-backed mappings loaded from a core file's note section.
+ Output is expected to be similar to that of "info proc mappings".
+
* Changed commands
alias [-a] [--] ALIAS = COMMAND [DEFAULT-ARGS...]
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index 208c1c4..7e530c0 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,3 +1,8 @@
+2020-07-22 Kevin Buettner <kevinb@redhat.com>
+
+ * gdb.texinfo (Maintenance Commands): Add documentation for
+ new command "maintenance print core-file-backed-mappings".
+
2020-07-22 Reuben Thomas <rrt@sc3d.org>
* gdb.texinfo (Remote Protocol, Overview): Correct the description
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 3bd8ddf..1b9f765 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -38532,6 +38532,14 @@ library. This exercises all @code{libthread_db} functionality used by
@code{libthread_db} uses. Note that parts of the test may be skipped
on some platforms when debugging core files.
+@kindex maint print core-file-backed-mappings
+@cindex memory address space mappings
+@item maint print core-file-backed-mappings
+Print the file-backed mappings which were loaded from a core file note.
+This output represents state internal to @value{GDBN} and should be
+similar to the mappings displayed by the @code{info proc mappings}
+command.
+
@kindex maint print dummy-frames
@item maint print dummy-frames
Prints the contents of @value{GDBN}'s internal dummy-frame stack.