diff options
author | Tom Tromey <tromey@redhat.com> | 2012-02-02 14:58:33 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2012-02-02 14:58:33 +0000 |
commit | f149aabd9635963a60436c536fdc56436b927fd4 (patch) | |
tree | c46d52c32297f85f4dfd9b228d811d88ff8f183a /gdb/symtab.c | |
parent | facf03f2c394065666184d7d842e1488eaba355d (diff) | |
download | gdb-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.c | 5 |
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); |