aboutsummaryrefslogtreecommitdiff
path: root/gdb/symtab.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2012-02-02 14:58:33 +0000
committerTom Tromey <tromey@redhat.com>2012-02-02 14:58:33 +0000
commitf149aabd9635963a60436c536fdc56436b927fd4 (patch)
treec46d52c32297f85f4dfd9b228d811d88ff8f183a /gdb/symtab.c
parentfacf03f2c394065666184d7d842e1488eaba355d (diff)
downloadgdb-f149aabd9635963a60436c536fdc56436b927fd4.zip
gdb-f149aabd9635963a60436c536fdc56436b927fd4.tar.gz
gdb-f149aabd9635963a60436c536fdc56436b927fd4.tar.bz2
PR gdb/9307:
* symtab.c (lookup_language_this): Set block_found. gdb/testsuite * gdb.cp/dispcxx.exp: New file. * gdb.cp/dispcxx.cc: New file.
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r--gdb/symtab.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c
index c6314c9..61f7536 100644
--- a/gdb/symtab.c
+++ b/gdb/symtab.c
@@ -1232,7 +1232,10 @@ lookup_language_this (const struct language_defn *lang,
sym = lookup_block_symbol (block, lang->la_name_of_this, VAR_DOMAIN);
if (sym != NULL)
- return sym;
+ {
+ block_found = block;
+ return sym;
+ }
if (BLOCK_FUNCTION (block))
break;
block = BLOCK_SUPERBLOCK (block);