aboutsummaryrefslogtreecommitdiff
path: root/binutils/coffgrok.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2020-05-19 12:35:56 +0930
committerAlan Modra <amodra@gmail.com>2020-05-19 12:35:56 +0930
commitc177f3771c821d649bc1b1d6dc67caa0a0a22f78 (patch)
tree9dbca410452dee46148f2fcc7adf39b7d467fda9 /binutils/coffgrok.c
parent765cf5f623dbc2de8c8791bce9a29fcc3492436c (diff)
downloadgdb-c177f3771c821d649bc1b1d6dc67caa0a0a22f78.zip
gdb-c177f3771c821d649bc1b1d6dc67caa0a0a22f78.tar.gz
gdb-c177f3771c821d649bc1b1d6dc67caa0a0a22f78.tar.bz2
Use bfd_get_filename throughout binutils
* ar.c (map_over_members, get_pos_bfd, delete_members, move_members), (replace_members): Use bfd_get_filename rather than accessing bfd->filename directly. * arsup.c (map_over_list, ar_delete, ar_replace, ar_extract): Likewise. * binemul.c (do_ar_emul_append): Likewise. * coffgrok.c (coff_grok): Likewise.
Diffstat (limited to 'binutils/coffgrok.c')
-rw-r--r--binutils/coffgrok.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/binutils/coffgrok.c b/binutils/coffgrok.c
index 74e6a7b..eef888f 100644
--- a/binutils/coffgrok.c
+++ b/binutils/coffgrok.c
@@ -890,12 +890,12 @@ coff_grok (bfd *inabfd)
storage = bfd_get_symtab_upper_bound (abfd);
if (storage < 0)
- bfd_fatal (abfd->filename);
+ bfd_fatal (bfd_get_filename (abfd));
syms = (asymbol **) xmalloc (storage);
symcount = bfd_canonicalize_symtab (abfd, syms);
if (symcount < 0)
- bfd_fatal (abfd->filename);
+ bfd_fatal (bfd_get_filename (abfd));
rawsyms = obj_raw_syments (abfd);
rawcount = obj_raw_syment_count (abfd);
tindex = (struct coff_symbol **) (xcalloc (sizeof (struct coff_symbol *), rawcount));