/toolchain/binutils/binutils-2.25/opcodes/ |
D | z80-dis.c | 58 fetch_data (struct buffer *buf, disassemble_info * info, int n) in fetch_data() argument 62 if (buf->n_fetch + n > 4) in fetch_data() 65 r = info->read_memory_func (buf->base + buf->n_fetch, in fetch_data() 66 (unsigned char*) buf->data + buf->n_fetch, in fetch_data() 69 buf->n_fetch += n; in fetch_data() 74 prt (struct buffer *buf, disassemble_info * info, char *txt) in prt() argument 77 buf->n_used = buf->n_fetch; in prt() 82 prt_e (struct buffer *buf, disassemble_info * info, char *txt) in prt_e() argument 87 if (fetch_data (buf, info, 1)) in prt_e() 89 e = buf->data[1]; in prt_e() [all …]
|
D | metag-dis.c | 343 char buf[OPERAND_WIDTH]; in print_mov_u2u() local 376 snprintf (buf, OPERAND_WIDTH, "%s,%s", dest_reg, src_reg); in print_mov_u2u() 379 print_insn (outf, "F", template->name, buf); in print_mov_u2u() 381 print_insn (outf, "", template->name, buf); in print_mov_u2u() 392 char buf[OPERAND_WIDTH]; in print_mov_port() local 414 snprintf (buf, OPERAND_WIDTH, "%s,%s,%s", dest_reg, pair_reg, src_reg); in print_mov_port() 416 snprintf (buf, OPERAND_WIDTH, "%s,%s", dest_reg, src_reg); in print_mov_port() 419 print_insn (outf, "F", template->name, buf); in print_mov_port() 421 print_insn (outf, "", template->name, buf); in print_mov_port() 444 char buf[OPERAND_WIDTH]; in print_movl_ttrec() local [all …]
|
D | avr-dis.c | 52 char *opcode_str, char *buf, char *comment, int regs, int *sym, bfd_vma *sym_addr) in avr_operand() argument 66 sprintf (buf, "r%d", insn); in avr_operand() 71 sprintf (buf, "r%d", 16 + (insn & 0xf)); in avr_operand() 73 sprintf (buf, "r%d", 16 + ((insn & 0xf0) >> 4)); in avr_operand() 77 sprintf (buf, "r%d", 24 + ((insn & 0x30) >> 3)); in avr_operand() 82 sprintf (buf, "r%d", 16 + (insn & 7)); in avr_operand() 84 sprintf (buf, "r%d", 16 + ((insn >> 4) & 7)); in avr_operand() 89 sprintf (buf, "r%d", (insn & 0xf) * 2); in avr_operand() 91 sprintf (buf, "r%d", ((insn & 0xf0) >> 3)); in avr_operand() 111 strcpy (buf, xyz); in avr_operand() [all …]
|
D | mep-dis.c | 132 bfd_byte *buf, int corelength, int copro1length, in mep_print_vliw_insns() argument 148 insnbuf[i] = buf[i]; in mep_print_vliw_insns() 176 insnbuf[i - corelength] = buf[i]; in mep_print_vliw_insns() 225 insnbuf[i - (corelength + copro1length)] = buf[i]; in mep_print_vliw_insns() 300 bfd_byte buf[CGEN_MAX_INSN_SIZE]; in mep_examine_vliw32_insns() local 310 status = (*info->read_memory_func) (pc, buf, buflength, info); in mep_examine_vliw32_insns() 323 indicator16[0] = buf[0]; in mep_examine_vliw32_insns() 324 indicatorcop32[0] = buf[0]; in mep_examine_vliw32_insns() 325 indicatorcop32[1] = buf[1]; in mep_examine_vliw32_insns() 329 indicator16[0] = buf[1]; in mep_examine_vliw32_insns() [all …]
|
D | sysdep.h | 65 #define OPCODES_SIGSETJMP(buf) sigsetjmp((buf), 0) argument 66 #define OPCODES_SIGLONGJMP(buf,val) siglongjmp((buf), (val)) argument 69 #define OPCODES_SIGSETJMP(buf) setjmp(buf) argument 70 #define OPCODES_SIGLONGJMP(buf,val) longjmp((buf), (val)) argument
|
D | tic54x-dis.c | 181 bfd_byte buf[2]; in print_instruction() local 193 int status = (*info->read_memory_func) (memaddr + 1, buf, 2, info); in print_instruction() 196 lkaddr = opcode2 = bfd_getl16 (buf); in print_instruction() 199 status = (*info->read_memory_func) (memaddr + 2, buf, 2, info); in print_instruction() 202 opcode2 = bfd_getl16 (buf); in print_instruction() 485 char buf[], in sprint_dual_address() argument 494 return sprintf (buf, formats[XMOD (code)], XARX (code)); in sprint_dual_address() 499 char buf[], in sprint_indirect_address() argument 516 return sprintf (buf, formats[MOD (opcode)], ARF (opcode)); in sprint_indirect_address() 521 char buf[], in sprint_direct_address() argument [all …]
|
D | m32r-dis.c | 118 bfd_byte *buf = buffer; in my_print_insn() local 127 buf, buflen, info); in my_print_insn() 135 x = (big_p ? &buf[0] : &buf[3]); in my_print_insn() 137 return print_insn (cd, pc, info, buf, buflen); in my_print_insn() 142 buf += (big_p ? 0 : 2); in my_print_insn() 143 if (print_insn (cd, pc, info, buf, 2) == 0) in my_print_insn() 145 buf += (big_p ? 2 : -2); in my_print_insn() 148 x = (big_p ? &buf[0] : &buf[1]); in my_print_insn() 161 if (print_insn (cd, pc & ~ (bfd_vma) 3, info, buf, 2) == 0) in my_print_insn() 411 bfd_byte *buf, in read_insn() argument [all …]
|
/toolchain/binutils/binutils-2.25/libiberty/ |
D | simple-object-common.h | 183 simple_object_fetch_big_16 (const unsigned char *buf) in simple_object_fetch_big_16() argument 185 return ((unsigned short) buf[0] << 8) | (unsigned short) buf[1]; in simple_object_fetch_big_16() 191 simple_object_fetch_little_16 (const unsigned char *buf) in simple_object_fetch_little_16() argument 193 return ((unsigned short) buf[1] << 8) | (unsigned short) buf[0]; in simple_object_fetch_little_16() 199 simple_object_fetch_big_32 (const unsigned char *buf) in simple_object_fetch_big_32() argument 201 return (((unsigned int) buf[0] << 24) in simple_object_fetch_big_32() 202 | ((unsigned int) buf[1] << 16) in simple_object_fetch_big_32() 203 | ((unsigned int) buf[2] << 8) in simple_object_fetch_big_32() 204 | (unsigned int) buf[3]); in simple_object_fetch_big_32() 210 simple_object_fetch_little_32 (const unsigned char *buf) in simple_object_fetch_little_32() argument [all …]
|
D | vsnprintf.c | 62 char *buf = 0; in vsnprintf() local 63 int result = vasprintf (&buf, format, ap); in vsnprintf() 65 if (!buf) in vsnprintf() 69 free (buf); in vsnprintf() 73 result = strlen (buf); in vsnprintf() 77 memcpy (s, buf, result+1); in vsnprintf() 80 memcpy (s, buf, n-1); in vsnprintf() 84 free (buf); in vsnprintf() 109 char buf[128]; in main() local 112 CLEAR (buf); in main() [all …]
|
D | lrealpath.c | 84 char buf[REALPATH_LIMIT]; in lrealpath() local 85 const char *rp = realpath (filename, buf); in lrealpath() 119 char *buf, *rp, *ret; in lrealpath() local 120 buf = (char *) malloc (path_max); in lrealpath() 121 if (buf == NULL) in lrealpath() 123 rp = realpath (filename, buf); in lrealpath() 125 free (buf); in lrealpath() 139 char buf[MAX_PATH]; in lrealpath() local 141 DWORD len = GetFullPathName (filename, MAX_PATH, buf, &basename); in lrealpath() 149 CharLowerBuff (buf, len); in lrealpath() [all …]
|
D | spaces.c | 51 static char *buf; in spaces() local 56 free (buf); in spaces() 57 buf = (char *) malloc (count + 1); in spaces() 58 if (buf == (char *) 0) in spaces() 60 for (t = buf + count ; t != buf ; ) in spaces() 65 buf[count] = '\0'; in spaces() 67 return (const char *) (buf + maxsize - count); in spaces()
|
D | simple-object-elf.c | 698 unsigned char buf[sizeof (Elf64_External_Ehdr)]; in simple_object_elf_write_ehdr() local 719 memset (buf, 0, sizeof (Elf64_External_Ehdr)); in simple_object_elf_write_ehdr() 721 buf[EI_MAG0] = ELFMAG0; in simple_object_elf_write_ehdr() 722 buf[EI_MAG1] = ELFMAG1; in simple_object_elf_write_ehdr() 723 buf[EI_MAG2] = ELFMAG2; in simple_object_elf_write_ehdr() 724 buf[EI_MAG3] = ELFMAG3; in simple_object_elf_write_ehdr() 725 buf[EI_CLASS] = cl; in simple_object_elf_write_ehdr() 726 buf[EI_DATA] = attrs->ei_data; in simple_object_elf_write_ehdr() 727 buf[EI_VERSION] = EV_CURRENT; in simple_object_elf_write_ehdr() 728 buf[EI_OSABI] = attrs->ei_osabi; in simple_object_elf_write_ehdr() [all …]
|
/toolchain/binutils/binutils-2.25/bfd/ |
D | xsym.c | 146 bfd_sym_parse_file_reference_v32 (unsigned char *buf, in bfd_sym_parse_file_reference_v32() argument 152 entry->fref_frte_index = bfd_getb16 (buf); in bfd_sym_parse_file_reference_v32() 153 entry->fref_offset = bfd_getb32 (buf + 2); in bfd_sym_parse_file_reference_v32() 157 bfd_sym_parse_disk_table_v32 (unsigned char *buf, in bfd_sym_parse_disk_table_v32() argument 163 table->dti_first_page = bfd_getb16 (buf); in bfd_sym_parse_disk_table_v32() 164 table->dti_page_count = bfd_getb16 (buf + 2); in bfd_sym_parse_disk_table_v32() 165 table->dti_object_count = bfd_getb32 (buf + 4); in bfd_sym_parse_disk_table_v32() 169 bfd_sym_parse_header_v32 (unsigned char *buf, in bfd_sym_parse_header_v32() argument 175 memcpy (header->dshb_id, buf, 32); in bfd_sym_parse_header_v32() 176 header->dshb_page_size = bfd_getb16 (buf + 32); in bfd_sym_parse_header_v32() [all …]
|
D | elf-eh-frame.c | 168 read_value (bfd *abfd, bfd_byte *buf, int width, int is_signed) in read_value() argument 176 value = bfd_get_signed_16 (abfd, buf); in read_value() 178 value = bfd_get_16 (abfd, buf); in read_value() 182 value = bfd_get_signed_32 (abfd, buf); in read_value() 184 value = bfd_get_32 (abfd, buf); in read_value() 188 value = bfd_get_signed_64 (abfd, buf); in read_value() 190 value = bfd_get_64 (abfd, buf); in read_value() 203 write_value (bfd *abfd, bfd_byte *buf, bfd_vma value, int width) in write_value() argument 207 case 2: bfd_put_16 (abfd, value, buf); break; in write_value() 208 case 4: bfd_put_32 (abfd, value, buf); break; in write_value() [all …]
|
D | pef.c | 73 unsigned char *buf, in bfd_pef_parse_traceback_table() argument 97 memcpy (&table, buf + pos, 8); in bfd_pef_parse_traceback_table() 121 off.tb_offset = bfd_getb32 (buf + pos + offset); in bfd_pef_parse_traceback_table() 144 anchors.ctl_info = bfd_getb32 (buf + pos + offset); in bfd_pef_parse_traceback_table() 160 name.name_len = bfd_getb16 (buf + pos + offset); in bfd_pef_parse_traceback_table() 173 memcpy (namebuf, buf + pos + offset, name.name_len); in bfd_pef_parse_traceback_table() 219 unsigned char *buf = alloca (symbol->udata.i); in bfd_pef_print_symbol() local 224 bfd_get_section_contents (abfd, symbol->section, buf, offset, len); in bfd_pef_print_symbol() 225 ret = bfd_pef_parse_traceback_table (abfd, symbol->section, buf, in bfd_pef_print_symbol() 315 unsigned char *buf, in bfd_pef_parse_loader_header() argument [all …]
|
D | ihex.c | 219 char buf[10]; in ihex_bad_byte() local 222 sprintf (buf, "\\%03o", (unsigned int) c); in ihex_bad_byte() 225 buf[0] = c; in ihex_bad_byte() 226 buf[1] = '\0'; in ihex_bad_byte() 230 abfd, lineno, buf); in ihex_bad_byte() 246 bfd_byte *buf = NULL; in ihex_scan() local 311 buf = (bfd_byte *) bfd_realloc (buf, (bfd_size_type) chars); in ihex_scan() 312 if (buf == NULL) in ihex_scan() 317 if (bfd_bread (buf, (bfd_size_type) chars, abfd) != chars) in ihex_scan() 322 if (! ISHEX (buf[i])) in ihex_scan() [all …]
|
D | mach-o-i386.c | 274 void *vfile, char *buf) in bfd_mach_o_i386_print_thread() argument 285 (unsigned long)bfd_get_32 (abfd, buf + 0), in bfd_mach_o_i386_print_thread() 286 (unsigned long)bfd_get_32 (abfd, buf + 4)); in bfd_mach_o_i386_print_thread() 288 (unsigned long)bfd_get_32 (abfd, buf + 8), in bfd_mach_o_i386_print_thread() 289 (unsigned long)bfd_get_32 (abfd, buf + 12), in bfd_mach_o_i386_print_thread() 290 (unsigned long)bfd_get_32 (abfd, buf + 16), in bfd_mach_o_i386_print_thread() 291 (unsigned long)bfd_get_32 (abfd, buf + 20)); in bfd_mach_o_i386_print_thread() 293 (unsigned long)bfd_get_32 (abfd, buf + 24), in bfd_mach_o_i386_print_thread() 294 (unsigned long)bfd_get_32 (abfd, buf + 28), in bfd_mach_o_i386_print_thread() 295 (unsigned long)bfd_get_32 (abfd, buf + 32), in bfd_mach_o_i386_print_thread() [all …]
|
D | mmo.c | 332 bfd_byte buf[4]; member 752 bfd_byte buf[4]; in mmo_write_tetra_raw() local 754 bfd_put_32 (abfd, value, buf); in mmo_write_tetra_raw() 756 if (bfd_bwrite (buf, 4, abfd) != 4) in mmo_write_tetra_raw() 803 mmop->buf[mmop->byte_no++] = *loc++; in mmo_write_chunk() 809 mmo_write_tetra (abfd, bfd_get_32 (abfd, mmop->buf)); in mmo_write_chunk() 832 memcpy (mmop->buf, loc, len); in mmo_write_chunk() 849 memset (abfd->tdata.mmo_data->buf + abfd->tdata.mmo_data->byte_no, in mmo_flush_chunk() 852 bfd_get_32 (abfd, abfd->tdata.mmo_data->buf)); in mmo_flush_chunk() 979 bfd_byte buf[4]; in mmo_get_spec_section() local [all …]
|
/toolchain/binutils/binutils-2.25/binutils/ |
D | wrstabs.c | 424 char buf[20]; in stab_push_defined_type() local 426 sprintf (buf, "%ld", tindex); in stab_push_defined_type() 427 return stab_push_string (info, buf, tindex, FALSE, size); in stab_push_defined_type() 590 char buf[40]; in stab_empty_type() local 595 sprintf (buf, "%ld=%ld", tindex, tindex); in stab_empty_type() 597 return stab_push_string (info, buf, tindex, FALSE, 0); in stab_empty_type() 613 char buf[40]; in stab_void_type() local 620 sprintf (buf, "%ld=%ld", tindex, tindex); in stab_void_type() 622 return stab_push_string (info, buf, tindex, TRUE, 0); in stab_void_type() 650 char buf[100]; in stab_int_type() local [all …]
|
D | od-macho.c | 630 void (*dump)(bfd *abfd, unsigned char *buf, unsigned int len, in load_and_dump() argument 633 unsigned char *buf; in load_and_dump() local 638 buf = xmalloc (len); in load_and_dump() 641 && bfd_bread (buf, len, abfd) == len) in load_and_dump() 642 dump (abfd, buf, len, off); in load_and_dump() 646 free (buf); in load_and_dump() 659 dump_dyld_info_rebase (bfd *abfd, unsigned char *buf, unsigned int len, in dump_dyld_info_rebase() argument 668 unsigned char b = buf[i++]; in dump_dyld_info_rebase() 684 leb = read_unsigned_leb128 (abfd, buf + i, &leblen); in dump_dyld_info_rebase() 690 leb = read_unsigned_leb128 (abfd, buf + i, &leblen); in dump_dyld_info_rebase() [all …]
|
/toolchain/binutils/binutils-2.25/gas/config/ |
D | tc-pj.c | 366 char *buf = fixP->fx_where + fixP->fx_frag->fr_literal; in md_apply_fix() local 381 buf[0] |= (val >> 8) & 0xff; in md_apply_fix() 382 buf[1] = val & 0xff; in md_apply_fix() 386 *buf++ = val >> 24; in md_apply_fix() 387 *buf++ = val >> 16; in md_apply_fix() 393 *buf++ = val >> 8; in md_apply_fix() 394 *buf++ = val >> 0; in md_apply_fix() 403 *buf++ = val; in md_apply_fix() 407 *buf++ = val >> 24; in md_apply_fix() 408 *buf++ = val >> 16; in md_apply_fix() [all …]
|
/toolchain/binutils/binutils-2.25/libiberty/testsuite/ |
D | test-demangle.c | 52 get_line(buf) in get_line() argument 53 struct line *buf; in get_line() 55 char *data = buf->data; 56 size_t alloc = buf->alloced; 88 buf->data = data; 89 buf->alloced = alloc; 109 static char * buf; in protect_end() local 119 if (buf == NULL) in protect_end() 121 buf = mmap (NULL, pagesize * 2, PROT_READ | PROT_WRITE, in protect_end() 123 if (! buf) in protect_end() [all …]
|
/toolchain/binutils/binutils-2.25/gas/ |
D | input-file.c | 119 char buf[80]; in input_file_open() local 171 if (fgets (buf, sizeof (buf), f_in) in input_file_open() 172 && !strncmp (buf, "O_APP", 5) && ISSPACE (buf[5])) in input_file_open() 174 if (!strchr (buf, '\n')) in input_file_open() 181 if (fgets (buf, sizeof (buf), f_in) in input_file_open() 182 && !strncmp (buf, "PP", 2) && ISSPACE (buf[2])) in input_file_open() 184 if (!strchr (buf, '\n')) in input_file_open() 213 input_file_get (char *buf, size_t buflen) in input_file_get() argument 220 size = fread (buf, sizeof (char), buflen, f_in); in input_file_get()
|
/toolchain/binutils/binutils-2.25/include/ |
D | leb128.h | 54 read_uleb128_to_uint64 (const unsigned char *buf, const unsigned char *buf_end, in read_uleb128_to_uint64() argument 57 const unsigned char *p = buf; in read_uleb128_to_uint64() 75 return p - buf; in read_uleb128_to_uint64() 87 read_sleb128_to_int64 (const unsigned char *buf, const unsigned char *buf_end, in read_sleb128_to_int64() argument 90 const unsigned char *p = buf; in read_sleb128_to_int64() 110 return p - buf; in read_sleb128_to_int64() 120 skip_leb128 (const unsigned char *buf, const unsigned char *buf_end) in skip_leb128() argument 122 const unsigned char *p = buf; in skip_leb128() 132 return p - buf; in skip_leb128()
|
/toolchain/binutils/binutils-2.25/gold/testsuite/ |
D | plugin_test.c | 254 char buf[160]; in claim_file_hook() local 295 len = fread(buf, 1, 13, irfile); in claim_file_hook() 296 if (len < 13 || strncmp(buf, "\nSymbol table", 13) != 0) in claim_file_hook() 300 (void) fgets(buf, sizeof(buf), irfile); in claim_file_hook() 301 (void) fgets(buf, sizeof(buf), irfile); in claim_file_hook() 316 && fgets(buf, sizeof(buf), irfile) != NULL) in claim_file_hook() 318 parse_readelf_line(buf, &info); in claim_file_hook() 417 char buf[160]; in all_symbols_read_hook() local 524 len = fread(buf, 1, 13, irfile); in all_symbols_read_hook() 525 if (len < 13 || strncmp(buf, "\nSymbol table", 13) != 0) in all_symbols_read_hook() [all …]
|