diff options
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r-- | gdb/breakpoint.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 3ebe9c9..1c0a417 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -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; } |