Home
last modified time | relevance | path

Searched refs:memaddr (Results 1 – 25 of 146) sorted by relevance

123456

/openbsd-src/gnu/usr.bin/binutils/opcodes/
H A Dpdp11-dis.c34 static int read_word PARAMS ((bfd_vma memaddr, int *word,
39 static int print_operand PARAMS ((bfd_vma *memaddr, int code,
41 static int print_foperand PARAMS ((bfd_vma *memaddr, int code,
43 int print_insn_pdp11 PARAMS ((bfd_vma memaddr, disassemble_info *info));
46 read_word (memaddr, word, info) in read_word() argument
47 bfd_vma memaddr; in read_word()
54 status = (*info->read_memory_func) (memaddr, x, 2, info);
100 print_operand (memaddr, code, info) in print_operand() argument
101 bfd_vma *memaddr; in print_operand()
123 if (read_word (*memaddr, &data, info) < 0)
[all …]
H A Dm10300-dis.c34 print_insn_mn10300 (memaddr, info) in print_insn_mn10300() argument
35 bfd_vma memaddr; in print_insn_mn10300()
44 status = (*info->read_memory_func) (memaddr, buffer, 1, info);
47 (*info->memory_error_func) (status, memaddr, info);
103 status = (*info->read_memory_func) (memaddr, buffer, 2, info);
106 (*info->memory_error_func) (status, memaddr, info);
130 status = (*info->read_memory_func) (memaddr, buffer, 2, info);
133 (*info->memory_error_func) (status, memaddr, info);
138 status = (*info->read_memory_func) (memaddr + 2, buffer, 1, info);
141 (*info->memory_error_func) (status, memaddr, info);
[all …]
H A Dm10200-dis.c31 print_insn_mn10200 (memaddr, info) in print_insn_mn10200() argument
32 bfd_vma memaddr; in print_insn_mn10200()
42 status = (*info->read_memory_func) (memaddr, buffer, 1, info);
45 (*info->memory_error_func) (status, memaddr, info);
89 status = (*info->read_memory_func) (memaddr, buffer, 2, info);
92 (*info->memory_error_func) (status, memaddr, info);
111 status = (*info->read_memory_func) (memaddr + 1, buffer, 2, info);
114 (*info->memory_error_func) (status, memaddr, info);
126 status = (*info->read_memory_func) (memaddr + 1, buffer, 2, info);
129 (*info->memory_error_func) (status, memaddr, info);
[all …]
H A Dm68hc11-dis.c48 read_memory (bfd_vma memaddr, bfd_byte* buffer, int size, in read_memory() argument
55 status = (*info->read_memory_func) (memaddr, buffer, size, info); in read_memory()
58 (*info->memory_error_func) (status, memaddr, info); in read_memory()
68 print_indexed_operand (bfd_vma memaddr, struct disassemble_info* info, in print_indexed_operand() argument
81 status = read_memory (memaddr, &buffer[0], 1, info); in print_indexed_operand()
142 status = read_memory (memaddr + pos, &buffer[0], 2, info); in print_indexed_operand()
166 status = read_memory (memaddr + pos, in print_indexed_operand()
225 print_insn (bfd_vma memaddr, struct disassemble_info* info, int arch) in print_insn() argument
236 status = read_memory (memaddr, buffer, 1, info); in print_insn()
266 status = read_memory (memaddr + pos, &buffer[1], 1, info); in print_insn()
[all …]
H A Dsh64-dis.c186 print_insn_shmedia (memaddr, info) in print_insn_shmedia() argument
187 bfd_vma memaddr; in print_insn_shmedia()
203 status = info->read_memory_func (memaddr, insn, 4, info);
213 status = info->read_memory_func (memaddr + i, insn, 1, info);
379 disp_pc_addr = (bfd_vma) imm + memaddr;
460 sh64_get_contents_type_disasm (memaddr, info) in sh64_get_contents_type_disasm() argument
461 bfd_vma memaddr; in sh64_get_contents_type_disasm()
469 && memaddr >= sh64_infop->crange.cr_addr
470 && memaddr < sh64_infop->crange.cr_addr + sh64_infop->crange.cr_size)
478 = sh64_get_contents_type (info->section, memaddr,
[all …]
H A Dd10v-dis.c28 static void dis_2_short PARAMS ((unsigned long insn, bfd_vma memaddr,
30 static void dis_long PARAMS ((unsigned long insn, bfd_vma memaddr,
37 print_insn_d10v (memaddr, info) in print_insn_d10v() argument
38 bfd_vma memaddr; in print_insn_d10v()
45 status = (*info->read_memory_func) (memaddr, buffer, 4, info);
48 (*info->memory_error_func) (status, memaddr, info);
57 dis_2_short (insn, memaddr, info, 2);
60 dis_2_short (insn, memaddr, info, 0);
63 dis_2_short (insn, memaddr, info, 1);
66 dis_long (insn, memaddr, info);
[all …]
H A Dtic80-dis.c139 print_operand (info, value, insn, operand, memaddr) in print_operand() argument
144 bfd_vma memaddr;
160 (*info->print_address_func) (memaddr + 4 * value, info);
202 print_one_instruction (info, memaddr, insn, opcode) in print_one_instruction() argument
204 bfd_vma memaddr;
227 status = fill_instruction (info, memaddr, (unsigned long *) &value);
261 print_operand (info, value, insn, operand, memaddr);
283 print_instruction (info, memaddr, insn, vec_opcode) in print_instruction() argument
285 bfd_vma memaddr;
316 length = print_one_instruction (info, memaddr, insn, opcode);
[all …]
H A Dmcore-dis.c88 print_insn_mcore (memaddr, info) in print_insn_mcore() argument
89 bfd_vma memaddr; in print_insn_mcore()
101 status = info->read_memory_func (memaddr, ibytes, 2, info);
105 info->memory_error_func (status, memaddr, info);
201 fprintf (stream, "\t0x%x", memaddr + 2 + (val << 1));
206 val = memaddr + 2 + (val << 1);
222 grname[(inst >> 4) & 0xF], memaddr - (val << 1));
230 val = (memaddr + 2 + ((inst & 0xFF) << 2)) & 0xFFFFFFFC;
235 info->memory_error_func (status, memaddr, info);
251 (memaddr + 2 + ((inst & 0xFF) << 2)) & 0xFFFFFFFC);
[all …]
H A Dxtensa-dis.c340 PARAMS ((struct disassemble_info *info, bfd_vma memaddr));
351 fetch_data (info, memaddr) in fetch_data() argument
353 bfd_vma memaddr;
366 status = (*info->read_memory_func) (memaddr, priv->byte_buf, length,
371 (*info->memory_error_func) (status, memaddr, info);
378 print_xtensa_operand (memaddr, info, opnd, operand_val, print_sr_name) in print_xtensa_operand() argument
379 bfd_vma memaddr; in print_xtensa_operand()
402 operand_val = xtensa_operand_undo_reloc (opnd, operand_val, memaddr);
427 print_insn_xtensa (memaddr, info) in print_insn_xtensa() argument
428 bfd_vma memaddr; in print_insn_xtensa()
[all …]
H A Ddis-buf.c27 buffer_read_memory (memaddr, myaddr, length, info) in buffer_read_memory() argument
28 bfd_vma memaddr; in buffer_read_memory()
36 unsigned int octets = (memaddr - info->buffer_vma) * opb;
38 if (memaddr < info->buffer_vma
39 || memaddr - info->buffer_vma + end_addr_offset > max_addr_offset)
50 perror_memory (status, memaddr, info) in perror_memory() argument
52 bfd_vma memaddr;
62 _("Address 0x%x is out of bounds.\n"), memaddr);
H A Da29k-dis.c144 print_insn (memaddr, info) in print_insn() argument
145 bfd_vma memaddr; in print_insn()
160 (*info->read_memory_func) (memaddr, (bfd_byte *) &insn[0], 4, info);
163 (*info->memory_error_func) (status, memaddr, info);
229 (memaddr +
297 errcode = (*info->read_memory_func) (memaddr - 4,
316 (memaddr - 8, (bfd_byte *) &prev_insn[0], 4, info);
351 print_insn_big_a29k (memaddr, info) in print_insn_big_a29k() argument
352 bfd_vma memaddr; in print_insn_big_a29k()
356 return print_insn (memaddr, info);
[all …]
H A Di960-dis.c51 print_insn_i960 (bfd_vma memaddr, struct disassemble_info *info_arg) in print_insn_i960() argument
63 status = (*info->read_memory_func) (memaddr, (bfd_byte *) buffer, 4, info); in print_insn_i960()
66 (*info->memory_error_func) (status, memaddr, info); in print_insn_i960()
84 (memaddr + 4, (bfd_byte *) (buffer + 4), 4, info); in print_insn_i960()
87 (*info->memory_error_func) (status, memaddr, info); in print_insn_i960()
94 return pinsn( memaddr, word1, word2 ); in print_insn_i960()
119 pinsn (bfd_vma memaddr, unsigned long word1, unsigned long word2) in pinsn() argument
131 ctrl (memaddr, word1, word2); in pinsn()
135 cobr (memaddr, word1, word2); in pinsn()
147 instr_len = mem (memaddr, word1, word2, 0); in pinsn()
[all …]
H A Dv850-dis.c49 disassemble (memaddr, info, insn) in disassemble() argument
50 bfd_vma memaddr; in disassemble()
184 bfd_vma addr = value + memaddr;
290 status = info->read_memory_func (memaddr + bytes_read, buffer, 2, info);
304 info->memory_error_func (status, memaddr + bytes_read, info);
309 status = info->read_memory_func (memaddr + bytes_read, buffer, 4, info);
318 info->memory_error_func (status, memaddr + bytes_read, info);
351 print_insn_v850 (memaddr, info) in print_insn_v850() argument
352 bfd_vma memaddr; in print_insn_v850()
361 status = info->read_memory_func (memaddr, buffer, 2, info);
[all …]
/openbsd-src/gnu/usr.bin/binutils-2.17/opcodes/
H A Dm10300-dis.c32 disassemble (bfd_vma memaddr, in disassemble() argument
115 status = (*info->read_memory_func) (memaddr + 1, buffer, 2, info); in disassemble()
118 (*info->memory_error_func) (status, memaddr, info); in disassemble()
139 status = (*info->read_memory_func) (memaddr + 2, buffer, 2, info); in disassemble()
142 (*info->memory_error_func) (status, memaddr, info); in disassemble()
153 status = (*info->read_memory_func) (memaddr + 1, buffer, 4, info); in disassemble()
156 (*info->memory_error_func) (status, memaddr, info); in disassemble()
167 status = (*info->read_memory_func) (memaddr + 2, buffer, 2, info); in disassemble()
170 (*info->memory_error_func) (status, memaddr, info); in disassemble()
176 status = (*info->read_memory_func) (memaddr + 4, buffer, 1, info); in disassemble()
[all …]
H A Dpdp11-dis.c36 read_word (bfd_vma memaddr, int *word, disassemble_info *info) in read_word() argument
41 status = (*info->read_memory_func) (memaddr, x, 2, info); in read_word()
81 print_operand (bfd_vma *memaddr, int code, disassemble_info *info) in print_operand() argument
102 if (read_word (*memaddr, &data, info) < 0) in print_operand()
106 *memaddr += 2; in print_operand()
120 if (read_word (*memaddr, &address, info) < 0) in print_operand()
123 *memaddr += 2; in print_operand()
144 if (read_word (*memaddr, &disp, info) < 0) in print_operand()
146 *memaddr += 2; in print_operand()
149 bfd_vma address = *memaddr + sign_extend (disp); in print_operand()
[all …]
H A Dm10200-dis.c27 disassemble (bfd_vma memaddr, in disassemble() argument
141 ((value + memaddr + mysize) & 0xffffff, info); in disassemble()
160 print_insn_mn10200 (bfd_vma memaddr, struct disassemble_info *info) in print_insn_mn10200() argument
169 status = (*info->read_memory_func) (memaddr, buffer, 1, info); in print_insn_mn10200()
172 (*info->memory_error_func) (status, memaddr, info); in print_insn_mn10200()
216 status = (*info->read_memory_func) (memaddr, buffer, 2, info); in print_insn_mn10200()
219 (*info->memory_error_func) (status, memaddr, info); in print_insn_mn10200()
238 status = (*info->read_memory_func) (memaddr + 1, buffer, 2, info); in print_insn_mn10200()
241 (*info->memory_error_func) (status, memaddr, info); in print_insn_mn10200()
253 status = (*info->read_memory_func) (memaddr + 1, buffer, 2, info); in print_insn_mn10200()
[all …]
H A Dm68hc11-dis.c48 read_memory (bfd_vma memaddr, bfd_byte* buffer, int size, in read_memory() argument
55 status = (*info->read_memory_func) (memaddr, buffer, size, info); in read_memory()
58 (*info->memory_error_func) (status, memaddr, info); in read_memory()
68 print_indexed_operand (bfd_vma memaddr, struct disassemble_info* info, in print_indexed_operand() argument
81 status = read_memory (memaddr, &buffer[0], 1, info); in print_indexed_operand()
142 status = read_memory (memaddr + pos, &buffer[0], 2, info); in print_indexed_operand()
166 status = read_memory (memaddr + pos, in print_indexed_operand()
225 print_insn (bfd_vma memaddr, struct disassemble_info* info, int arch) in print_insn() argument
236 status = read_memory (memaddr, buffer, 1, info); in print_insn()
266 status = read_memory (memaddr + pos, &buffer[1], 1, info); in print_insn()
[all …]
H A Dmcore-dis.c88 print_insn_mcore (memaddr, info) in print_insn_mcore() argument
89 bfd_vma memaddr; in print_insn_mcore()
101 status = info->read_memory_func (memaddr, ibytes, 2, info);
105 info->memory_error_func (status, memaddr, info);
201 fprintf (stream, "\t0x%lx", (long)(memaddr + 2 + (val << 1)));
206 val = memaddr + 2 + (val << 1);
222 grname[(inst >> 4) & 0xF], (long)(memaddr - (val << 1)));
230 val = (memaddr + 2 + ((inst & 0xFF) << 2)) & 0xFFFFFFFC;
235 info->memory_error_func (status, memaddr, info);
251 (long)(memaddr + 2 + ((inst & 0xFF) << 2)) & 0xFFFFFFFC);
[all …]
H A Dsh64-dis.c175 print_insn_shmedia (bfd_vma memaddr, struct disassemble_info *info) in print_insn_shmedia() argument
189 status = info->read_memory_func (memaddr, insn, 4, info); in print_insn_shmedia()
199 status = info->read_memory_func (memaddr + i, insn, 1, info); in print_insn_shmedia()
366 disp_pc_addr = (bfd_vma) imm + memaddr; in print_insn_shmedia()
447 sh64_get_contents_type_disasm (bfd_vma memaddr, struct disassemble_info *info) in sh64_get_contents_type_disasm() argument
454 && memaddr >= sh64_infop->crange.cr_addr in sh64_get_contents_type_disasm()
455 && memaddr < sh64_infop->crange.cr_addr + sh64_infop->crange.cr_size) in sh64_get_contents_type_disasm()
463 = sh64_get_contents_type (info->section, memaddr, in sh64_get_contents_type_disasm()
478 memaddr, &sh64_infop->crange); in sh64_get_contents_type_disasm()
495 return (memaddr & 1) == 1 ? CRT_SH5_ISA32 : CRT_SH5_ISA16; in sh64_get_contents_type_disasm()
[all …]
H A Dtic80-dis.c104 bfd_vma memaddr) in print_operand() argument
118 (*info->print_address_func) (memaddr + 4 * value, info); in print_operand()
152 bfd_vma memaddr, in fill_instruction() argument
159 status = (*info->read_memory_func) (memaddr + length, buffer, 4, info); in fill_instruction()
162 (*info->memory_error_func) (status, memaddr, info); in fill_instruction()
187 bfd_vma memaddr, in print_one_instruction() argument
209 status = fill_instruction (info, memaddr, (unsigned long *) &value); in print_one_instruction()
237 print_operand (info, value, insn, operand, memaddr); in print_one_instruction()
258 bfd_vma memaddr, in print_instruction() argument
287 length = print_one_instruction (info, memaddr, insn, opcode); in print_instruction()
[all …]
H A Di960-dis.c51 print_insn_i960 (bfd_vma memaddr, struct disassemble_info *info_arg) in print_insn_i960() argument
63 status = (*info->read_memory_func) (memaddr, (bfd_byte *) buffer, 4, info); in print_insn_i960()
66 (*info->memory_error_func) (status, memaddr, info); in print_insn_i960()
84 (memaddr + 4, (bfd_byte *) (buffer + 4), 4, info); in print_insn_i960()
87 (*info->memory_error_func) (status, memaddr, info); in print_insn_i960()
94 return pinsn( memaddr, word1, word2 ); in print_insn_i960()
119 pinsn (bfd_vma memaddr, unsigned long word1, unsigned long word2) in pinsn() argument
131 ctrl (memaddr, word1, word2); in pinsn()
135 cobr (memaddr, word1, word2); in pinsn()
147 instr_len = mem (memaddr, word1, word2, 0); in pinsn()
[all …]
H A Dd10v-dis.c33 bfd_vma memaddr, in print_operand() argument
128 (*info->print_address_func) ((memaddr - num) & PC_MASK, info); in print_operand()
130 (*info->print_address_func) ((memaddr + num) & PC_MASK, info); in print_operand()
151 bfd_vma memaddr, in dis_long() argument
173 print_operand (oper, insn, op, memaddr, info); in dis_long()
193 bfd_vma memaddr, in dis_2_short() argument
223 print_operand (oper, ins[j], op, memaddr, info); in dis_2_short()
265 print_insn_d10v (bfd_vma memaddr, struct disassemble_info *info) in print_insn_d10v() argument
271 status = (*info->read_memory_func) (memaddr, buffer, 4, info); in print_insn_d10v()
274 (*info->memory_error_func) (status, memaddr, info); in print_insn_d10v()
[all …]
/openbsd-src/gnu/usr.bin/binutils/gdb/
H A Dcorefile.c209 memory_error (int status, CORE_ADDR memaddr) in memory_error() argument
219 print_address_numeric (memaddr, 1, tmp_stream); in memory_error()
224 print_address_numeric (memaddr, 1, tmp_stream); in memory_error()
234 read_memory (CORE_ADDR memaddr, char *myaddr, int len) in read_memory() argument
237 status = target_read_memory (memaddr, myaddr, len); in read_memory()
239 memory_error (status, memaddr); in read_memory()
249 CORE_ADDR memaddr; member
265 CORE_ADDR memaddr = args->memaddr; in do_captured_read_memory_integer() local
268 args->result = read_memory_integer (memaddr, len); in do_captured_read_memory_integer()
278 safe_read_memory_integer (CORE_ADDR memaddr, int len, LONGEST *return_value) in safe_read_memory_integer() argument
[all …]
H A Ddcache.c245 CORE_ADDR memaddr; in dcache_write_line() local
256 memaddr = db->addr; in dcache_write_line()
265 region = lookup_mem_region(memaddr); in dcache_write_line()
266 if (memaddr + len < region->hi) in dcache_write_line()
269 reg_len = region->hi - memaddr; in dcache_write_line()
273 memaddr += reg_len; in dcache_write_line()
281 s = XFORM(memaddr); in dcache_write_line()
288 memaddr++; in dcache_write_line()
304 res = do_xfer_memory(memaddr, myaddr, dirty_len, 1, in dcache_write_line()
309 memset (&db->state[XFORM(memaddr)], ENTRY_OK, res); in dcache_write_line()
[all …]
H A Dmonitor.c70 static void monitor_error (char *function, char *message, CORE_ADDR memaddr, int len, char *string,…
82 static int monitor_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len,
97 static int monitor_write_memory_block (CORE_ADDR memaddr,
240 CORE_ADDR memaddr, int len, char *string, int final_char) in monitor_error() argument
247 error ("%s (0x%s): %s: %s%c", function, paddr_nz (memaddr), message, safe_string, final_char); in monitor_error()
249 error ("%s (0x%s): %s: %s", function, paddr_nz (memaddr), message, safe_string); in monitor_error()
1417 monitor_write_memory (CORE_ADDR memaddr, char *myaddr, int len) in monitor_write_memory() argument
1423 monitor_debug ("MON write %d %s\n", len, paddr (memaddr)); in monitor_write_memory()
1426 memaddr = ADDR_BITS_REMOVE (memaddr); in monitor_write_memory()
1440 monitor_printf (current_monitor->fill, memaddr, (memaddr + i) - 1, 0); in monitor_write_memory()
[all …]

123456