diff options
author | Tom Tromey <tom@tromey.com> | 2019-09-08 11:38:24 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-09-11 07:02:46 -0600 |
commit | 64b2d4a0a4e4f80d2aa2e52c6eec3186e76fc397 (patch) | |
tree | 33767370cb253d485e62fb6d421d227a80f4eccd /bfd/bfd-in2.h | |
parent | 1ff5d5c46342727ad6728732e122f963fbb2268b (diff) | |
download | gdb-64b2d4a0a4e4f80d2aa2e52c6eec3186e76fc397.zip gdb-64b2d4a0a4e4f80d2aa2e52c6eec3186e76fc397.tar.gz gdb-64b2d4a0a4e4f80d2aa2e52c6eec3186e76fc397.tar.bz2 |
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.
Diffstat (limited to 'bfd/bfd-in2.h')
-rw-r--r-- | bfd/bfd-in2.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h index dc9b5da..13445a1 100644 --- a/bfd/bfd-in2.h +++ b/bfd/bfd-in2.h @@ -1193,6 +1193,8 @@ bfd_boolean bfd_fill_in_gnu_debuglink_section char *bfd_follow_build_id_debuglink (bfd *abfd, const char *dir); +void bfd_set_filename (bfd *abfd, char *filename); + /* Extracted from libbfd.c. */ /* Byte swapping macros for user section data. */ |