Use symbol_set_language to set a symbol's language
[deliverable/binutils-gdb.git] / gdb / language.c
index 6ab0ca323d20e2afa5a6f1ab2be56d60b8028779..ed850350b17694a76b9344d0c8ae54aef492bd17 100644 (file)
@@ -1051,7 +1051,7 @@ language_alloc_type_symbol (enum language lang, struct type *type)
   symbol = new (gdbarch_obstack (gdbarch)) struct symbol ();
 
   symbol->name = TYPE_NAME (type);
-  symbol->language = lang;
+  symbol_set_language (symbol, lang, nullptr);
   symbol->owner.arch = gdbarch;
   SYMBOL_OBJFILE_OWNED (symbol) = 0;
   SYMBOL_TYPE (symbol) = type;
This page took 0.026112 seconds and 4 git commands to generate.