This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[patch 1/3] minidebuginfo: Obvious changes
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: gdb-patches at sourceware dot org
- Cc: Lukas Berk <lberk at redhat dot com>, "Frank Ch. Eigler" <fche at redhat dot com>
- Date: Fri, 6 Sep 2013 15:41:27 +0200
- Subject: [patch 1/3] minidebuginfo: Obvious changes
- Authentication-results: sourceware.org; auth=none
Hi,
-R .comment is added there as Fedora /usr/lib/rpm/find-debuginfo.sh does it
too as it is considered rather a debug info (just binutils commands do not
consider it so).
Jan
gdb/doc/
2013-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
* gdb.texinfo (MiniDebugInfo): Fix two trailing dots.
gdb/testsuite/
2013-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
* gdb.base/gnu-debugdata.exp (strip): Add -R .comment.
(addlink): Add comment.
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -17325,11 +17325,11 @@ standard utilities:
@smallexample
# Extract the dynamic symbols from the main binary, there is no need
-# to also have these in the normal symbol table
+# to also have these in the normal symbol table.
nm -D @var{binary} --format=posix --defined-only \
| awk '@{ print $1 @}' | sort > dynsyms
-# Extract all the text (i.e. function) symbols from the debuginfo .
+# Extract all the text (i.e. function) symbols from the debuginfo.
nm @var{binary} --format=posix --defined-only \
| awk '@{ if ($2 == "T" || $2 == "t") print $1 @}' \
| sort > funcsyms
--- a/gdb/testsuite/gdb.base/gnu-debugdata.exp
+++ b/gdb/testsuite/gdb.base/gnu-debugdata.exp
@@ -99,7 +99,7 @@ if {[run_on_host "objcopy 1" [transform objcopy] "-S --remove-section .gdb_index
# GDB specific - we do not have split executable in advance.
remote_file host delete ${binfile}.strip
if {[run_on_host "strip" [transform strip] \
- "--strip-all -o ${binfile}.strip ${binfile}"]} {
+ "--strip-all -R .comment -o ${binfile}.strip ${binfile}"]} {
return -1
}
@@ -113,7 +113,8 @@ if {[run_on_host "copydebug" [transform objcopy] \
# Add the .gnu_debuglink section to the .gnu_debugdata file.
# .gnu_debuglink is normally not present in the .gnu_debugdata section but in
# some files there may be PT_NOTE with NT_GNU_BUILD_ID and GDB could look up
-# the .debug file from it.
+# the .debug file from it. This is only an additional test of GDB, such link
+# is not present in usual MiniDebugInfo sections.
if {[run_on_host "addlink" [transform objcopy] \
"--add-gnu-debuglink=${binfile}.debug ${binfile}.mini_debuginfo ${binfile}.mini_debuginfo-debuglink"]} {
return -1