From: Jan Kratochvil Date: Sat, 13 Feb 2010 12:02:29 +0000 (+0000) Subject: gdb/ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=701ed6dcfb88d2dd18280239c3112f8403c470b4;p=binutils-gdb.git gdb/ * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment only if INFO_VERBOSE. gdb/testsuite/ * gdb.base/prelink.exp (set verbose on): New. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 76c1ff8ae9c..c66b928fb62 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2010-02-13 Jan Kratochvil + + * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment + only if INFO_VERBOSE. + 2010-02-12 Tomas Holmberg * mi/mi-main.c: Added the --reverse flag to the following MI diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c index 9d4e59edf6c..ef32f46348b 100644 --- a/gdb/solib-svr4.c +++ b/gdb/solib-svr4.c @@ -234,10 +234,13 @@ LM_ADDR_CHECK (struct so_list *so, bfd *abfd) { l_addr = l_dynaddr - dynaddr; - warning (_(".dynamic section for \"%s\" " - "is not at the expected address"), so->so_name); - warning (_("difference appears to be caused by prelink, " - "adjusting expectations")); + if (info_verbose) + { + warning (_(".dynamic section for \"%s\" " + "is not at the expected address"), so->so_name); + warning (_("difference appears to be caused by prelink, " + "adjusting expectations")); + } } else warning (_(".dynamic section for \"%s\" " diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index b465e2acf80..897740418a5 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2010-02-13 Jan Kratochvil + + * gdb.base/prelink.exp (set verbose on): New. + 2010-02-12 Tomas Holmberg * mi-reverse.exp: New file. Test for reverse option to the diff --git a/gdb/testsuite/gdb.base/prelink.exp b/gdb/testsuite/gdb.base/prelink.exp index 566574cad9d..2c92f2f8381 100644 --- a/gdb/testsuite/gdb.base/prelink.exp +++ b/gdb/testsuite/gdb.base/prelink.exp @@ -109,6 +109,9 @@ gdb_start gdb_reinitialize_dir $srcdir/$subdir gdb_load ${binfile} +# Print the "adjusting expectations" message. +gdb_test "set verbose on" + set test "prelink" global gdb_prompt gdb_test_multiple "core-file $objdir/$subdir/prelink.core" "$test" {