diff options
author | Alan Modra <amodra@gmail.com> | 2016-07-27 09:00:03 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2016-07-27 09:01:45 +0930 |
commit | 293acfae4e3c9aad417e262edc9847c79bbbbb11 (patch) | |
tree | aba1597268a6c19cf6cd6ce5f9e6f76a8232c94d /sim/rx/load.c | |
parent | 6598661d14c90cabac1daa5e683d1e17883b2e41 (diff) | |
download | binutils-gdb-293acfae4e3c9aad417e262edc9847c79bbbbb11.tar.gz |
Wean gdb and sim off private libbfd.h header
The major reason this header was needed, bfd_default_set_arch_mach,
has now moved to bfd.h.
gdb/
* amd64-darwin-tdep.c: Don't include libbfd.h.
* i386-darwin-tdep.c: Likewise.
* rs6000-nat.c: Likewise.
* rs6000-tdep.c: Likewise.
sim/aarch64/
* memory.c: Don't include libbfd.h.
sim/rl78/
* load.c: Don't include libbfd.h.
(rl78_load): Don't use private iovec seek or read.
sim/rx/
* load.c: Don't include libbfd.h.
(rx_load): Don't use private iovec seek or read.
Diffstat (limited to 'sim/rx/load.c')
-rw-r--r-- | sim/rx/load.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sim/rx/load.c b/sim/rx/load.c index f88feb698f5..c4cbb436896 100644 --- a/sim/rx/load.c +++ b/sim/rx/load.c @@ -25,7 +25,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <string.h> #include "bfd.h" -#include "libbfd.h" #include "cpu.h" #include "mem.h" #include "load.h" @@ -146,12 +145,12 @@ rx_load (bfd *prog, host_callback *callback) } offset = p->p_offset; - if (prog->iovec->bseek (prog, offset, SEEK_SET) != 0) + if (bfd_seek (prog, offset, SEEK_SET) != 0) { fprintf (stderr, "Failed to seek to offset %lx\n", (long) offset); continue; } - if (prog->iovec->bread (prog, buf, size) != size) + if (bfd_bread (buf, size, prog) != size) { fprintf (stderr, "Failed to read %lx bytes\n", size); continue; |