Add "set print symbol-loading on|off".
* NEWS: Document new option. * symfile.h (print_symbol_loading): Declare. * symfile.c (print_symbol_loading): New global. (symbol_file_add_with_addrs_or_offsets): Only print "Reading symbols from ..." if print_symbol_loading. (_initialize_symfile): Add set/show print symbol-loading. * solib.c (solib_read_symbols): Only print "Loaded symbols for ..." if print_symbol_loading. * doc/gdb.texinfo: Document "set print symbol-loading on|off".
This commit is contained in:
parent
ef9beddf72
commit
bf250677af
7 changed files with 69 additions and 7 deletions
|
@ -448,7 +448,7 @@ solib_read_symbols (struct so_list *so, int from_tty)
|
|||
"Error while reading shared library symbols:\n",
|
||||
RETURN_MASK_ALL))
|
||||
{
|
||||
if (from_tty)
|
||||
if (from_tty && print_symbol_loading)
|
||||
printf_unfiltered (_("Loaded symbols for %s\n"), so->so_name);
|
||||
so->symbols_loaded = 1;
|
||||
return 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue