gdb/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Sat, 13 Feb 2010 12:02:29 +0000 (12:02 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Sat, 13 Feb 2010 12:02:29 +0000 (12:02 +0000)
* solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
only if INFO_VERBOSE.

gdb/testsuite/
* gdb.base/prelink.exp (set verbose on): New.

gdb/ChangeLog
gdb/solib-svr4.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/prelink.exp

index 76c1ff8ae9c3b083bf9866a491052a760878d993..c66b928fb62ec09ea4f74a22b0ce7c546694eeec 100644 (file)
@@ -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
index 9d4e59edf6c018eb0ab4b585e7d3cc98157a91d9..ef32f46348b7ce614abd09486d1abda60d1f4e12 100644 (file)
@@ -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\" "
index b465e2acf80468e42c3e25892254cbe3131967a8..897740418a5690db93c062dd7aecfd99932689db 100644 (file)
@@ -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
index 566574cad9d62aeceff69e715780998a61bf89f2..2c92f2f8381ea438a44ff06ac5d9199986b6c34f 100644 (file)
@@ -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" {