S390: Migrate watch areas from list to VEC type
[deliverable/binutils-gdb.git] / gdb / cp-namespace.c
index 016a42f5883a298febb6d2f1eb001ec722549e1c..0f1b452f6510fcd234ba8af44431906e9f62a8db 100644 (file)
@@ -206,10 +206,15 @@ cp_lookup_bare_symbol (const struct language_defn *langdef,
       struct block_symbol lang_this;
       struct type *type;
 
-      lang_this = lookup_language_this (language_def (language_cplus), block);
+      lang_this.symbol = NULL;
+
+      if (langdef != NULL)
+       lang_this = lookup_language_this (langdef, block);
+
       if (lang_this.symbol == NULL)
        return null_block_symbol;
 
+
       type = check_typedef (TYPE_TARGET_TYPE (SYMBOL_TYPE (lang_this.symbol)));
       /* If TYPE_NAME is NULL, abandon trying to find this symbol.
         This can happen for lambda functions compiled with clang++,
This page took 0.02374 seconds and 4 git commands to generate.