diff options
author | Doug Evans <dje@google.com> | 2014-03-31 12:07:48 -0700 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2014-03-31 12:07:48 -0700 |
commit | 770e7fc78c3c94195cacf2d7698a252d410886a1 (patch) | |
tree | 665ce89a8c46f3a619e945f5c90cdffe21157aea /gdb/testsuite/gdb.base/print-symbol-loading-main.c | |
parent | 76f0cad6f4e0fdfc4cfeee135b44b6a090919c60 (diff) | |
download | gdb-770e7fc78c3c94195cacf2d7698a252d410886a1.zip gdb-770e7fc78c3c94195cacf2d7698a252d410886a1.tar.gz gdb-770e7fc78c3c94195cacf2d7698a252d410886a1.tar.bz2 |
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.
Diffstat (limited to 'gdb/testsuite/gdb.base/print-symbol-loading-main.c')
-rw-r--r-- | gdb/testsuite/gdb.base/print-symbol-loading-main.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/print-symbol-loading-main.c b/gdb/testsuite/gdb.base/print-symbol-loading-main.c new file mode 100644 index 0000000..8379b58 --- /dev/null +++ b/gdb/testsuite/gdb.base/print-symbol-loading-main.c @@ -0,0 +1,25 @@ +/* Copyright 2010-2014 Free Software Foundation, Inc. + + This file is part of GDB. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. */ + +extern void lib (void); + +int +main (void) +{ + lib (); + return 0; +} |