Delete "Loaded symbols for ..." message, it is redundant.

* solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
	message, it is redundant with "Reading symbols from ..." message.

	testsuite/
	* gdb.base/print-symbol-loading.exp (test_load_core): Update.
	(test_load_shlib): Update.
This commit is contained in:
Doug Evans 2014-08-11 17:21:07 -07:00
parent 40a6ca48cc
commit d769e349bc
4 changed files with 13 additions and 9 deletions

View File

@ -1,3 +1,8 @@
2014-08-11 Doug Evans <dje@google.com>
* solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
message, it is redundant with "Reading symbols from ..." message.
2014-08-10 Doug Evans <xdje42@gmail.com>
* linux-nat.c (linux_nat_thread_address_space): Delete dead code.

View File

@ -603,8 +603,6 @@ master_so_list (void)
int
solib_read_symbols (struct so_list *so, int flags)
{
const int from_tty = flags & SYMFILE_VERBOSE;
if (so->symbols_loaded)
{
/* If needed, we've already warned in our caller. */
@ -648,11 +646,7 @@ solib_read_symbols (struct so_list *so, int flags)
" library symbols for %s:\n"),
so->so_name);
else
{
if (print_symbol_loading_p (from_tty, 0, 1))
printf_unfiltered (_("Loaded symbols for %s\n"), so->so_name);
so->symbols_loaded = 1;
}
so->symbols_loaded = 1;
return 1;
}

View File

@ -1,3 +1,8 @@
2014-08-11 Doug Evans <dje@google.com>
* gdb.base/print-symbol-loading.exp (test_load_core): Update.
(test_load_shlib): Update.
2014-08-09 Yao Qi <yao@codesourcery.com>
* gdb.base/display.exp: Invoke is_address_zero_readable.

View File

@ -93,7 +93,7 @@ proc test_load_core { print_symbol_loading } {
}
"full" {
gdb_test "set solib-search-path [file dirname ${binfile_lib}]" \
"Reading symbols from.*Loaded symbols for.*" \
"Reading symbols from.*" \
${test_name}
}
}
@ -129,7 +129,7 @@ proc test_load_shlib { print_symbol_loading } {
}
"full" {
gdb_test "sharedlibrary .*" \
"Reading symbols from.*Loaded symbols for.*" \
"Reading symbols from.*" \
${test_name}
}
}