aboutsummaryrefslogtreecommitdiff
path: root/gdb/mdebugread.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2022-10-26 18:26:38 -0600
committerTom Tromey <tom@tromey.com>2022-10-28 14:19:22 -0600
commit425d5e76e04d684789452b35363be7302aa0c90b (patch)
tree3e73e34aae22cff2adb55048ebfd2428563cd6e0 /gdb/mdebugread.c
parent6b84c098e533f87d7973fd6fe8a39ee97255ebdb (diff)
downloadgdb-425d5e76e04d684789452b35363be7302aa0c90b.zip
gdb-425d5e76e04d684789452b35363be7302aa0c90b.tar.gz
gdb-425d5e76e04d684789452b35363be7302aa0c90b.tar.bz2
Convert compunit_language to a method
This changes compunit_language to be a method on compunit_symtab. Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/mdebugread.c')
-rw-r--r--gdb/mdebugread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/mdebugread.c b/gdb/mdebugread.c
index c547e23..0505891 100644
--- a/gdb/mdebugread.c
+++ b/gdb/mdebugread.c
@@ -4623,7 +4623,7 @@ new_symtab (const char *name, int maxlines, struct objfile *objfile)
symtab = allocate_symtab (cust, name);
symtab->set_linetable (new_linetable (maxlines));
- lang = compunit_language (cust);
+ lang = cust->language ();
/* All symtabs must have at least two blocks. */
bv = new_bvect (2);