aboutsummaryrefslogtreecommitdiff
path: root/gdb/cp-support.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2018-05-22 14:44:09 -0600
committerTom Tromey <tom@tromey.com>2018-07-20 09:42:53 -0600
commit80e649fcac86101a8a4581317e867e89de015d28 (patch)
tree66a16b2c2b5afa37a1ac6509bc2096de4f4150f8 /gdb/cp-support.h
parent0baae8dbd38534c0f3dcedc7b9204bbc8f18de1b (diff)
downloadfsf-binutils-gdb-80e649fcac86101a8a4581317e867e89de015d28.zip
fsf-binutils-gdb-80e649fcac86101a8a4581317e867e89de015d28.tar.gz
fsf-binutils-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/cp-support.h')
-rw-r--r--gdb/cp-support.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/cp-support.h b/gdb/cp-support.h
index e2460de..4e26921 100644
--- a/gdb/cp-support.h
+++ b/gdb/cp-support.h
@@ -33,6 +33,7 @@
struct symbol;
struct block;
+struct buildsym_compunit;
struct objfile;
struct type;
struct demangle_component;
@@ -132,7 +133,8 @@ extern symbol_name_matcher_ftype *cp_get_symbol_name_matcher
extern int cp_is_in_anonymous (const char *symbol_name);
-extern void cp_scan_for_anonymous_namespaces (const struct symbol *symbol,
+extern void cp_scan_for_anonymous_namespaces (struct buildsym_compunit *,
+ const struct symbol *symbol,
struct objfile *objfile);
extern struct block_symbol cp_lookup_symbol_nonlocal