diff options
author | Alan Modra <amodra@gmail.com> | 2020-05-20 07:59:00 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2020-05-20 07:59:00 +0930 |
commit | c7e976792002c6a2810f9bb6cc3ad210514eb650 (patch) | |
tree | edda6f42af6427ed4643c40ba52cd62d17a867ee /gdb/symfile.c | |
parent | 76571211fe65c4942f3ce4e04115a0396cd2522c (diff) | |
download | gdb-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/symfile.c')
-rw-r--r-- | gdb/symfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c index 01e0726..dd8192a 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -2450,7 +2450,7 @@ reread_symbols (void) a `shared library' on AIX is also an archive), then you should stat on the archive name, not member name. */ if (objfile->obfd->my_archive) - res = stat (objfile->obfd->my_archive->filename, &new_statbuf); + res = stat (bfd_get_filename (objfile->obfd->my_archive), &new_statbuf); else res = stat (objfile_name (objfile), &new_statbuf); if (res != 0) |