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/mdebugread.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/mdebugread.c')
-rw-r--r-- | gdb/mdebugread.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/mdebugread.c b/gdb/mdebugread.c index 3dc6a8b..192fafa 100644 --- a/gdb/mdebugread.c +++ b/gdb/mdebugread.c @@ -4084,10 +4084,11 @@ mdebug_expand_psymtab (legacy_psymtab *pst, struct objfile *objfile) /* The proper language was already determined when building the psymtab, use it. */ - cust->primary_filetab ()->language = PST_PRIVATE (pst)->pst_language; + cust->primary_filetab ()->set_language + (PST_PRIVATE (pst)->pst_language); } - psymtab_language = cust->primary_filetab ()->language; + psymtab_language = cust->primary_filetab ()->language (); lines = cust->primary_filetab ()->linetable (); |