forked from Imagelibrary/binutils-gdb
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
This commit is contained in:
@@ -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 ();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user