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/symfile.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/symfile.c')
-rw-r--r-- | gdb/symfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c index 46c4201..1a64fc7 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -2780,7 +2780,7 @@ allocate_symtab (struct compunit_symtab *cust, const char *filename) symtab->filename = objfile->intern (filename); symtab->fullname = NULL; - symtab->language = deduce_language_from_filename (filename); + symtab->set_language (deduce_language_from_filename (filename)); /* This can be very verbose with lots of headers. Only print at higher debug levels. */ |