mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 09:08:59 +00:00
gdb: remove SYMTAB_OBJFILE macro
Remove the macro, replace with an equivalent method. Change-Id: I8f9ecd290ad28502e53c1ceca5006ba78bf042eb
This commit is contained in:
@@ -7194,7 +7194,7 @@ get_sal_arch (struct symtab_and_line sal)
|
||||
if (sal.section)
|
||||
return sal.section->objfile->arch ();
|
||||
if (sal.symtab)
|
||||
return SYMTAB_OBJFILE (sal.symtab)->arch ();
|
||||
return sal.symtab->objfile ()->arch ();
|
||||
|
||||
return NULL;
|
||||
}
|
||||
@@ -9236,8 +9236,8 @@ resolve_sal_pc (struct symtab_and_line *sal)
|
||||
sym = block_linkage_function (b);
|
||||
if (sym != NULL)
|
||||
{
|
||||
fixup_symbol_section (sym, SYMTAB_OBJFILE (sal->symtab));
|
||||
sal->section = sym->obj_section (SYMTAB_OBJFILE (sal->symtab));
|
||||
fixup_symbol_section (sym, sal->symtab->objfile ());
|
||||
sal->section = sym->obj_section (sal->symtab->objfile ());
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -14736,7 +14736,7 @@ void
|
||||
breakpoint_free_objfile (struct objfile *objfile)
|
||||
{
|
||||
for (bp_location *loc : all_bp_locations ())
|
||||
if (loc->symtab != NULL && SYMTAB_OBJFILE (loc->symtab) == objfile)
|
||||
if (loc->symtab != NULL && loc->symtab->objfile () == objfile)
|
||||
loc->symtab = NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user