aboutsummaryrefslogtreecommitdiff
path: root/gdb/symfile.h
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/symfile.h
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/symfile.h')
-rw-r--r--gdb/symfile.h7
1 files changed, 7 insertions, 0 deletions
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