diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2022-03-28 18:17:17 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2022-04-04 12:58:07 -0400 |
commit | 59dfe8ad84c6a9ef17a1ba4a8f443ac3cb9f6fd5 (patch) | |
tree | 119727391fc7c5e95ace6211cac153fcbfb93876 /gdb/mdebugread.c | |
parent | 056b6f879d0b958d470b9ed1df19ec68daf77467 (diff) | |
download | binutils-59dfe8ad84c6a9ef17a1ba4a8f443ac3cb9f6fd5.zip binutils-59dfe8ad84c6a9ef17a1ba4a8f443ac3cb9f6fd5.tar.gz binutils-59dfe8ad84c6a9ef17a1ba4a8f443ac3cb9f6fd5.tar.bz2 |
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
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 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 (); } |