aboutsummaryrefslogtreecommitdiff
path: root/gdb/symtab.c
diff options
context:
space:
mode:
authorDoug Evans <xdje42@gmail.com>2014-12-23 07:24:48 -0800
committerDoug Evans <xdje42@gmail.com>2014-12-23 07:24:48 -0800
commitf606139ae8aa873f6294aaf3bf599d18c3025023 (patch)
tree89f5cfaabc835c5d29cc046e3cd2b6bc13564edb /gdb/symtab.c
parent08be3fe322244a3684d007d9282e225fc215f5d8 (diff)
downloadgdb-f606139ae8aa873f6294aaf3bf599d18c3025023.zip
gdb-f606139ae8aa873f6294aaf3bf599d18c3025023.tar.gz
gdb-f606139ae8aa873f6294aaf3bf599d18c3025023.tar.bz2
Add langdef arg to la_lookup_symbol_nonlocal.
gdb/ChangeLog: * language.h (struct language_defn) <la_lookup_symbol_nonlocal>: New arg language_defn. All uses updated.
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r--gdb/symtab.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c
index 1b9ea06..7d2cde5 100644
--- a/gdb/symtab.c
+++ b/gdb/symtab.c
@@ -1485,7 +1485,7 @@ lookup_symbol_aux (const char *name, const struct block *block,
/* Now do whatever is appropriate for LANGUAGE to look
up static and global variables. */
- sym = langdef->la_lookup_symbol_nonlocal (name, block, domain);
+ sym = langdef->la_lookup_symbol_nonlocal (langdef, name, block, domain);
if (sym != NULL)
{
if (symbol_lookup_debug)
@@ -1805,7 +1805,8 @@ lookup_symbol_via_quick_fns (struct objfile *objfile, int block_index,
/* See symtab.h. */
struct symbol *
-basic_lookup_symbol_nonlocal (const char *name,
+basic_lookup_symbol_nonlocal (const struct language_defn *langdef,
+ const char *name,
const struct block *block,
const domain_enum domain)
{