From 5423b017be8ae3fb18960f490df7962702ecc8c4 Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Wed, 11 Sep 2013 08:28:04 +0000 Subject: [PATCH] minidebuginfo: Obvious changes gdb/doc/ 2013-09-11 Jan Kratochvil * gdb.texinfo (MiniDebugInfo): Fix two trailing dots. gdb/testsuite/ 2013-09-11 Jan Kratochvil * gdb.base/gnu-debugdata.exp (strip): Add -R .comment. (addlink): Add comment. --- gdb/doc/ChangeLog | 4 ++++ gdb/doc/gdb.texinfo | 4 ++-- gdb/testsuite/ChangeLog | 5 +++++ gdb/testsuite/gdb.base/gnu-debugdata.exp | 5 +++-- 4 files changed, 14 insertions(+), 4 deletions(-) diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 67d33206877..6bb1e7b223b 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,7 @@ +2013-09-11 Jan Kratochvil + + * gdb.texinfo (MiniDebugInfo): Fix two trailing dots. + 2013-08-27 Pedro Alves Yao Qi diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 21250feafa9..dfc9882f871 100644 --- 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 diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 254d56c9bf8..1bf8fb8a92a 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2013-09-11 Jan Kratochvil + + * gdb.base/gnu-debugdata.exp (strip): Add -R .comment. + (addlink): Add comment. + 2013-09-10 Sanimir Agovic * gdb.base/default.exp: Adjust regexpr for 'cd' to match optional diff --git a/gdb/testsuite/gdb.base/gnu-debugdata.exp b/gdb/testsuite/gdb.base/gnu-debugdata.exp index e4e42cd4258..bbd3a763726 100644 --- 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 -- 2.30.2