diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2021-11-20 08:47:30 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2022-02-06 16:03:44 -0500 |
commit | 1ee2e9f9304d05f2962bbc4b83096b850fe4e433 (patch) | |
tree | 5df392b5191f79e7193b0d53cfb03c77233abeb7 /gdb/symmisc.c | |
parent | 5b6074611edfdd1590e8da1ca443950b47942bbb (diff) | |
download | gdb-1ee2e9f9304d05f2962bbc4b83096b850fe4e433.zip gdb-1ee2e9f9304d05f2962bbc4b83096b850fe4e433.tar.gz gdb-1ee2e9f9304d05f2962bbc4b83096b850fe4e433.tar.bz2 |
gdb: remove SYMTAB_LANGUAGE macro, add getter/setter
Add a getter and a setter for a symtab's language. Remove the
corresponding macro and adjust all callers.
Change-Id: I9f4d840b11c19f80f39bac1bce020fdd1739e11f
Diffstat (limited to 'gdb/symmisc.c')
-rw-r--r-- | gdb/symmisc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/symmisc.c b/gdb/symmisc.c index 2fdd0f6..24b2915 100644 --- a/gdb/symmisc.c +++ b/gdb/symmisc.c @@ -256,7 +256,7 @@ dump_symtab_1 (struct symtab *symtab, struct ui_file *outfile) objfile_name (objfile), host_address_to_string (objfile)); fprintf_filtered (outfile, "Language: %s\n", - language_str (symtab->language)); + language_str (symtab->language ())); /* First print the line table. */ l = symtab->linetable (); @@ -370,11 +370,11 @@ dump_symtab (struct symtab *symtab, struct ui_file *outfile) because certain routines used during dump_symtab() use the current language to print an image of the symbol. We'll restore it later. But use only real languages, not placeholders. */ - if (symtab->language != language_unknown - && symtab->language != language_auto) + if (symtab->language () != language_unknown + && symtab->language () != language_auto) { scoped_restore_current_language save_lang; - set_language (symtab->language); + set_language (symtab->language ()); dump_symtab_1 (symtab, outfile); } else |