Add debug output for recorded minsyms
authorSimon Marchi <simon.marchi@ericsson.com>
Sat, 22 Dec 2018 02:19:09 +0000 (21:19 -0500)
committerSimon Marchi <simon.marchi@polymtl.ca>
Sat, 22 Dec 2018 02:19:18 +0000 (21:19 -0500)
commite08b849efa7af6cb13d7d3d02dc366b9d7f4208c
tree1a27e0867019800c1334781ada8bd77cf1453d05
parent5ec79917fa45f4f0870d7d0a09806e31dd5d28b5
Add debug output for recorded minsyms

While discussing this issue:

  https://sourceware.org/ml/gdb-patches/2018-12/threads.html#00082

I added a printf gated by "set debug symtab-create" to be able to
quickly see all minimal symbols recorded by GDB.  I thought it would be
useful to have it built-in, for the future.  Here's how the output
looks:

  Recording minsym:  mst_data                         0x400780    15  _IO_stdin_used
  Recording minsym:  mst_text                         0x400700    13  __libc_csu_init
  Recording minsym:  mst_bss                          0x601058    25  _end

gdb/ChangeLog:

* minsyms.c (mst_str): New.
(minimal_symbol_reader::record_full): Add debug output.
gdb/ChangeLog
gdb/minsyms.c