From 425d5e76e04d684789452b35363be7302aa0c90b Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 26 Oct 2022 18:26:38 -0600 Subject: Convert compunit_language to a method This changes compunit_language to be a method on compunit_symtab. Approved-By: Simon Marchi --- gdb/mdebugread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/mdebugread.c') 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); -- cgit v1.1