new callback parameter expansion_notify for expand_symtabs_matching
authorGary Benson <gbenson@redhat.com>
Sat, 31 Jan 2015 22:45:26 +0000 (14:45 -0800)
committerDoug Evans <xdje42@gmail.com>
Sat, 31 Jan 2015 22:45:26 +0000 (14:45 -0800)
commit276d885b572b12221f639641846ab94ef9582995
tree979dd34e3f0f20d27e1bf1b7227b25bde3b17ff1
parent5dd31d7995882a43fab9b35b11775499126d7bd8
new callback parameter expansion_notify for expand_symtabs_matching

This commit adds a new callback parameter, "expansion_notify", to the
top-level expand_symtabs_matching function and to all the vectorized
functions it defers to.  If expansion_notify is non-NULL, it will be
called every time a symbol table is expanded.

gdb/ChangeLog:

* symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
(struct quick_symbol_functions) <expand_symtabs_matching>:
New argument expansion_notify.  All uses updated.
(expand_symtabs_matching): New argument expansion_notify.
All uses updated.
* symfile-debug.c (debug_qf_expand_symtabs_matching):
Also print expansion notify.
* symtab.c (expand_symtabs_matching_via_partial): Call
expansion_notify whenever a partial symbol table is expanded.
* dwarf2read.c (dw2_expand_symtabs_matching): Call
expansion_notify whenever a symbol table is instantiated.
gdb/ChangeLog
gdb/ada-lang.c
gdb/dwarf2read.c
gdb/linespec.c
gdb/psymtab.c
gdb/symfile-debug.c
gdb/symfile.c
gdb/symfile.h
gdb/symmisc.c
gdb/symtab.c