diff options
author | Alan Modra <amodra@gmail.com> | 2018-05-18 08:31:13 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2018-05-18 13:06:55 +0930 |
commit | 29e0f0a144fcabb6fa088c58b49e5924d7c43967 (patch) | |
tree | 4fb85d8155b58785041213d626f648d9d2e14e82 /opcodes/nfp-dis.c | |
parent | 838c49a4f3df728ed08bb77fb86ebaf199747b04 (diff) | |
download | gdb-29e0f0a144fcabb6fa088c58b49e5924d7c43967.zip gdb-29e0f0a144fcabb6fa088c58b49e5924d7c43967.tar.gz gdb-29e0f0a144fcabb6fa088c58b49e5924d7c43967.tar.bz2 |
opcodes sources should not include libbfd.h
* nfp-dis.c: Don't #include libbfd.h.
(init_nfp3200_priv): Use bfd_get_section_contents.
(nit_nfp6000_mecsr_sec): Likewise.
Diffstat (limited to 'opcodes/nfp-dis.c')
-rw-r--r-- | opcodes/nfp-dis.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/opcodes/nfp-dis.c b/opcodes/nfp-dis.c index 9dda34b..e501b14 100644 --- a/opcodes/nfp-dis.c +++ b/opcodes/nfp-dis.c @@ -34,7 +34,6 @@ #include "elf-bfd.h" #include "bfd.h" #include "bfd_stdint.h" -#include "libbfd.h" #define _NFP_ERR_STOP -1 #define _NFP_ERR_CONT -8 @@ -2573,9 +2572,8 @@ init_nfp3200_priv (nfp_priv_data * priv, struct disassemble_info *dinfo) mecfg = &priv->mecfgs[isl][menum][1]; - if (!_bfd_generic_get_section_contents (dinfo->section->owner, - sec->bfd_section, buffer, - roff, sizeof (buffer))) + if (!bfd_get_section_contents (dinfo->section->owner, sec->bfd_section, + buffer, roff, sizeof (buffer))) return FALSE; mecfg_ent.ctx_enables = bfd_getl32 (buffer + offsetof (Elf_Nfp_MeConfig, @@ -2622,9 +2620,8 @@ init_nfp6000_mecsr_sec (nfp_priv_data * priv, Elf_Internal_Shdr * sec, uint32_t csr_off; nfp_priv_mecfg *mecfg; - if (!_bfd_generic_get_section_contents (dinfo->section->owner, - sec->bfd_section, buffer, - ireg_off, sizeof (buffer))) + if (!bfd_get_section_contents (dinfo->section->owner, sec->bfd_section, + buffer, ireg_off, sizeof (buffer))) return FALSE; ireg.cpp_offset_lo = bfd_getl32 (buffer |