diff options
author | Tom Tromey <tom@tromey.com> | 2018-05-22 14:44:09 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2018-07-20 09:42:53 -0600 |
commit | 80e649fcac86101a8a4581317e867e89de015d28 (patch) | |
tree | 66a16b2c2b5afa37a1ac6509bc2096de4f4150f8 /gdb/buildsym-legacy.h | |
parent | 0baae8dbd38534c0f3dcedc7b9204bbc8f18de1b (diff) | |
download | gdb-80e649fcac86101a8a4581317e867e89de015d28.zip gdb-80e649fcac86101a8a4581317e867e89de015d28.tar.gz gdb-80e649fcac86101a8a4581317e867e89de015d28.tar.bz2 |
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.
Diffstat (limited to 'gdb/buildsym-legacy.h')
-rw-r--r-- | gdb/buildsym-legacy.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/buildsym-legacy.h b/gdb/buildsym-legacy.h index 78a5644..191c344 100644 --- a/gdb/buildsym-legacy.h +++ b/gdb/buildsym-legacy.h @@ -207,4 +207,8 @@ extern struct pending **get_file_symbols (); extern struct pending **get_global_symbols (); +/* Return the current buildsym_compunit. */ + +extern struct buildsym_compunit *get_buildsym_compunit (); + #endif /* defined (LEGACY_BUILDSYM_H) */ |