aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2010-02-13 12:02:29 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2010-02-13 12:02:29 +0000
commit701ed6dcfb88d2dd18280239c3112f8403c470b4 (patch)
treedde3264da2a50fe742113f87f1f3bc2214c8c812
parentc09529e5f88c94b55340b953174b91f8873ad593 (diff)
downloadgdb-701ed6dcfb88d2dd18280239c3112f8403c470b4.zip
gdb-701ed6dcfb88d2dd18280239c3112f8403c470b4.tar.gz
gdb-701ed6dcfb88d2dd18280239c3112f8403c470b4.tar.bz2
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.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/solib-svr4.c11
-rw-r--r--gdb/testsuite/ChangeLog4
-rw-r--r--gdb/testsuite/gdb.base/prelink.exp3
4 files changed, 19 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 76c1ff8..c66b928 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
+ only if INFO_VERBOSE.
+
2010-02-12 Tomas Holmberg <th@virtutech.com>
* 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 9d4e59e..ef32f46 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 b465e2a..8977404 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * gdb.base/prelink.exp (set verbose on): New.
+
2010-02-12 Tomas Holmberg <th@virtutech.com>
* 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 566574c..2c92f2f 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" {