aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2/frame.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2020-05-20 07:59:00 +0930
committerAlan Modra <amodra@gmail.com>2020-05-20 07:59:00 +0930
commitc7e976792002c6a2810f9bb6cc3ad210514eb650 (patch)
treeedda6f42af6427ed4643c40ba52cd62d17a867ee /gdb/dwarf2/frame.c
parent76571211fe65c4942f3ce4e04115a0396cd2522c (diff)
downloadgdb-c7e976792002c6a2810f9bb6cc3ad210514eb650.zip
gdb-c7e976792002c6a2810f9bb6cc3ad210514eb650.tar.gz
gdb-c7e976792002c6a2810f9bb6cc3ad210514eb650.tar.bz2
Use bfd_get_filename throughout gdb
This patch makes gdb use the inline accessor for all bfd->filename read accesses. * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename rather than accessing bfd->filename directly. * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise, and use bfd_section_name. * dwarf2/frame.c (decode_frame_entry): Likewise. * exec.c (exec_set_section_address): Likewise. * solib-aix.c (solib_aix_bfd_open): Likewise. * stap-probe.c (get_stap_base_address): Likewise. * symfile.c (reread_symbols): Likewise.
Diffstat (limited to 'gdb/dwarf2/frame.c')
-rw-r--r--gdb/dwarf2/frame.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/dwarf2/frame.c b/gdb/dwarf2/frame.c
index f7276d4..a05f841 100644
--- a/gdb/dwarf2/frame.c
+++ b/gdb/dwarf2/frame.c
@@ -2101,21 +2101,21 @@ decode_frame_entry (struct gdbarch *gdbarch,
case ALIGN4:
complaint (_("\
Corrupt data in %s:%s; align 4 workaround apparently succeeded"),
- unit->dwarf_frame_section->owner->filename,
- unit->dwarf_frame_section->name);
+ bfd_get_filename (unit->dwarf_frame_section->owner),
+ bfd_section_name (unit->dwarf_frame_section));
break;
case ALIGN8:
complaint (_("\
Corrupt data in %s:%s; align 8 workaround apparently succeeded"),
- unit->dwarf_frame_section->owner->filename,
- unit->dwarf_frame_section->name);
+ bfd_get_filename (unit->dwarf_frame_section->owner),
+ bfd_section_name (unit->dwarf_frame_section));
break;
default:
complaint (_("Corrupt data in %s:%s"),
- unit->dwarf_frame_section->owner->filename,
- unit->dwarf_frame_section->name);
+ bfd_get_filename (unit->dwarf_frame_section->owner),
+ bfd_section_name (unit->dwarf_frame_section));
break;
}