Lines Matching refs:bfdh
44 bfd* bfdh; member
62 if ((bfdParams->bfdh = bfd_openr(fname, 0)) == NULL) { in arch_bfdInit()
67 if (!bfd_check_format(bfdParams->bfdh, bfd_object)) { in arch_bfdInit()
72 int storage_needed = bfd_get_symtab_upper_bound(bfdParams->bfdh); in arch_bfdInit()
79 bfd_canonicalize_symtab(bfdParams->bfdh, bfdParams->syms); in arch_bfdInit()
81 if ((bfdParams->section = bfd_get_section_by_name(bfdParams->bfdh, ".text")) == NULL) { in arch_bfdInit()
93 if (bfdParams->bfdh) { in arch_bfdDestroy()
94 bfd_close(bfdParams->bfdh); in arch_bfdDestroy()
105 .bfdh = NULL, in arch_bfdResolveSyms()
127 bfdParams.bfdh, bfdParams.section, bfdParams.syms, offset, &file, &func, &line)) { in arch_bfdResolveSyms()
152 bfd* bfdh = bfd_openr(fname, NULL); in arch_bfdDisasm() local
153 if (bfdh == NULL) { in arch_bfdDisasm()
158 if (!bfd_check_format(bfdh, bfd_object)) { in arch_bfdDisasm()
160 bfd_close(bfdh); in arch_bfdDisasm()
165 disassembler(bfd_get_arch(bfdh), bfd_little_endian(bfdh) ? FALSE : TRUE, 0, NULL); in arch_bfdDisasm()
167 disassembler_ftype disassemble = disassembler(bfdh); in arch_bfdDisasm()
171 bfd_close(bfdh); in arch_bfdDisasm()
177 info.arch = bfd_get_arch(bfdh); in arch_bfdDisasm()
178 info.mach = bfd_get_mach(bfdh); in arch_bfdDisasm()
182 info.endian = bfd_little_endian(bfdh) ? BFD_ENDIAN_LITTLE : BFD_ENDIAN_BIG; in arch_bfdDisasm()
190 bfd_close(bfdh); in arch_bfdDisasm()