From bf250677afabbf59fee4ab3e1a96ffa7ddff2146 Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Thu, 10 Jul 2008 23:08:21 +0000 Subject: 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". --- gdb/symfile.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gdb/symfile.h') diff --git a/gdb/symfile.h b/gdb/symfile.h index 948cef7..02fb7df 100644 --- a/gdb/symfile.h +++ b/gdb/symfile.h @@ -267,6 +267,13 @@ extern char *obconcat (struct obstack *obstackp, const char *, const char *, /* Variables */ +/* If non-zero, gdb will notify the user when it is loading symbols + from a file. This is almost always what users will want to have happen; + but for programs with lots of dynamically linked libraries, the output + can be more noise than signal. */ + +extern int print_symbol_loading; + /* If non-zero, shared library symbols will be added automatically when the inferior is created, new libraries are loaded, or when attaching to the inferior. This is almost always what users will -- cgit v1.1