diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2021-11-20 21:54:11 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2022-02-06 16:03:46 -0500 |
commit | 652099717dbb767c9d3eaed4c533486dd99d5e5b (patch) | |
tree | 1165879a9bb9e6d433559addb0e492e602d7c4c5 /gdb/breakpoint.c | |
parent | 012cfab919e7da355b2ac7f86674211cbce26041 (diff) | |
download | binutils-652099717dbb767c9d3eaed4c533486dd99d5e5b.zip binutils-652099717dbb767c9d3eaed4c533486dd99d5e5b.tar.gz binutils-652099717dbb767c9d3eaed4c533486dd99d5e5b.tar.bz2 |
gdb: remove SYMTAB_OBJFILE macro
Remove the macro, replace with an equivalent method.
Change-Id: I8f9ecd290ad28502e53c1ceca5006ba78bf042eb
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r-- | gdb/breakpoint.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 96a2b46..b1130ac 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -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; } |