Use symbol_set_language to set a symbol's language
authorChristian Biesinger <cbiesinger@google.com>
Sat, 14 Dec 2019 20:47:22 +0000 (15:47 -0500)
committerChristian Biesinger <cbiesinger@google.com>
Mon, 16 Dec 2019 06:39:50 +0000 (00:39 -0600)
commit747cfc8c6bb23d40b3fa987f6c3df9d3a0d7b817
tree1ce63753912e2acfad8c2937b342885150c853c3
parent0d037fafed44c6704d0f15e8d49815caebcd7814
Use symbol_set_language to set a symbol's language

Instead of using SYMBOL_LANGUAGE (sym) = foo.

Having only a single way to set a symbol's language is clearer and this
is also a requirement for making set_language a member function.

gdb/ChangeLog:

2019-12-15  Christian Biesinger  <cbiesinger@google.com>

* ada-exp.y (write_ambiguous_var): Call symbol_set_language to
set the language of sym.
* language.c (language_alloc_type_symbol): Likewise.

Change-Id: I85338ea2e4121155f2da222fe0aa6b7d3ffe26f7
gdb/ChangeLog
gdb/ada-exp.y
gdb/language.c