Use bfd_get_filename throughout gdb
authorAlan Modra <amodra@gmail.com>
Tue, 19 May 2020 22:29:00 +0000 (07:59 +0930)
committerAlan Modra <amodra@gmail.com>
Tue, 19 May 2020 22:29:00 +0000 (07:59 +0930)
commitc7e976792002c6a2810f9bb6cc3ad210514eb650
treeedda6f42af6427ed4643c40ba52cd62d17a867ee
parent76571211fe65c4942f3ce4e04115a0396cd2522c
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.
gdb/ChangeLog
gdb/coff-pe-read.c
gdb/dtrace-probe.c
gdb/dwarf2/frame.c
gdb/exec.c
gdb/solib-aix.c
gdb/stap-probe.c
gdb/symfile.c