Introduce bfd_set_filename
authorTom Tromey <tom@tromey.com>
Sun, 8 Sep 2019 17:38:24 +0000 (11:38 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 11 Sep 2019 13:02:46 +0000 (07:02 -0600)
commit64b2d4a0a4e4f80d2aa2e52c6eec3186e76fc397
tree33767370cb253d485e62fb6d421d227a80f4eccd
parent1ff5d5c46342727ad6728732e122f963fbb2268b
Introduce bfd_set_filename

This introduces a new bfd_set_filename function, which is then used in
various spots in gdb.  This allows for the removal of some casts.

bfd/ChangeLog
2019-09-11  Tom Tromey  <tom@tromey.com>

* opncls.c (bfd_set_filename): New function.
* bfd-in2.h: Regenerate.

gdb/ChangeLog
2019-09-11  Tom Tromey  <tom@tromey.com>

* symfile-mem.c (symbol_file_add_from_memory): Use
bfd_set_filename.
* solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
* solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
bfd/ChangeLog
bfd/bfd-in2.h
bfd/opncls.c
gdb/ChangeLog
gdb/solib-aix.c
gdb/solib-darwin.c
gdb/symfile-mem.c