Parameterize cp_scan_for_anonymous_namespaces
authorTom Tromey <tom@tromey.com>
Tue, 22 May 2018 20:44:09 +0000 (14:44 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 20 Jul 2018 15:42:53 +0000 (09:42 -0600)
commit80e649fcac86101a8a4581317e867e89de015d28
tree66a16b2c2b5afa37a1ac6509bc2096de4f4150f8
parent0baae8dbd38534c0f3dcedc7b9204bbc8f18de1b
Parameterize cp_scan_for_anonymous_namespaces

This changes cp_scan_for_anonymous_namespaces to use the
buildsym_compunit API, rather than the function-based API.

gdb/ChangeLog
2018-07-20  Tom Tromey  <tom@tromey.com>

* stabsread.c (define_symbol): Update.
* buildsym-legacy.h (get_buildsym_compunit): Declare.
* dwarf2read.c (new_symbol): Update.
* cp-support.h (cp_scan_for_anonymous_namespaces): Update.
* cp-namespace.c: Include buildsym.h.
(cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
* buildsym-legacy.c (get_buildsym_compunit): New function.
gdb/ChangeLog
gdb/buildsym-legacy.c
gdb/buildsym-legacy.h
gdb/cp-namespace.c
gdb/cp-support.h
gdb/dwarf2read.c
gdb/stabsread.c