mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-27 01:28:46 +00:00
SYMTAB_OBJFILE: New macro.
gdb/ChangeLog: * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member symtab.objfile updated to use it.
This commit is contained in:
@@ -7314,7 +7314,7 @@ get_sal_arch (struct symtab_and_line sal)
|
||||
if (sal.section)
|
||||
return get_objfile_arch (sal.section->objfile);
|
||||
if (sal.symtab)
|
||||
return get_objfile_arch (sal.symtab->objfile);
|
||||
return get_objfile_arch (SYMTAB_OBJFILE (sal.symtab));
|
||||
|
||||
return NULL;
|
||||
}
|
||||
@@ -10210,8 +10210,9 @@ resolve_sal_pc (struct symtab_and_line *sal)
|
||||
sym = block_linkage_function (b);
|
||||
if (sym != NULL)
|
||||
{
|
||||
fixup_symbol_section (sym, sal->symtab->objfile);
|
||||
sal->section = SYMBOL_OBJ_SECTION (sal->symtab->objfile, sym);
|
||||
fixup_symbol_section (sym, SYMTAB_OBJFILE (sal->symtab));
|
||||
sal->section = SYMBOL_OBJ_SECTION (SYMTAB_OBJFILE (sal->symtab),
|
||||
sym);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -16050,7 +16051,7 @@ breakpoint_free_objfile (struct objfile *objfile)
|
||||
struct bp_location **locp, *loc;
|
||||
|
||||
ALL_BP_LOCATIONS (loc, locp)
|
||||
if (loc->symtab != NULL && loc->symtab->objfile == objfile)
|
||||
if (loc->symtab != NULL && SYMTAB_OBJFILE (loc->symtab) == objfile)
|
||||
loc->symtab = NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user