aboutsummaryrefslogtreecommitdiff
path: root/gdb/solib.c
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2008-07-10 23:08:21 +0000
committerDoug Evans <dje@google.com>2008-07-10 23:08:21 +0000
commitbf250677afabbf59fee4ab3e1a96ffa7ddff2146 (patch)
treee6b0011aeaa1b0eca2e3bd6704cb55eaf1911526 /gdb/solib.c
parentef9beddf72634055b25a631850464a701599585c (diff)
downloadgdb-bf250677afabbf59fee4ab3e1a96ffa7ddff2146.zip
gdb-bf250677afabbf59fee4ab3e1a96ffa7ddff2146.tar.gz
gdb-bf250677afabbf59fee4ab3e1a96ffa7ddff2146.tar.bz2
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".
Diffstat (limited to 'gdb/solib.c')
-rw-r--r--gdb/solib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/solib.c b/gdb/solib.c
index a694b81..515402e 100644
--- a/gdb/solib.c
+++ b/gdb/solib.c
@@ -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;