aboutsummaryrefslogtreecommitdiff
path: root/gdb/doc
diff options
context:
space:
mode:
authorDavid Taylor <dtaylor@emc.com>2014-05-01 18:09:43 +0100
committerPedro Alves <palves@redhat.com>2014-05-01 18:09:43 +0100
commit95cf3b38cd2fae4a53c8ff12bef21b2ae3fdd0cb (patch)
tree1b4b41e6e17c5aeec13fac06f3df9e366011352b /gdb/doc
parent86a80a50f2cb244e6b9ec18b93675972baa50d78 (diff)
downloadfsf-binutils-gdb-95cf3b38cd2fae4a53c8ff12bef21b2ae3fdd0cb.zip
fsf-binutils-gdb-95cf3b38cd2fae4a53c8ff12bef21b2ae3fdd0cb.tar.gz
fsf-binutils-gdb-95cf3b38cd2fae4a53c8ff12bef21b2ae3fdd0cb.tar.bz2
compare-sections: New -r option.
When connecting to a remote system, we use the compare-sections command to verify that the box is running the code that we think it is running. Since the system is up and running and *NOT* 'freshly downloaded without yet executing anything', read-write sections, of course, differ from what they were in the executable file. Comparing read-write sections takes time and more importantly the MIS-MATCHED output is confusing to some users. The compare-sections command compares all loadable sections including read-write sections. This patch gives the user the option to compare just the loadable read-only sections. gdb/ 2014-05-01 David Taylor <dtaylor@emc.com> * remote.c (compare_sections_command): Add -r option to compare all loadable read-only sections. gdb/doc/ 2014-05-01 David Taylor <dtaylor@emc.com> * gdb.texinfo (compare-sections): Document the new -r (read-only) option.
Diffstat (limited to 'gdb/doc')
-rw-r--r--gdb/doc/ChangeLog5
-rw-r--r--gdb/doc/gdb.texinfo5
2 files changed, 8 insertions, 2 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index 2b0f686..1e60575 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,3 +1,8 @@
+2014-05-01 David Taylor <dtaylor@emc.com>
+
+ * gdb.texinfo (compare-sections): Document the new -r (read-only)
+ option.
+
2014-04-24 Michael Sturm <michael.sturm@mintel.com>
Walfred Tedeschi <walfred.tedeschi@intel.com>
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 9d91075..7f7650d 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -8772,11 +8772,12 @@ situations.
@table @code
@kindex compare-sections
-@item compare-sections @r{[}@var{section-name}@r{]}
+@item compare-sections @r{[}@var{section-name}@r{|}@code{-r}@r{]}
Compare the data of a loadable section @var{section-name} in the
executable file of the program being debugged with the same section in
the remote machine's memory, and report any mismatches. With no
-arguments, compares all loadable sections. This command's
+arguments, compares all loadable sections. With an argument of
+@code{-r}, compares all loadable read-only sections. This command's
availability depends on the target's support for the @code{"qCRC"}
remote request.
@end table