diff options
author | Tom Tromey <tromey@redhat.com> | 2012-08-22 16:24:39 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2012-08-22 16:24:39 +0000 |
commit | 1c00ec6b06aa852351b7eebd64b4f1604766e818 (patch) | |
tree | 1c8d29e9bd8e5323650d08916442e681faa95d73 /gdb/remote-mips.c | |
parent | 6532ff3697890085456f353dd49068edfd4ed422 (diff) | |
download | gdb-1c00ec6b06aa852351b7eebd64b4f1604766e818.zip gdb-1c00ec6b06aa852351b7eebd64b4f1604766e818.tar.gz gdb-1c00ec6b06aa852351b7eebd64b4f1604766e818.tar.bz2 |
* windows-nat.c (windows_make_so): Use gdb_bfd_open.
* symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
(symfile_bfd_open): Likewise.
(generic_load): Likewise.
* solib.c (solib_bfd_fopen): Use gdb_bfd_open.
* solib-pa64.c (pa64_solib_create_inferior_hook): Use
gdb_bfd_open.
* solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
Use gdb_bfd_open.
* rs6000-nat.c (add_vmap): Use gdb_bfd_open.
* remote-mips.c (mips_load_srec): Use gdb_bfd_open.
(pmon_load_fast): Likewise.
* remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
* procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
* machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
(macho_check_dsym): Likewise.
* m32r-rom.c (m32r_load): Use gdb_bfd_open.
(m32r_upload_command): Likewise.
* gdb_bfd.h (gdb_bfd_cache): Declare.
* gdb_bfd.c (struct gdb_bfd_data): New.
(gdb_bfd_cache): New global.
(struct gdb_bfd_cache_search): New.
(hash_bfd): New function.
(eq_bfd): Likewise.
(gdb_bfd_open): Likewise.
(gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
(gdb_bfd_unref): Remove closed BFD from cache. Update for
gdb_bfd_data.
* exec.c (exec_file_attach): Use gdb_bfd_open.
* dsrec.c (load_srec): Use gdb_bfd_open.
Diffstat (limited to 'gdb/remote-mips.c')
-rw-r--r-- | gdb/remote-mips.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/remote-mips.c b/gdb/remote-mips.c index db4381b..7219bc7 100644 --- a/gdb/remote-mips.c +++ b/gdb/remote-mips.c @@ -2789,7 +2789,7 @@ mips_load_srec (char *args) buffer = alloca (srec_frame * 2 + 256); - abfd = gdb_bfd_openr (args, 0); + abfd = gdb_bfd_open (args, NULL, -1); if (!abfd) { printf_filtered ("Unable to open file %s\n", args); @@ -3376,7 +3376,7 @@ pmon_load_fast (char *file) buffer = (char *) xmalloc (MAXRECSIZE + 1); binbuf = (unsigned char *) xmalloc (BINCHUNK); - abfd = gdb_bfd_openr (file, 0); + abfd = gdb_bfd_open (file, NULL, -1); if (!abfd) { printf_filtered ("Unable to open file %s\n", file); |