diff options
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/cp-namespace.c | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2d3e5ed..92c1337 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2016-07-07 Walfred Tedeschi <walfred.tedeschi@intel.com> + * cp-namespace.c (cp_lookup_bare_symbol): Initialize + lang_this.symbol. + +2016-07-07 Walfred Tedeschi <walfred.tedeschi@intel.com> + * cp-namespace.c (cp_lookup_bare_symbol): Use language passed as parameter to look for the symbol "this". diff --git a/gdb/cp-namespace.c b/gdb/cp-namespace.c index f34e383..0f1b452 100644 --- a/gdb/cp-namespace.c +++ b/gdb/cp-namespace.c @@ -206,6 +206,8 @@ cp_lookup_bare_symbol (const struct language_defn *langdef, struct block_symbol lang_this; struct type *type; + lang_this.symbol = NULL; + if (langdef != NULL) lang_this = lookup_language_this (langdef, block); |