aboutsummaryrefslogtreecommitdiff
path: root/gdb/doc
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2015-07-15 20:27:32 +0200
committerJan Kratochvil <jan.kratochvil@redhat.com>2015-07-15 20:27:32 +0200
commitdb1ff28b60f8886b8d7c634f1db2f939ba47a13c (patch)
treece5564ef7211bb69bef2fbc645608b1490dafc34 /gdb/doc
parent0a94970d663a053c523f23ac0d71deb25a77f709 (diff)
downloadfsf-binutils-gdb-db1ff28b60f8886b8d7c634f1db2f939ba47a13c.zip
fsf-binutils-gdb-db1ff28b60f8886b8d7c634f1db2f939ba47a13c.tar.gz
fsf-binutils-gdb-db1ff28b60f8886b8d7c634f1db2f939ba47a13c.tar.bz2
Revert the previous 7 commits of: Validate binary before use
ddc98fbf2fd9e244a215a4d09e559180dc573a14 Create empty nat/linux-maps.[ch] and common/target-utils.[ch] 6e5b4429db0d66e2d0b27e1bcfe4709f3dae73ed Move gdb_regex* to common/ f7af1fcd759fa126612018a5916cf808df7bb8bc Prepare linux_find_memory_regions_full & co. for move 9904185cfde13d6c6849f1f042c8e3b74974cf08 Move linux_find_memory_regions_full & co. 700ca40f6fc1addd7238f4ab57f76c095ad3c99f gdbserver build-id attribute generator ca5268b6be265580b91ef75c1a1a9815f581ae42 Validate symbol file using build-id 0a94970d663a053c523f23ac0d71deb25a77f709 Tests for validate symbol file using build-id gdb/ChangeLog 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com> Revert the previous 6 commits: Create empty nat/linux-maps.[ch] and common/target-utils.[ch]. Move gdb_regex* to common/ Prepare linux_find_memory_regions_full & co. for move Move linux_find_memory_regions_full & co. gdbserver build-id attribute generator Validate symbol file using build-id gdb/gdbserver/ChangeLog 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com> Revert the previous 3 commits: Move gdb_regex* to common/ Move linux_find_memory_regions_full & co. gdbserver build-id attribute generator gdb/doc/ChangeLog 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com> Revert the previous 2 commits: gdbserver build-id attribute generator Validate symbol file using build-id gdb/testsuite/ChangeLog 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com> Revert the previous commit: Tests for validate symbol file using build-id.
Diffstat (limited to 'gdb/doc')
-rw-r--r--gdb/doc/ChangeLog6
-rw-r--r--gdb/doc/gdb.texinfo55
2 files changed, 13 insertions, 48 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index fc66f0c..1438e7f 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,5 +1,11 @@
2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
+ Revert the previous 2 commits:
+ gdbserver build-id attribute generator
+ Validate symbol file using build-id
+
+2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
+
* gdb.texinfo (Files): Add 'set validate-build-id'
and 'show validate-build-id'.
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 513c08e..9e2ecd1 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -17950,44 +17950,6 @@ libraries that were loaded by explicit user requests are not
discarded.
@end table
-@table @code
-@kindex set validate-build-id
-@cindex override @value{GDBN} build-id check
-@item set validate-build-id @var{mode}
-Setting to override @value{GDBN} build-id check.
-
-Inferior shared libraries and symbol files may contain unique build-id.
-By default @value{GDBN} will ignore symbol files with non-matching build-id
-while printing:
-
-@smallexample
- warning: Shared object "libfoo.so.1" could not be validated (remote
- build ID 2bc1745e does not match local build ID a08f8767) and will be
- ignored; or use 'set validate-build-id off'.
-@end smallexample
-
-Turning off this setting would load such symbol file while still printing:
-
-@smallexample
- warning: Shared object "libfoo.so.1" could not be validated (remote
- build ID 2bc1745e does not match local build ID a08f8767) but it is
- being loaded due to 'set validate-build-id off'.
-@end smallexample
-
-If remote build-id is present but it does not match local build-id (or local
-build-id is not present) then this setting enables (@var{mode} is @code{off}) or
-disables (@var{mode} is @code{on}) loading of such symbol file. On systems
-where build-id is not present in the remote system this setting has no effect.
-The default value is @code{on}.
-
-Loading non-matching symbol file may confuse debugging including breakage
-of backtrace output.
-
-@kindex show validate-build-id
-@item show validate-build-id
-Display the current mode of build-id check override.
-@end table
-
Sometimes you may wish that @value{GDBN} stops and gives you control
when any of shared library events happen. The best way to do this is
to use @code{catch load} and @code{catch unload} (@pxref{Set
@@ -39551,8 +39513,6 @@ memory address. It is a displacement of absolute memory address against
address the file was prelinked to during the library load.
@item
@code{l_ld}, which is memory address of the @code{PT_DYNAMIC} segment
-@item
-@code{build-id}, hex encoded @code{NT_GNU_BUILD_ID} note, if it exists.
@end itemize
Additionally the single @code{main-lm} attribute specifies address of
@@ -39570,7 +39530,7 @@ looks like this:
<library name="/lib/ld-linux.so.2" lm="0xe4f51c" l_addr="0xe2d000"
l_ld="0xe4eefc"/>
<library name="/lib/libc.so.6" lm="0xe4fbe8" l_addr="0x154000"
- l_ld="0x152350" build-id="9afccf7cc41e6293476223fe72480854"/>
+ l_ld="0x152350"/>
</library-list-svr>
@end smallexample
@@ -39579,14 +39539,13 @@ The format of an SVR4 library list is described by this DTD:
@smallexample
<!-- library-list-svr4: Root element with versioning -->
<!ELEMENT library-list-svr4 (library)*>
-<!ATTLIST library-list-svr4 version CDATA #FIXED "1.0">
-<!ATTLIST library-list-svr4 main-lm CDATA #IMPLIED>
+<!ATTLIST library-list-svr4 version CDATA #FIXED "1.0">
+<!ATTLIST library-list-svr4 main-lm CDATA #IMPLIED>
<!ELEMENT library EMPTY>
-<!ATTLIST library name CDATA #REQUIRED>
-<!ATTLIST library lm CDATA #REQUIRED>
-<!ATTLIST library l_addr CDATA #REQUIRED>
-<!ATTLIST library l_ld CDATA #REQUIRED>
-<!ATTLIST library build-id CDATA #IMPLIED>
+<!ATTLIST library name CDATA #REQUIRED>
+<!ATTLIST library lm CDATA #REQUIRED>
+<!ATTLIST library l_addr CDATA #REQUIRED>
+<!ATTLIST library l_ld CDATA #REQUIRED>
@end smallexample
@node Memory Map Format