diff options
author | Aleksandar Ristovski <aristovski@qnx.com> | 2011-10-20 20:06:14 +0000 |
---|---|---|
committer | Aleksandar Ristovski <aristovski@qnx.com> | 2011-10-20 20:06:14 +0000 |
commit | a10964d12c48edb3e0be45e2d67ad70a0e129601 (patch) | |
tree | 7ce39f159d51972645205e6861264103f6532631 /gdb/cp-namespace.c | |
parent | 9553db3cc35cec5cd502d061e8be9da898d825af (diff) | |
download | gdb-a10964d12c48edb3e0be45e2d67ad70a0e129601.zip gdb-a10964d12c48edb3e0be45e2d67ad70a0e129601.tar.gz gdb-a10964d12c48edb3e0be45e2d67ad70a0e129601.tar.bz2 |
* cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
arguments by adding OBJFILE. Instead of getting objfile from
symbol's symtab, use new argument OBJFILE.
* cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
arguments by adding OBJFILE.
* gdb/dwarf2read.c (new_symbol_full): Change call to
cp_scan_for_anonymous_namespaces to match new signature.
* gdb/stabsread.c (define_symbol): Change call to
cp_scan_for_anonymous_namespaces to match new signature.
Diffstat (limited to 'gdb/cp-namespace.c')
-rw-r--r-- | gdb/cp-namespace.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/cp-namespace.c b/gdb/cp-namespace.c index 68febcd..8608725 100644 --- a/gdb/cp-namespace.c +++ b/gdb/cp-namespace.c @@ -53,7 +53,8 @@ static struct type *cp_lookup_transparent_type_loop (const char *name, anonymous namespace; if so, add an appropriate using directive. */ void -cp_scan_for_anonymous_namespaces (const struct symbol *symbol) +cp_scan_for_anonymous_namespaces (const struct symbol *const symbol, + struct objfile *const objfile) { if (SYMBOL_DEMANGLED_NAME (symbol) != NULL) { @@ -96,7 +97,7 @@ cp_scan_for_anonymous_namespaces (const struct symbol *symbol) namespace given by the previous component if there is one, or to the global namespace if there isn't. */ cp_add_using_directive (dest, src, NULL, NULL, NULL, - &SYMBOL_SYMTAB (symbol)->objfile->objfile_obstack); + &objfile->objfile_obstack); } /* The "+ 2" is for the "::". */ previous_component = next_component + 2; |