From 770e7fc78c3c94195cacf2d7698a252d410886a1 Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Mon, 31 Mar 2014 12:07:48 -0700 Subject: New option "set print symbol-loading". * NEWS: Mention it. * solib.c (solib_read_symbols): Only print symbol loading messages if requested. (solib_add): If symbol loading is in "brief" mode, notify user symbols are being loaded. (reload_shared_libraries_1): Ditto. * symfile.c (print_symbol_loading_off): New static global. (print_symbol_loading_brief): New static global. (print_symbol_loading_full): New static global. (print_symbol_loading_enums): New static global. (print_symbol_loading): New static global. (print_symbol_loading_p): New function. (symbol_file_add_with_addrs): Only print symbol loading messages if requested. (_initialize_symfile): Register "print symbol-loading" set/show command. * symfile.h (print_symbol_loading_p): Declare. doc/ * gdb.texinfo (Symbols): Document set/show print symbol-loading. testsuite/ * gdb.base/print-symbol-loading-lib.c: New file. * gdb.base/print-symbol-loading-main.c: New file. * gdb.base/print-symbol-loading.exp: New file. --- gdb/NEWS | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gdb/NEWS') diff --git a/gdb/NEWS b/gdb/NEWS index 2a384ba..df233fc 100644 --- a/gdb/NEWS +++ b/gdb/NEWS @@ -28,6 +28,13 @@ info auto-load guile-scripts [regexp] * New options +set print symbol-loading (off|brief|full) +show print symbol-loading + Control whether to print informational messages when loading symbol + information for a file. The default is "full", but when debugging + programs with large numbers of shared libraries the amount of output + becomes less useful. + set guile print-stack (none|message|full) show guile print-stack Show a stack trace when an error is encountered in a Guile script. -- cgit v1.1