/haiku-fatelf/src/bin/gdb/bfd/ |
H A D | trad-core.c | 65 const bfd_target *trad_unix_core_file_p PARAMS ((bfd *abfd)); 66 char * trad_unix_core_file_failing_command PARAMS ((bfd *abfd)); 67 int trad_unix_core_file_failing_signal PARAMS ((bfd *abfd)); 75 trad_unix_core_file_p (abfd) 76 bfd *abfd; 86 if (bfd_seek (abfd, (file_ptr) TRAD_CORE_USER_OFFSET, SEEK_SET) != 0) 90 val = bfd_bread ((void *) &u, (bfd_size_type) sizeof u, abfd); 112 FILE *stream = bfd_cache_lookup (abfd); 156 abfd->tdata.trad_core_data = rawptr; 162 core_stacksec(abfd) [all...] |
H A D | cisco-core.c | 86 cisco_core_file_validate (abfd, crash_info_loc) 87 bfd *abfd; 101 if (bfd_seek (abfd, (file_ptr) crash_info_loc, SEEK_SET) != 0) 104 nread = bfd_bread (buf, (bfd_size_type) 4, abfd); 111 crashinfo_offset = MASK_ADDR (bfd_get_32 (abfd, buf)); 113 if (bfd_seek (abfd, (file_ptr) crashinfo_offset, SEEK_SET) != 0) 120 nread = bfd_bread (&crashinfo, (bfd_size_type) sizeof (crashinfo), abfd); 128 if (bfd_stat (abfd, &statbuf) < 0) 134 magic = bfd_get_32 (abfd, crashinfo.magic); 141 version = bfd_get_32 (abfd, crashinf [all...] |
H A D | elfcore.h | 22 elf_core_file_failing_command (bfd *abfd) argument 24 return elf_tdata (abfd)->core_command; 28 elf_core_file_failing_signal (bfd *abfd) argument 30 return elf_tdata (abfd)->core_signal; 73 elf_core_file_p (bfd *abfd) argument 86 if (bfd_bread (&x_ehdr, sizeof (x_ehdr), abfd) != sizeof (x_ehdr)) 108 if (! bfd_big_endian (abfd)) 112 if (! bfd_little_endian (abfd)) 119 if (!bfd_preserve_save (abfd, &preserve)) 122 /* Give abfd a [all...] |
H A D | bfd.c | 482 bfd *abfd = va_arg (ap, bfd *); 483 if (abfd->my_archive) 485 abfd->my_archive->filename, abfd->filename); 487 snprintf (bufp, avail, "%s", abfd->filename); 492 bfd *abfd = sec->owner; 496 if (abfd != NULL 497 && bfd_get_flavour (abfd) == bfd_target_elf_flavour 501 else if (abfd != NULL 502 && bfd_get_flavour (abfd) 480 bfd *abfd = va_arg (ap, bfd *); local 490 bfd *abfd = sec->owner; local 647 bfd_get_reloc_upper_bound(bfd *abfd, sec_ptr asect) argument 680 bfd_canonicalize_reloc(bfd *abfd, sec_ptr asect, arelent **location, asymbol **symbols) argument 741 bfd_set_file_flags(bfd *abfd, flagword flags) argument 811 bfd_get_arch_size(bfd *abfd) argument 841 bfd_get_sign_extend_vma(bfd *abfd) argument 879 bfd_set_start_address(bfd *abfd, bfd_vma vma) argument 899 bfd_get_gp_size(bfd *abfd) argument 925 bfd_set_gp_size(bfd *abfd, unsigned int i) argument 942 _bfd_get_gp_value(bfd *abfd) argument 960 _bfd_set_gp_value(bfd *abfd, bfd_vma v) argument 1242 bfd_get_relocated_section_contents(bfd *abfd, struct bfd_link_info *link_info, struct bfd_link_order *link_order, bfd_byte *data, bfd_boolean relocatable, asymbol **symbols) argument 1270 bfd_record_phdr(bfd *abfd, unsigned long type, bfd_boolean flags_valid, flagword flags, bfd_boolean at_valid, bfd_vma at, bfd_boolean includes_filehdr, bfd_boolean includes_phdrs, unsigned int count, asection **secs) argument 1313 bfd_sprintf_vma(bfd *abfd, char *buf, bfd_vma value) argument 1322 bfd_fprintf_vma(bfd *abfd, void *stream, bfd_vma value) argument 1347 bfd_alt_mach_code(bfd *abfd, int alternative) argument 1421 bfd_preserve_save(bfd *abfd, struct bfd_preserve *preserve) argument 1459 bfd_preserve_restore(bfd *abfd, struct bfd_preserve *preserve) argument [all...] |
H A D | mmo.c | 490 mmo_make_section (abfd, secname) 491 bfd *abfd; 494 asection *sec = bfd_get_section_by_name (abfd, secname); 504 bfd_get_filename (abfd), secname); 508 sec = bfd_make_section (abfd, newsecname); 542 mmo_object_p (abfd) 543 bfd *abfd; 550 if (bfd_stat (abfd, &statbuf) < 0 551 || bfd_seek (abfd, (file_ptr) 0, SEEK_SET) != 0 552 || bfd_bread (b, 4, abfd) ! [all...] |
H A D | aix386-core.c | 71 aix386_core_file_p (abfd) 72 bfd *abfd; 85 if (bfd_bread ((PTR) longbuf, amt, abfd) != amt) 95 if (bfd_seek (abfd, (file_ptr) 0, 0) != 0) 99 mergem = (struct mergem *) bfd_zalloc (abfd, amt); 105 if ((bfd_bread ((PTR) core, core_size, abfd)) != core_size) 110 bfd_release (abfd, (char *) mergem); 111 abfd->tdata.any = NULL; 112 bfd_section_list_clear (abfd); 116 set_tdata (abfd, [all...] |
H A D | elf32-gen.c | 52 elf_generic_info_to_howto (abfd, bfd_reloc, elf_reloc) 53 bfd *abfd ATTRIBUTE_UNUSED; 61 elf_generic_info_to_howto_rel (abfd, bfd_reloc, elf_reloc) 62 bfd *abfd ATTRIBUTE_UNUSED; 70 elf32_generic_link_add_symbols (abfd, info) 71 bfd *abfd; 77 for (o = abfd->sections; o != NULL; o = o->next) 82 ehdrp = elf_elfheader (abfd); 84 abfd, 91 return bfd_elf_link_add_symbols (abfd, inf [all...] |
H A D | elf64-gen.c | 52 elf_generic_info_to_howto (abfd, bfd_reloc, elf_reloc) 53 bfd *abfd ATTRIBUTE_UNUSED; 61 elf_generic_info_to_howto_rel (abfd, bfd_reloc, elf_reloc) 62 bfd *abfd ATTRIBUTE_UNUSED; 70 elf64_generic_link_add_symbols (abfd, info) 71 bfd *abfd; 77 for (o = abfd->sections; o != NULL; o = o->next) 82 ehdrp = elf_elfheader (abfd); 84 abfd, ehdrp->e_machine); 90 return bfd_elf_link_add_symbols (abfd, inf [all...] |
H A D | pc532-mach.c | 80 PARAMS ((bfd *abfd, bfd_reloc_code_real_type code)); 83 PARAMS ((bfd *abfd)); 86 MY(write_object_contents) (abfd) 87 bfd *abfd; 90 struct internal_exec *execp = exec_hdr (abfd); 92 obj_reloc_entry_size (abfd) = RELOC_STD_SIZE; 94 BFD_ASSERT (bfd_get_arch (abfd) == bfd_arch_ns32k); 95 switch (bfd_get_mach (abfd)) 105 N_SET_FLAGS (*execp, aout_backend_info (abfd)->exec_hdr_flags); 107 WRITE_HEADERS(abfd, exec [all...] |
H A D | pdp11.c | 123 #define WRITE_HEADERS(abfd, execp) pdp11_aout_write_headers (abfd, execp) 134 static bfd_boolean MY(write_object_contents) PARAMS ((bfd *abfd)); 404 NAME(aout,reloc_type_lookup) (abfd,code) 405 bfd * abfd ATTRIBUTE_UNUSED; 420 pdp11_aout_write_headers (abfd, execp) 421 bfd *abfd; 428 if (adata(abfd).magic == undecided_magic) 429 NAME(aout,adjust_sizes_and_vmas) (abfd, &text_size, &text_end); 431 execp->a_syms = bfd_get_symcount (abfd) * EXTERNAL_NLIST_SIZ 717 bfd_get_start_address (abfd) = execp->a_entry; variable 719 obj_aout_symbols (abfd) = (aout_symbol_type *)NULL; variable 720 bfd_get_symcount (abfd) = execp->a_syms / sizeof (struct external_nlist); variable 723 obj_reloc_entry_size (abfd) = RELOC_SIZE; variable 726 obj_symbol_entry_size (abfd) = EXTERNAL_NLIST_SIZE; variable 732 obj_aout_external_syms (abfd) = NULL; variable 733 obj_aout_external_strings (abfd) = NULL; variable 734 obj_aout_sym_hashes (abfd) = NULL; variable 782 obj_str_filepos (abfd) = N_STROFF (*execp); variable 783 obj_sym_filepos (abfd) = N_SYMOFF (*execp); variable 1050 obj_reloc_entry_size (abfd) = RELOC_SIZE; variable 2535 obj_aout_external_syms (abfd) = NULL; variable 3517 obj_sym_filepos (abfd) = aout_info.symoff; variable 3520 obj_aout_external_sym_count (abfd) = 0; variable 3688 obj_str_filepos (abfd) = obj_sym_filepos (abfd) + exec_hdr (abfd)->a_syms; variable [all...] |
H A D | i386lynx.c | 39 #define WRITE_HEADERS(abfd, execp) \ 43 if (adata(abfd).magic == undecided_magic) \ 44 NAME(aout,adjust_sizes_and_vmas) (abfd, &text_size, &text_end); \ 46 execp->a_syms = bfd_get_symcount (abfd) * EXTERNAL_NLIST_SIZE; \ 47 execp->a_entry = bfd_get_start_address (abfd); \ 49 execp->a_trsize = ((obj_textsec (abfd)->reloc_count) * \ 50 obj_reloc_entry_size (abfd)); \ 51 execp->a_drsize = ((obj_datasec (abfd)->reloc_count) * \ 52 obj_reloc_entry_size (abfd)); \ 53 NAME(aout,swap_exec_header_out) (abfd, exec [all...] |
H A D | sparclynx.c | 81 NAME(lynx,set_arch_mach) (abfd, machtype) 82 bfd *abfd; 136 bfd_set_arch_mach (abfd, arch, machine); 146 choose_reloc_size (abfd) 147 bfd *abfd; 149 switch (bfd_get_arch (abfd)) 153 obj_reloc_entry_size (abfd) = RELOC_EXT_SIZE; 156 obj_reloc_entry_size (abfd) = RELOC_STD_SIZE; 166 NAME(aout,sparclynx_write_object_contents) (abfd) 167 bfd *abfd; [all...] |
H A D | srec.c | 230 srec_mkobject (abfd) 231 bfd *abfd; 239 tdata = (tdata_type *) bfd_alloc (abfd, amt); 243 abfd->tdata.srec_data = tdata; 258 srec_get_byte (abfd, errorptr) 259 bfd *abfd; 264 if (bfd_bread (&c, (bfd_size_type) 1, abfd) != 1) 279 srec_bad_byte (abfd, lineno, c, error) 280 bfd *abfd; 303 abfd, linen [all...] |
H A D | section.c | 679 bfd_section_init (bfd *abfd, asection *newsect) argument 684 newsect->index = abfd->section_count; 685 newsect->owner = abfd; 690 newsect->symbol = bfd_make_empty_symbol (abfd); 701 if (! BFD_SEND (abfd, _new_section_hook, (abfd, newsect))) 705 abfd->section_count++; 706 *abfd->section_tail = newsect; 707 abfd->section_tail = &newsect->next; 734 bfd_section_list_clear (bfd *abfd) argument 762 bfd_get_section_by_name(bfd *abfd, const char *name) argument 798 bfd_get_section_by_name_if(bfd *abfd, const char *name, bfd_boolean (*operation) (bfd *, asection *, void *), void *user_storage) argument 841 bfd_get_unique_section_name(bfd *abfd, const char *templat, int *count) argument 896 bfd_make_section_old_way(bfd *abfd, const char *name) argument 952 bfd_make_section_anyway(bfd *abfd, const char *name) argument 1004 bfd_make_section(bfd *abfd, const char *name) argument 1105 bfd_map_over_sections(bfd *abfd, void (*operation) (bfd *, asection *, void *), void *user_storage) argument 1141 bfd_sections_find_if(bfd *abfd, bfd_boolean (*operation) (bfd *, asection *, void *), void *user_storage) argument 1173 bfd_set_section_size(bfd *abfd, sec_ptr ptr, bfd_size_type val) argument 1216 bfd_set_section_contents(bfd *abfd, sec_ptr section, const void *location, file_ptr offset, bfd_size_type count) argument 1296 bfd_get_section_contents(bfd *abfd, sec_ptr section, void *location, file_ptr offset, bfd_size_type count) argument 1354 bfd_malloc_and_get_section(bfd *abfd, sec_ptr sec, bfd_byte **buf) argument 1413 bfd *abfd; local [all...] |
H A D | liboasys.h | 56 bfd *abfd; member in struct:_oasys_ar_obstack 63 bfd *abfd; member in struct:_oasys_module_info 81 #define OASYS_DATA(abfd) ((abfd)->tdata.oasys_obj_data) 82 #define OASYS_AR_DATA(abfd) ((abfd)->tdata.oasys_ar_data)
|
H A D | osf-core.c | 59 make_bfd_asection (abfd, name, flags, size, vma, filepos) 60 bfd *abfd; 69 asect = bfd_make_section_anyway (abfd, name); 83 osf_core_core_file_p (abfd) 84 bfd *abfd; 93 val = bfd_bread ((PTR) &core_header, amt, abfd); 100 core_hdr (abfd) = (struct osf_core_struct *) 101 bfd_zalloc (abfd, (bfd_size_type) sizeof (struct osf_core_struct)); 102 if (!core_hdr (abfd)) 105 strncpy (core_command (abfd), core_heade [all...] |
H A D | riscix.c | 100 #define WRITE_HEADERS(abfd, execp) \ 104 if (adata(abfd).magic == undecided_magic) \ 105 NAME(aout,adjust_sizes_and_vmas) (abfd, &text_size, &text_end); \ 107 execp->a_syms = bfd_get_symcount (abfd) * EXTERNAL_NLIST_SIZE; \ 108 execp->a_entry = bfd_get_start_address (abfd); \ 110 execp->a_trsize = ((obj_textsec (abfd)->reloc_count) * \ 111 obj_reloc_entry_size (abfd)); \ 112 execp->a_drsize = ((obj_datasec (abfd)->reloc_count) * \ 113 obj_reloc_entry_size (abfd)); \ 114 NAME(aout,swap_exec_header_out) (abfd, exec [all...] |
H A D | bout.c | 34 PARAMS ((bfd *abfd, asection *input_section, arelent *r, 37 PARAMS ((bfd *abfd, unsigned int slip, asection *input_section, 40 PARAMS ((bfd *abfd, asection *section)); 91 bout_swap_exec_header_in (abfd, raw_bytes, execp) 92 bfd *abfd; 99 execp->a_info = H_GET_32 (abfd, bytes->e_info); 100 execp->a_text = GET_WORD (abfd, bytes->e_text); 101 execp->a_data = GET_WORD (abfd, bytes->e_data); 102 execp->a_bss = GET_WORD (abfd, bytes->e_bss); 103 execp->a_syms = GET_WORD (abfd, byte [all...] |
H A D | host-aout.c | 73 #define SET_ARCH_MACH(abfd, execp) \ 74 bfd_default_set_arch_mach(abfd, HOST_MACHINE_ARCH, HOST_MACHINE_MACHINE) 76 #define SET_ARCH_MACH(abfd, execp) \ 77 bfd_default_set_arch_mach(abfd, HOST_MACHINE_ARCH, 0)
|
H A D | irix-core.c | 68 do_sections64 (abfd, coreout) 69 bfd * abfd; 78 val = bfd_bread ((PTR) &vmap, (bfd_size_type) sizeof vmap, abfd); 104 if (!make_bfd_asection (abfd, secname, 118 do_sections (abfd, coreout) 119 bfd * abfd; 128 val = bfd_bread ((PTR) &vmap, (bfd_size_type) sizeof vmap, abfd); 154 if (!make_bfd_asection (abfd, secname, 164 make_bfd_asection (abfd, name, flags, size, vma, filepos) 165 bfd *abfd; [all...] |
H A D | libpei.h | 57 #define GET_FCN_LNNOPTR(abfd, ext) \ 58 H_GET_32 (abfd, ext->x_sym.x_fcnary.x_fcn.x_lnnoptr) 62 #define GET_FCN_ENDNDX(abfd, ext) \ 63 H_GET_32 (abfd, ext->x_sym.x_fcnary.x_fcn.x_endndx) 67 #define PUT_FCN_LNNOPTR(abfd, in, ext) \ 68 H_PUT_32(abfd, in, ext->x_sym.x_fcnary.x_fcn.x_lnnoptr) 71 #define PUT_FCN_ENDNDX(abfd, in, ext) \ 72 H_PUT_32(abfd, in, ext->x_sym.x_fcnary.x_fcn.x_endndx) 75 #define GET_LNSZ_LNNO(abfd, ext) \ 76 H_GET_16 (abfd, ex [all...] |
H A D | versados.c | 113 #define VDATA(abfd) (abfd->tdata.versados_data) 114 #define EDATA(abfd, n) (abfd->tdata.versados_data->e[n]) 115 #define RDATA(abfd, n) (abfd->tdata.versados_data->rest[n]) 177 versados_mkobject (abfd) 178 bfd *abfd; 180 if (abfd->tdata.versados_data == NULL) 183 tdata_type *tdata = (tdata_type *) bfd_alloc (abfd, am [all...] |
H A D | oasys.c | 94 oasys_read_record (abfd, record) 95 bfd *abfd; 99 if (bfd_bread ((PTR) record, amt, abfd) != amt) 105 if (bfd_bread ((PTR) ((char *) record + sizeof (record->header)), amt, abfd) 136 oasys_slurp_symbol_table (abfd) 137 bfd *const abfd; 140 oasys_data_type *data = OASYS_DATA (abfd); 152 amt = abfd->symcount; 154 data->symbols = (asymbol *) bfd_alloc (abfd, amt); 159 amt += abfd [all...] |
/haiku-fatelf/src/bin/gdb/gdb/ |
H A D | bfd-target.h | 37 struct bfd *abfd);
|
/haiku-fatelf/src/bin/gdb/include/coff/ |
H A D | m88k.h | 161 #define GET_LNSZ_SIZE(abfd, ext) \ 162 H_GET_32 (abfd, ext->x_sym.x_misc.x_lnsz.x_size) 163 #define GET_LNSZ_LNNO(abfd, ext) \ 164 H_GET_32 (abfd, ext->x_sym.x_misc.x_lnsz.x_lnno) 165 #define PUT_LNSZ_LNNO(abfd, in, ext) \ 166 H_PUT_32 (abfd, in, ext->x_sym.x_misc.x_lnsz.x_lnno) 167 #define PUT_LNSZ_SIZE(abfd, in, ext) \ 168 H_PUT_32 (abfd, in, ext->x_sym.x_misc.x_lnsz.x_size) 169 #define GET_SCN_NRELOC(abfd, ext) \ 170 H_GET_32 (abfd, ex [all...] |