Home
last modified time | relevance | path

Searched refs:regcache (Results 1 – 25 of 63) sorted by relevance

123

/NextBSD/contrib/gdb/gdb/
HDregcache.h26 struct regcache;
29 extern struct regcache *current_regcache;
31 void regcache_xfree (struct regcache *regcache);
32 struct cleanup *make_cleanup_regcache_xfree (struct regcache *regcache);
33 struct regcache *regcache_xmalloc (struct gdbarch *gdbarch);
37 extern struct gdbarch *get_regcache_arch (const struct regcache *regcache);
42 void regcache_raw_read (struct regcache *regcache, int rawnum, void *buf);
43 void regcache_raw_write (struct regcache *regcache, int rawnum,
45 extern void regcache_raw_read_signed (struct regcache *regcache,
47 extern void regcache_raw_read_unsigned (struct regcache *regcache,
[all …]
HDregcache.c292 struct regcache struct
309 struct regcache * argument
313 struct regcache *regcache; in regcache_xmalloc() local
316 regcache = XMALLOC (struct regcache); in regcache_xmalloc()
317 regcache->descr = descr; in regcache_xmalloc()
318 regcache->registers in regcache_xmalloc()
320 regcache->register_valid_p in regcache_xmalloc()
322 regcache->readonly_p = 1; in regcache_xmalloc()
323 return regcache; in regcache_xmalloc()
327 regcache_xfree (struct regcache *regcache) in regcache_xfree() argument
[all …]
HDsparc64-tdep.c343 struct regcache *regcache, in sparc64_pseudo_register_read() argument
351 regcache_raw_read (regcache, regnum, buf); in sparc64_pseudo_register_read()
352 regcache_raw_read (regcache, regnum + 1, ((char *)buf) + 4); in sparc64_pseudo_register_read()
357 regcache_raw_read (regcache, regnum, buf); in sparc64_pseudo_register_read()
362 regcache_raw_read (regcache, regnum, buf); in sparc64_pseudo_register_read()
363 regcache_raw_read (regcache, regnum + 1, ((char *)buf) + 4); in sparc64_pseudo_register_read()
364 regcache_raw_read (regcache, regnum + 2, ((char *)buf) + 8); in sparc64_pseudo_register_read()
365 regcache_raw_read (regcache, regnum + 3, ((char *)buf) + 12); in sparc64_pseudo_register_read()
370 regcache_raw_read (regcache, regnum, buf); in sparc64_pseudo_register_read()
371 regcache_raw_read (regcache, regnum + 1, ((char *)buf) + 8); in sparc64_pseudo_register_read()
[all …]
HDppc-sysv-tdep.c47 struct regcache *regcache, CORE_ADDR bp_addr, in ppc_sysv_abi_push_dummy_call() argument
90 regcache_cooked_write_signed (regcache, in ppc_sysv_abi_push_dummy_call()
119 regcache_cooked_write (regcache, FP0_REGNUM + freg, in ppc_sysv_abi_push_dummy_call()
170 regcache_cooked_write (regcache, in ppc_sysv_abi_push_dummy_call()
181 regcache_cooked_write (regcache, in ppc_sysv_abi_push_dummy_call()
184 regcache_cooked_write (regcache, in ppc_sysv_abi_push_dummy_call()
271 regcache_cooked_write (regcache, in ppc_sysv_abi_push_dummy_call()
298 regcache_cooked_write_signed (regcache, SP_REGNUM, sp); in ppc_sysv_abi_push_dummy_call()
305 regcache_cooked_write_signed (regcache, tdep->ppc_lr_regnum, bp_addr); in ppc_sysv_abi_push_dummy_call()
327 struct regcache *regcache, void *readbuf, in do_ppc_sysv_return_value() argument
[all …]
HDsparc64nbsd-nat.c33 struct regcache *regcache, in sparc64nbsd_supply_gregset() argument
39 sparc32_supply_gregset (&sparc32nbsd_gregset, regcache, regnum, gregs); in sparc64nbsd_supply_gregset()
41 sparc64_supply_gregset (&sparc64nbsd_gregset, regcache, regnum, gregs); in sparc64nbsd_supply_gregset()
46 const struct regcache *regcache, in sparc64nbsd_collect_gregset() argument
52 sparc32_collect_gregset (&sparc32nbsd_gregset, regcache, regnum, gregs); in sparc64nbsd_collect_gregset()
54 sparc64_collect_gregset (&sparc64nbsd_gregset, regcache, regnum, gregs); in sparc64nbsd_collect_gregset()
58 sparc64nbsd_supply_fpregset (struct regcache *regcache, in sparc64nbsd_supply_fpregset() argument
64 sparc32_supply_fpregset (regcache, regnum, fpregs); in sparc64nbsd_supply_fpregset()
66 sparc64_supply_fpregset (regcache, regnum, fpregs); in sparc64nbsd_supply_fpregset()
70 sparc64nbsd_collect_fpregset (const struct regcache *regcache, in sparc64nbsd_collect_fpregset() argument
[all …]
HDsparc-tdep.c314 struct regcache *regcache, in sparc32_pseudo_register_read() argument
320 regcache_raw_read (regcache, regnum, buf); in sparc32_pseudo_register_read()
321 regcache_raw_read (regcache, regnum + 1, ((char *)buf) + 4); in sparc32_pseudo_register_read()
326 struct regcache *regcache, in sparc32_pseudo_register_write() argument
332 regcache_raw_write (regcache, regnum, buf); in sparc32_pseudo_register_write()
333 regcache_raw_write (regcache, regnum + 1, ((const char *)buf) + 4); in sparc32_pseudo_register_write()
361 sparc32_store_arguments (struct regcache *regcache, int nargs, in sparc32_store_arguments() argument
430 regcache_cooked_write (regcache, regnum, valbuf); in sparc32_store_arguments()
432 regcache_cooked_write (regcache, regnum + 1, valbuf + 4); in sparc32_store_arguments()
455 struct regcache *regcache, CORE_ADDR bp_addr, in sparc32_push_dummy_call() argument
[all …]
HDia64-fbsd-tdep.c101 ia64_fbsd_regcache_collect (struct regcache *regcache, int regno, in ia64_fbsd_regcache_collect() argument
113 regcache_raw_collect (regcache, regno, &bsp); in ia64_fbsd_regcache_collect()
114 regcache_raw_collect (regcache, IA64_BSPSTORE_REGNUM, &bspstore); in ia64_fbsd_regcache_collect()
120 regcache_raw_collect (regcache, regno, (char*)regs + ofs); in ia64_fbsd_regcache_collect()
125 ia64_fbsd_regcache_supply (struct regcache *regcache, int regno, in ia64_fbsd_regcache_supply() argument
143 regcache_raw_supply (regcache, regno, &bsp); in ia64_fbsd_regcache_supply()
148 regcache_raw_supply (regcache, regno, NULL); in ia64_fbsd_regcache_supply()
150 regcache_raw_supply (regcache, regno, (char *)regs + ofs); in ia64_fbsd_regcache_supply()
216 struct regcache *regcache, int regno, in ia64_fbsd_supply_gregset() argument
224 ia64_fbsd_regcache_supply (regcache, regno, gregs); in ia64_fbsd_supply_gregset()
[all …]
HDsparc-tdep.h27 struct regcache;
167 extern void sparc_supply_rwindow (struct regcache *regcache,
169 extern void sparc_collect_rwindow (const struct regcache *regcache,
176 struct regcache *regcache,
179 const struct regcache *regcache,
181 extern void sparc32_supply_fpregset (struct regcache *regcache,
183 extern void sparc32_collect_fpregset (const struct regcache *regcache,
HDsparc-nat.c87 struct regcache *, int , const void *);
89 const struct regcache *, int, void *);
90 void (*sparc_supply_fpregset) (struct regcache *, int , const void *);
91 void (*sparc_collect_fpregset) (const struct regcache *, int , void *);
139 struct regcache *regcache = current_regcache; in fetch_inferior_registers() local
161 regcache_raw_supply (regcache, SPARC_G0_REGNUM, NULL); in fetch_inferior_registers()
172 sparc_supply_gregset (sparc_gregset, regcache, -1, &regs); in fetch_inferior_registers()
184 sparc_supply_fpregset (regcache, -1, &fpregs); in fetch_inferior_registers()
191 struct regcache *regcache = current_regcache; in store_inferior_registers() local
207 sparc_collect_gregset (sparc_gregset, regcache, regnum, &regs); in store_inferior_registers()
[all …]
HDppc-tdep.h28 struct regcache;
39 struct regcache *regcache,
44 struct regcache *regcache,
49 struct regcache *regcache,
56 struct regcache *regcache,
70 struct regcache *regcache,
HDi387-tdep.c386 i387_supply_fsave (struct regcache *regcache, int regnum, const void *fsave) in i387_supply_fsave() argument
388 struct gdbarch_tdep *tdep = gdbarch_tdep (get_regcache_arch (regcache)); in i387_supply_fsave()
403 regcache_raw_supply (regcache, i, NULL); in i387_supply_fsave()
418 regcache_raw_supply (regcache, i, val); in i387_supply_fsave()
421 regcache_raw_supply (regcache, i, FSAVE_ADDR (regs, i)); in i387_supply_fsave()
434 struct regcache *regcache = current_regcache; in i387_fill_fsave() local
455 regcache_raw_collect (regcache, i, buf); in i387_fill_fsave()
467 regcache_raw_collect (regcache, i, FSAVE_ADDR (regs, i)); in i387_fill_fsave()
531 i387_supply_fxsave (struct regcache *regcache, int regnum, const void *fxsave) in i387_supply_fxsave() argument
533 struct gdbarch_tdep *tdep = gdbarch_tdep (get_regcache_arch (regcache)); in i387_supply_fxsave()
[all …]
HDremote-vxsparc.c62 struct regcache *regcache = current_regcache; in vx_read_register() local
69 sparc32_supply_gregset (&vxsparc_gregset, regcache, -1, gregs); in vx_read_register()
79 sparc32_supply_fpregset (regcache, -1, fpregs); in vx_read_register()
89 struct regcache *regcache = current_regcache; in vx_write_register() local
108 sparc32_collect_gregset (&vxsparc_gregset, regcache, -1, gregs); in vx_write_register()
117 regcache_cooked_read_unsigned (regcache, SPARC_SP_REGNUM, &sp); in vx_write_register()
118 sparc_collect_rwindow (regcache, sp, regnum); in vx_write_register()
125 sparc32_collect_fpregset (regcache, -1, fpregs); in vx_write_register()
HDi387-tdep.h27 struct regcache;
81 extern void i387_supply_fsave (struct regcache *regcache, int regnum,
95 extern void i387_supply_fxsave (struct regcache *regcache, int regnum,
103 extern void i387_collect_fxsave (const struct regcache *regcache, int regnum,
116 struct regcache *regcache);
HDsparc64-tdep.h27 struct regcache;
91 struct regcache *regcache,
94 const struct regcache *regcache,
96 extern void sparc64_supply_fpregset (struct regcache *regcache,
98 extern void sparc64_collect_fpregset (const struct regcache *regcache,
HDdummy-frame.c54 struct regcache *regcache; member
113 struct regcache *
118 return dummy->regcache; in deprecated_find_dummy_frame_regcache()
126 struct regcache *regcache = deprecated_find_dummy_frame_regcache (pc, fp); in deprecated_generic_find_dummy_frame() local
127 if (regcache == NULL) in deprecated_generic_find_dummy_frame()
129 return deprecated_grub_regcache_for_registers (regcache); in deprecated_generic_find_dummy_frame()
179 struct regcache *dummy_regs = deprecated_find_dummy_frame_regcache (pc, fp); in deprecated_read_register_dummy()
222 regcache_xfree (dummy_frame->regcache); in generic_push_dummy_frame()
230 dummy_frame->regcache = regcache_xmalloc (current_gdbarch); in generic_push_dummy_frame()
237 regcache_cpy (dummy_frame->regcache, current_regcache); in generic_push_dummy_frame()
[all …]
HDsentinel-frame.c33 struct regcache *regcache; member
37 sentinel_frame_cache (struct regcache *regcache) in sentinel_frame_cache() argument
41 cache->regcache = regcache; in sentinel_frame_cache()
69 regcache_cooked_read (cache->regcache, regnum, bufferp); in sentinel_frame_prev_register()
HDamd64-nat.c92 amd64_supply_native_gregset (struct regcache *regcache, in amd64_supply_native_gregset() argument
96 struct gdbarch *gdbarch = get_regcache_arch (regcache); in amd64_supply_native_gregset()
113 regcache_raw_supply (regcache, i, regs + offset); in amd64_supply_native_gregset()
123 amd64_collect_native_gregset (const struct regcache *regcache, in amd64_collect_native_gregset() argument
127 struct gdbarch *gdbarch = get_regcache_arch (regcache); in amd64_collect_native_gregset()
160 regcache_raw_collect (regcache, i, regs + offset); in amd64_collect_native_gregset()
HDi386-tdep.c1098 struct regcache *regcache, CORE_ADDR bp_addr, int nargs, in i386_push_dummy_call() argument
1136 regcache_cooked_write (regcache, I386_ESP_REGNUM, buf); in i386_push_dummy_call()
1139 regcache_cooked_write (regcache, I386_EBP_REGNUM, buf); in i386_push_dummy_call()
1164 struct regcache *regcache, void *valbuf) in i386_extract_return_value() argument
1183 regcache_raw_read (regcache, I386_ST0_REGNUM, buf); in i386_extract_return_value()
1193 regcache_raw_read (regcache, LOW_RETURN_REGNUM, buf); in i386_extract_return_value()
1198 regcache_raw_read (regcache, LOW_RETURN_REGNUM, buf); in i386_extract_return_value()
1200 regcache_raw_read (regcache, HIGH_RETURN_REGNUM, buf); in i386_extract_return_value()
1214 struct regcache *regcache, const void *valbuf) in i386_store_return_value() argument
1243 regcache_raw_write (regcache, I386_ST0_REGNUM, buf); in i386_store_return_value()
[all …]
HDamd64-tdep.c405 struct regcache *regcache, in amd64_return_value() argument
463 i387_return_value (gdbarch, regcache); in amd64_return_value()
485 regcache_raw_read_part (regcache, regnum, offset, min (len, 8), in amd64_return_value()
488 regcache_raw_write_part (regcache, regnum, offset, min (len, 8), in amd64_return_value()
497 amd64_push_arguments (struct regcache *regcache, int nargs, in amd64_push_arguments() argument
597 regcache_raw_write_part (regcache, regnum, offset, 8, buf); in amd64_push_arguments()
624 regcache_raw_write_unsigned (regcache, AMD64_RAX_REGNUM, sse_reg); in amd64_push_arguments()
630 struct regcache *regcache, CORE_ADDR bp_addr, in amd64_push_dummy_call() argument
637 sp = amd64_push_arguments (regcache, nargs, args, sp, struct_return); in amd64_push_dummy_call()
643 regcache_cooked_write (regcache, AMD64_RDI_REGNUM, buf); in amd64_push_dummy_call()
[all …]
HDamd64-nat.h25 struct regcache;
43 extern void amd64_supply_native_gregset (struct regcache *regcache,
50 extern void amd64_collect_native_gregset (const struct regcache *regcache,
HDamd64-tdep.h28 struct regcache;
63 extern void amd64_supply_fxsave (struct regcache *regcache, int regnum,
71 extern void amd64_collect_fxsave (const struct regcache *regcache, int regnum,
HDalpha-tdep.c267 struct regcache *regcache, CORE_ADDR bp_addr, in alpha_push_dummy_call() argument
286 regcache_cooked_write_signed (regcache, ALPHA_T12_REGNUM, func_addr); in alpha_push_dummy_call()
290 regcache_cooked_write_signed (regcache, ALPHA_RA_REGNUM, bp_addr); in alpha_push_dummy_call()
425 regcache_cooked_write (regcache, ALPHA_A0_REGNUM + i, in alpha_push_dummy_call()
427 regcache_cooked_write (regcache, ALPHA_FPA0_REGNUM + i, in alpha_push_dummy_call()
432 regcache_cooked_write_signed (regcache, ALPHA_SP_REGNUM, sp); in alpha_push_dummy_call()
441 alpha_extract_return_value (struct type *valtype, struct regcache *regcache, in alpha_extract_return_value() argument
454 regcache_cooked_read (regcache, ALPHA_FP0_REGNUM, raw_buffer); in alpha_extract_return_value()
459 regcache_cooked_read (regcache, ALPHA_FP0_REGNUM, valbuf); in alpha_extract_return_value()
463 regcache_cooked_read_unsigned (regcache, ALPHA_V0_REGNUM, &l); in alpha_extract_return_value()
[all …]
/NextBSD/contrib/gdb/gdb/gdbserver/
HDregcache.c48 struct inferior_regcache_data *regcache; in get_regcache() local
50 regcache = (struct inferior_regcache_data *) inferior_regcache_data (inf); in get_regcache()
52 if (regcache == NULL) in get_regcache()
56 if (fetch && regcache->registers_valid == 0) in get_regcache()
59 regcache->registers_valid = 1; in get_regcache()
62 return regcache; in get_regcache()
69 struct inferior_regcache_data *regcache; in regcache_invalidate_one() local
71 regcache = (struct inferior_regcache_data *) inferior_regcache_data (thread); in regcache_invalidate_one()
73 if (regcache->registers_valid) in regcache_invalidate_one()
82 regcache->registers_valid = 0; in regcache_invalidate_one()
[all …]
HDproc-service.c133 void *regcache; in ps_lgetregs()
143 regcache = new_register_cache (); in ps_lgetregs()
144 the_target->fetch_registers (0, regcache); in ps_lgetregs()
145 gregset_info()->fill_function (gregset, regcache); in ps_lgetregs()
146 free_register_cache (regcache); in ps_lgetregs()
163 void *regcache; in ps_lsetregs()
172 regcache = new_register_cache (); in ps_lsetregs()
173 gregset_info()->store_function (gregset, regcache); in ps_lsetregs()
174 the_target->store_registers (0, regcache); in ps_lsetregs()
175 free_register_cache (regcache); in ps_lsetregs()
[all …]
/NextBSD/contrib/gdb/include/gdb/
HDsim-d10v.h61 void *regcache,
62 unsigned long (*dmap_register) (void *regcache, int reg_nr));
68 void *regcache,
69 unsigned long (*imap_register) (void *regcache, int reg_nr));
75 void *regcache,
76 unsigned long (*dmap_register) (void *regcache, int reg_nr),
77 unsigned long (*imap_register) (void *regcache, int reg_nr));

123