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:
Doug Evans
2014-11-18 09:19:11 -08:00
parent 98387a2917
commit eb822aa6d0
19 changed files with 52 additions and 43 deletions

View File

@@ -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;
}