Home
last modified time | relevance | path

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

12345

/openbsd-src/gnu/usr.bin/binutils/gdb/
H A Dregcache.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 …]
H A Dregcache.c182 struct regcache struct
199 struct regcache * argument
203 struct regcache *regcache; in regcache_xmalloc() local
206 regcache = XMALLOC (struct regcache); in regcache_xmalloc()
207 regcache->descr = descr; in regcache_xmalloc()
208 regcache->registers in regcache_xmalloc()
210 regcache->register_valid_p in regcache_xmalloc()
212 regcache->readonly_p = 1; in regcache_xmalloc()
213 return regcache; in regcache_xmalloc()
217 regcache_xfree (struct regcache *regcache) in regcache_xfree() argument
[all …]
H A Dhppabsd-nat.c50 hppabsd_supply_gregset (struct regcache *regcache, const void *gregs) in hppabsd_supply_gregset() argument
56 regcache_raw_supply (regcache, regnum, regs + regnum * 4); in hppabsd_supply_gregset()
58 regcache_raw_supply (regcache, HPPA_IPSW_REGNUM, regs); in hppabsd_supply_gregset()
59 regcache_raw_supply (regcache, HPPA_SAR_REGNUM, regs + 32 * 4); in hppabsd_supply_gregset()
60 regcache_raw_supply (regcache, HPPA_PCSQ_HEAD_REGNUM, regs + 33 * 4); in hppabsd_supply_gregset()
61 regcache_raw_supply (regcache, HPPA_PCSQ_TAIL_REGNUM, regs + 34 * 4); in hppabsd_supply_gregset()
62 regcache_raw_supply (regcache, HPPA_PCOQ_HEAD_REGNUM, regs + 35 * 4); in hppabsd_supply_gregset()
63 regcache_raw_supply (regcache, HPPA_PCOQ_TAIL_REGNUM, regs + 36 * 4); in hppabsd_supply_gregset()
64 regcache_raw_supply (regcache, HPPA_SR0_REGNUM, regs + 37 * 4); in hppabsd_supply_gregset()
65 regcache_raw_supply (regcache, HPPA_SR1_REGNUM, regs + 38 * 4); in hppabsd_supply_gregset()
[all …]
H A Dsparc64nbsd-nat.c36 struct regcache *regcache, in sparc64nbsd_supply_gregset() argument
42 sparc32_supply_gregset (&sparc32nbsd_gregset, regcache, regnum, gregs); in sparc64nbsd_supply_gregset()
44 sparc64_supply_gregset (&sparc64nbsd_gregset, regcache, regnum, gregs); in sparc64nbsd_supply_gregset()
49 const struct regcache *regcache, in sparc64nbsd_collect_gregset() argument
55 sparc32_collect_gregset (&sparc32nbsd_gregset, regcache, regnum, gregs); in sparc64nbsd_collect_gregset()
57 sparc64_collect_gregset (&sparc64nbsd_gregset, regcache, regnum, gregs); in sparc64nbsd_collect_gregset()
61 sparc64nbsd_supply_fpregset (struct regcache *regcache, in sparc64nbsd_supply_fpregset() argument
67 sparc32_supply_fpregset (regcache, regnum, fpregs); in sparc64nbsd_supply_fpregset()
69 sparc64_supply_fpregset (regcache, regnum, fpregs); in sparc64nbsd_supply_fpregset()
73 sparc64nbsd_collect_fpregset (const struct regcache *regcache, in sparc64nbsd_collect_fpregset() argument
[all …]
H A Dsparc64-tdep.c332 struct regcache *regcache, in sparc64_pseudo_register_read() argument
340 regcache_raw_read (regcache, regnum, buf); in sparc64_pseudo_register_read()
341 regcache_raw_read (regcache, regnum + 1, ((char *)buf) + 4); in sparc64_pseudo_register_read()
346 regcache_raw_read (regcache, regnum, buf); in sparc64_pseudo_register_read()
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()
353 regcache_raw_read (regcache, regnum + 2, ((char *)buf) + 8); in sparc64_pseudo_register_read()
354 regcache_raw_read (regcache, regnum + 3, ((char *)buf) + 12); in sparc64_pseudo_register_read()
359 regcache_raw_read (regcache, regnum, buf); in sparc64_pseudo_register_read()
360 regcache_raw_read (regcache, regnum + 1, ((char *)buf) + 8); in sparc64_pseudo_register_read()
[all …]
H A Dhppabsd-tdep.c47 hppabsd_supply_gregset (const struct regset *regset, struct regcache *regcache, in hppabsd_supply_gregset() argument
59 regcache_raw_supply (regcache, i, regs + offset); in hppabsd_supply_gregset()
63 regcache_raw_supply (regcache, HPPA_IPSW_REGNUM, regs); in hppabsd_supply_gregset()
65 regcache_raw_supply (regcache, HPPA_SAR_REGNUM, regs + 32 * 4); in hppabsd_supply_gregset()
67 regcache_raw_supply (regcache, HPPA_PCSQ_HEAD_REGNUM, regs + 33 * 4); in hppabsd_supply_gregset()
69 regcache_raw_supply (regcache, HPPA_PCSQ_TAIL_REGNUM, regs + 34 * 4); in hppabsd_supply_gregset()
71 regcache_raw_supply (regcache, HPPA_PCOQ_HEAD_REGNUM, regs + 35 * 4); in hppabsd_supply_gregset()
73 regcache_raw_supply (regcache, HPPA_PCOQ_TAIL_REGNUM, regs + 36 * 4); in hppabsd_supply_gregset()
75 regcache_raw_supply (regcache, HPPA_SR0_REGNUM, regs + 37 * 4); in hppabsd_supply_gregset()
77 regcache_raw_supply (regcache, HPPA_SR1_REGNUM, regs + 38 * 4); in hppabsd_supply_gregset()
[all …]
H A Dppc-sysv-tdep.c48 struct regcache *regcache, CORE_ADDR bp_addr, in ppc_sysv_abi_push_dummy_call() argument
91 regcache_cooked_write_signed (regcache, in ppc_sysv_abi_push_dummy_call()
120 regcache_cooked_write (regcache, in ppc_sysv_abi_push_dummy_call()
172 regcache_cooked_write (regcache, in ppc_sysv_abi_push_dummy_call()
183 regcache_cooked_write (regcache, in ppc_sysv_abi_push_dummy_call()
186 regcache_cooked_write (regcache, in ppc_sysv_abi_push_dummy_call()
273 regcache_cooked_write (regcache, in ppc_sysv_abi_push_dummy_call()
300 regcache_cooked_write_signed (regcache, SP_REGNUM, sp); in ppc_sysv_abi_push_dummy_call()
307 regcache_cooked_write_signed (regcache, tdep->ppc_lr_regnum, bp_addr); in ppc_sysv_abi_push_dummy_call()
329 struct regcache *regcache, void *readbuf, in do_ppc_sysv_return_value() argument
[all …]
H A Dsparc64obsd-nat.c33 struct regcache *regcache, in sparc64obsd_supply_gregset() argument
36 sparc64_supply_gregset (&sparc64nbsd_gregset, regcache, regnum, gregs); in sparc64obsd_supply_gregset()
41 const struct regcache *regcache, in sparc64obsd_collect_gregset() argument
44 sparc64_collect_gregset (&sparc64nbsd_gregset, regcache, regnum, gregs); in sparc64obsd_collect_gregset()
48 sparc64obsd_supply_fpregset (struct regcache *regcache, in sparc64obsd_supply_fpregset() argument
51 sparc64_supply_fpregset (regcache, regnum, fpregs); in sparc64obsd_supply_fpregset()
55 sparc64obsd_collect_fpregset (const struct regcache *regcache, in sparc64obsd_collect_fpregset() argument
58 sparc64_collect_fpregset (regcache, regnum, fpregs); in sparc64obsd_collect_fpregset()
109 sparc64obsd_supply_pcb (struct regcache *regcache, struct pcb *pcb) in sparc64obsd_supply_pcb() argument
130 regcache_raw_supply (regcache, SPARC_SP_REGNUM, &pcb->pcb_sp); in sparc64obsd_supply_pcb()
[all …]
H A Dppc64obsd-tdep.c48 ppc64_supply_reg (struct regcache *regcache, int regnum, in ppc64_supply_reg() argument
52 regcache_raw_supply (regcache, regnum, regs + offset); in ppc64_supply_reg()
56 ppc64_collect_reg (const struct regcache *regcache, int regnum, in ppc64_collect_reg() argument
60 regcache_raw_collect (regcache, regnum, regs + offset); in ppc64_collect_reg()
68 ppc64_supply_gregset (const struct regset *regset, struct regcache *regcache, in ppc64_supply_gregset() argument
71 struct gdbarch *gdbarch = get_regcache_arch (regcache); in ppc64_supply_gregset()
82 ppc64_supply_reg (regcache, i, gregs, offset); in ppc64_supply_gregset()
86 ppc64_supply_reg (regcache, PC_REGNUM, gregs, offsets->pc_offset); in ppc64_supply_gregset()
88 ppc64_supply_reg (regcache, tdep->ppc_ps_regnum, in ppc64_supply_gregset()
91 ppc64_supply_reg (regcache, tdep->ppc_cr_regnum, in ppc64_supply_gregset()
[all …]
H A Dppc-tdep.h29 struct regcache;
35 struct regcache *regcache,
40 struct regcache *regcache,
45 struct regcache *regcache,
52 struct regcache *regcache,
61 void ppc_linux_supply_gregset (struct regcache *regcache,
65 struct regcache *regcache,
70 struct regcache *regcache,
111 struct regcache *regcache,
119 struct regcache *regcache,
[all …]
H A Dm68kbsd-nat.c50 m68kbsd_supply_gregset (struct regcache *regcache, const void *gregs) in m68kbsd_supply_gregset() argument
56 regcache_raw_supply (regcache, regnum, regs + regnum * 4); in m68kbsd_supply_gregset()
62 m68kbsd_supply_fpregset (struct regcache *regcache, const void *fpregs) in m68kbsd_supply_fpregset() argument
68 regcache_raw_supply (regcache, regnum, in m68kbsd_supply_fpregset()
76 m68kbsd_collect_gregset (const struct regcache *regcache, in m68kbsd_collect_gregset() argument
85 regcache_raw_collect (regcache, i, regs + i * 4); in m68kbsd_collect_gregset()
93 m68kbsd_collect_fpregset (struct regcache *regcache, in m68kbsd_collect_fpregset() argument
102 regcache_raw_collect (regcache, i, regs + m68kbsd_fpreg_offset (i)); in m68kbsd_collect_fpregset()
190 m68kbsd_supply_pcb (struct regcache *regcache, struct pcb *pcb) in m68kbsd_supply_pcb() argument
207 regcache_raw_supply (regcache, regnum, &pcb->pcb_regs[i++]); in m68kbsd_supply_pcb()
[all …]
H A Dvaxbsd-nat.c37 vaxbsd_supply_gregset (struct regcache *regcache, const void *gregs) in vaxbsd_supply_gregset() argument
43 regcache_raw_supply (regcache, regnum, regs + regnum * 4); in vaxbsd_supply_gregset()
50 vaxbsd_collect_gregset (const struct regcache *regcache, in vaxbsd_collect_gregset() argument
59 regcache_raw_collect (regcache, i, regs + i * 4); in vaxbsd_collect_gregset()
107 vaxbsd_supply_pcb (struct regcache *regcache, struct pcb *pcb) in vaxbsd_supply_pcb() argument
121 regcache_raw_supply (regcache, regnum, &pcb->R[regnum - VAX_R0_REGNUM]); in vaxbsd_supply_pcb()
122 regcache_raw_supply (regcache, VAX_AP_REGNUM, &pcb->AP); in vaxbsd_supply_pcb()
123 regcache_raw_supply (regcache, VAX_FP_REGNUM, &pcb->FP); in vaxbsd_supply_pcb()
124 regcache_raw_supply (regcache, VAX_SP_REGNUM, &pcb->KSP); in vaxbsd_supply_pcb()
125 regcache_raw_supply (regcache, VAX_PC_REGNUM, &pcb->PC); in vaxbsd_supply_pcb()
[all …]
H A Dsparc-tdep.c315 struct regcache *regcache, in sparc32_pseudo_register_read() argument
321 regcache_raw_read (regcache, regnum, buf); in sparc32_pseudo_register_read()
322 regcache_raw_read (regcache, regnum + 1, ((char *)buf) + 4); in sparc32_pseudo_register_read()
327 struct regcache *regcache, in sparc32_pseudo_register_write() argument
333 regcache_raw_write (regcache, regnum, buf); in sparc32_pseudo_register_write()
334 regcache_raw_write (regcache, regnum + 1, ((const char *)buf) + 4); in sparc32_pseudo_register_write()
362 sparc32_store_arguments (struct regcache *regcache, int nargs, in sparc32_store_arguments() argument
431 regcache_cooked_write (regcache, regnum, valbuf); in sparc32_store_arguments()
433 regcache_cooked_write (regcache, regnum + 1, valbuf + 4); in sparc32_store_arguments()
456 struct regcache *regcache, CORE_ADDR bp_addr, in sparc32_push_dummy_call() argument
[all …]
H A Di387-tdep.h27 struct regcache;
81 extern void i387_supply_fsave (struct regcache *regcache, int regnum,
89 extern void i387_collect_fsave (const struct regcache *regcache, int regnum,
103 extern void i387_supply_fxsave (struct regcache *regcache, int regnum,
111 extern void i387_collect_fxsave (const struct regcache *regcache, int regnum,
124 struct regcache *regcache);
H A Damd64obsd-nat.c72 amd64obsd_supply_pcb (struct regcache *regcache, struct pcb *pcb) in amd64obsd_supply_pcb() argument
112 regcache_raw_supply (regcache, 12, &sf.sf_r12); in amd64obsd_supply_pcb()
113 regcache_raw_supply (regcache, 13, &sf.sf_r13); in amd64obsd_supply_pcb()
114 regcache_raw_supply (regcache, 14, &sf.sf_r14); in amd64obsd_supply_pcb()
115 regcache_raw_supply (regcache, 15, &sf.sf_r15); in amd64obsd_supply_pcb()
116 regcache_raw_supply (regcache, AMD64_RBX_REGNUM, &sf.sf_rbx); in amd64obsd_supply_pcb()
117 regcache_raw_supply (regcache, AMD64_RIP_REGNUM, &sf.sf_rip); in amd64obsd_supply_pcb()
123 regcache_raw_supply (regcache, AMD64_RIP_REGNUM, &sf); in amd64obsd_supply_pcb()
126 regcache_raw_supply (regcache, AMD64_RSP_REGNUM, &pcb->pcb_rsp); in amd64obsd_supply_pcb()
127 regcache_raw_supply (regcache, AMD64_RBP_REGNUM, &pcb->pcb_rbp); in amd64obsd_supply_pcb()
H A Dsparc-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,
H A Damd64fbsd-nat.c104 amd64fbsd_supply_pcb (struct regcache *regcache, struct pcb *pcb) in amd64fbsd_supply_pcb() argument
120 regcache_raw_supply (regcache, AMD64_RIP_REGNUM, &pcb->pcb_rip); in amd64fbsd_supply_pcb()
121 regcache_raw_supply (regcache, AMD64_RBX_REGNUM, &pcb->pcb_rbx); in amd64fbsd_supply_pcb()
122 regcache_raw_supply (regcache, AMD64_RSP_REGNUM, &pcb->pcb_rsp); in amd64fbsd_supply_pcb()
123 regcache_raw_supply (regcache, AMD64_RBP_REGNUM, &pcb->pcb_rbp); in amd64fbsd_supply_pcb()
124 regcache_raw_supply (regcache, 12, &pcb->pcb_r12); in amd64fbsd_supply_pcb()
125 regcache_raw_supply (regcache, 13, &pcb->pcb_r13); in amd64fbsd_supply_pcb()
126 regcache_raw_supply (regcache, 14, &pcb->pcb_r14); in amd64fbsd_supply_pcb()
127 regcache_raw_supply (regcache, 15, &pcb->pcb_r15); in amd64fbsd_supply_pcb()
128 regcache_raw_supply (regcache, AMD64_DS_REGNUM, &pcb->pcb_ds); in amd64fbsd_supply_pcb()
[all …]
H A Di386nbsd-nat.c39 i386nbsd_supply_pcb (struct regcache *regcache, struct pcb *pcb) in i386nbsd_supply_pcb() argument
71 regcache_raw_supply (regcache, I386_EDI_REGNUM, &sf.sf_edi); in i386nbsd_supply_pcb()
72 regcache_raw_supply (regcache, I386_ESI_REGNUM, &sf.sf_esi); in i386nbsd_supply_pcb()
73 regcache_raw_supply (regcache, I386_EBX_REGNUM, &sf.sf_ebx); in i386nbsd_supply_pcb()
74 regcache_raw_supply (regcache, I386_EIP_REGNUM, &sf.sf_eip); in i386nbsd_supply_pcb()
80 regcache_raw_supply (regcache, I386_EIP_REGNUM, &sf); in i386nbsd_supply_pcb()
83 regcache_raw_supply (regcache, I386_EBP_REGNUM, &pcb->pcb_ebp); in i386nbsd_supply_pcb()
84 regcache_raw_supply (regcache, I386_ESP_REGNUM, &pcb->pcb_esp); in i386nbsd_supply_pcb()
H A Di387-tdep.c385 i387_supply_fsave (struct regcache *regcache, int regnum, const void *fsave) in i387_supply_fsave() argument
387 struct gdbarch_tdep *tdep = gdbarch_tdep (get_regcache_arch (regcache)); in i387_supply_fsave()
404 regcache_raw_supply (regcache, i, NULL); in i387_supply_fsave()
419 regcache_raw_supply (regcache, i, val); in i387_supply_fsave()
422 regcache_raw_supply (regcache, i, FSAVE_ADDR (regs, i)); in i387_supply_fsave()
428 regcache_raw_supply (regcache, i, NULL); in i387_supply_fsave()
434 regcache_raw_supply (regcache, I387_MXCSR_REGNUM, buf); in i387_supply_fsave()
447 i387_collect_fsave (const struct regcache *regcache, int regnum, void *fsave) in i387_collect_fsave() argument
469 regcache_raw_collect (regcache, i, buf); in i387_collect_fsave()
481 regcache_raw_collect (regcache, i, FSAVE_ADDR (regs, i)); in i387_collect_fsave()
[all …]
H A Dremote-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()
H A Dsparcnbsd-nat.c37 sparc32nbsd_supply_pcb (struct regcache *regcache, struct pcb *pcb) in sparc32nbsd_supply_pcb() argument
49 regcache_raw_supply (regcache, SPARC_SP_REGNUM, &pcb->pcb_sp); in sparc32nbsd_supply_pcb()
50 regcache_raw_supply (regcache, SPARC_O7_REGNUM, &pcb->pcb_pc); in sparc32nbsd_supply_pcb()
51 regcache_raw_supply (regcache, SPARC32_PSR_REGNUM, &pcb->pcb_psr); in sparc32nbsd_supply_pcb()
52 regcache_raw_supply (regcache, SPARC32_WIM_REGNUM, &pcb->pcb_wim); in sparc32nbsd_supply_pcb()
53 regcache_raw_supply (regcache, SPARC32_PC_REGNUM, &pcb->pcb_pc); in sparc32nbsd_supply_pcb()
55 sparc_supply_rwindow (regcache, pcb->pcb_sp, -1); in sparc32nbsd_supply_pcb()
H A Dsparc-nat.c88 struct regcache *, int , const void *);
90 const struct regcache *, int, void *);
91 void (*sparc_supply_fpregset) (struct regcache *, int , const void *);
92 void (*sparc_collect_fpregset) (const struct regcache *, int , void *);
140 struct regcache *regcache = current_regcache; in fetch_inferior_registers() local
162 regcache_raw_supply (regcache, SPARC_G0_REGNUM, NULL); in fetch_inferior_registers()
173 sparc_supply_gregset (sparc_gregset, regcache, -1, &regs); in fetch_inferior_registers()
185 sparc_supply_fpregset (regcache, -1, &fpregs); in fetch_inferior_registers()
192 struct regcache *regcache = current_regcache; in store_inferior_registers() local
208 sparc_collect_gregset (sparc_gregset, regcache, regnum, &regs); in store_inferior_registers()
[all …]
H A Dsparc64-tdep.h27 struct regcache;
103 struct regcache *regcache,
106 const struct regcache *regcache,
108 extern void sparc64_supply_fpregset (struct regcache *regcache,
110 extern void sparc64_collect_fpregset (const struct regcache *regcache,
H A Di386obsd-nat.c42 i386obsd_supply_pcb (struct regcache *regcache, struct pcb *pcb) in i386obsd_supply_pcb() argument
74 regcache_raw_supply (regcache, I386_EDI_REGNUM, &sf.sf_edi); in i386obsd_supply_pcb()
75 regcache_raw_supply (regcache, I386_ESI_REGNUM, &sf.sf_esi); in i386obsd_supply_pcb()
76 regcache_raw_supply (regcache, I386_EBX_REGNUM, &sf.sf_ebx); in i386obsd_supply_pcb()
77 regcache_raw_supply (regcache, I386_EIP_REGNUM, &sf.sf_eip); in i386obsd_supply_pcb()
85 regcache_raw_supply (regcache, I386_EIP_REGNUM, &sf.sf_eip); in i386obsd_supply_pcb()
88 regcache_raw_supply (regcache, I386_EBP_REGNUM, &pcb->pcb_ebp); in i386obsd_supply_pcb()
89 regcache_raw_supply (regcache, I386_ESP_REGNUM, &pcb->pcb_esp); in i386obsd_supply_pcb()
/openbsd-src/gnu/usr.bin/binutils/gdb/gdbserver/
H A Dregcache.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 …]

12345