From 59dfe8ad84c6a9ef17a1ba4a8f443ac3cb9f6fd5 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Mon, 28 Mar 2022 18:17:17 -0400 Subject: gdb: rename start_symtab/end_symtab to start_compunit_symtab/end_compunit_symtab It's a bit confusing because we have both "compunit_symtab" and "symtab" types, and many methods and functions containing "start_symtab" or "end_symtab", which actually deal with compunit_symtabs. I believe this comes from the time before compunit_symtab was introduced, where symtab did the job of both. Rename everything I found containing start_symtab or end_symtab to use start_compunit_symtab or end_compunit_symtab. Change-Id: If3849b156f6433640173085ad479b6a0b085ade2 --- gdb/mdebugread.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gdb/mdebugread.c') diff --git a/gdb/mdebugread.c b/gdb/mdebugread.c index 0db0508..eae8064 100644 --- a/gdb/mdebugread.c +++ b/gdb/mdebugread.c @@ -3961,7 +3961,7 @@ mdebug_expand_psymtab (legacy_psymtab *pst, struct objfile *objfile) { valu += section_offsets[SECT_OFF_TEXT (objfile)]; previous_stab_code = N_SO; - cust = end_symtab (valu, SECT_OFF_TEXT (objfile)); + cust = end_compunit_symtab (valu, SECT_OFF_TEXT (objfile)); end_stabs (); last_symtab_ended = 1; } @@ -4021,7 +4021,8 @@ mdebug_expand_psymtab (legacy_psymtab *pst, struct objfile *objfile) if (! last_symtab_ended) { - cust = end_symtab (pst->raw_text_high (), SECT_OFF_TEXT (objfile)); + cust = end_compunit_symtab (pst->raw_text_high (), + SECT_OFF_TEXT (objfile)); end_stabs (); } -- cgit v1.1