aboutsummaryrefslogtreecommitdiff
path: root/gdb/symtab.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2011-06-17 20:46:47 +0000
committerTom Tromey <tromey@redhat.com>2011-06-17 20:46:47 +0000
commit66a17cb6292ee31b9f46520761098d56550a341b (patch)
tree84bc405dd78d87cbab72d55ce5460034f25f57d3 /gdb/symtab.h
parent7518bff55ab27e073e9d03b5d700d469d362c85d (diff)
downloadgdb-66a17cb6292ee31b9f46520761098d56550a341b.zip
gdb-66a17cb6292ee31b9f46520761098d56550a341b.tar.gz
gdb-66a17cb6292ee31b9f46520761098d56550a341b.tar.bz2
* valops.c (value_of_this): Use lookup_language_this.
* symtab.h (lookup_language_this): Declare. * symtab.c (lookup_language_this): New function. (lookup_symbol_aux): Use lookup_language_this. * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
Diffstat (limited to 'gdb/symtab.h')
-rw-r--r--gdb/symtab.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/symtab.h b/gdb/symtab.h
index c4319a7..2716f34 100644
--- a/gdb/symtab.h
+++ b/gdb/symtab.h
@@ -33,6 +33,7 @@ struct blockvector;
struct axs_value;
struct agent_expr;
struct program_space;
+struct language_defn;
/* Some of the structures in this file are space critical.
The space-critical structures are:
@@ -917,6 +918,9 @@ extern struct symbol *lookup_symbol_aux_block (const char *name,
const struct block *block,
const domain_enum domain);
+extern struct symbol *lookup_language_this (const struct language_defn *lang,
+ const struct block *block);
+
/* Lookup a symbol only in the file static scope of all the objfiles. */
struct symbol *lookup_static_symbol_aux (const char *name,