* solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
	only if INFO_VERBOSE.

gdb/testsuite/
	* gdb.base/prelink.exp (set verbose on): New.
This commit is contained in:
Jan Kratochvil 2010-02-13 12:02:29 +00:00
parent c09529e5f8
commit 701ed6dcfb
4 changed files with 19 additions and 4 deletions

View 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

View 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\" "

View 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

View 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" {