/openbsd/gnu/usr.bin/binutils/gdb/ |
H A D | regcache.h | 26 struct regcache; 31 void regcache_xfree (struct regcache *regcache); 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, 49 extern void regcache_raw_write_signed (struct regcache *regcache, 51 extern void regcache_raw_write_unsigned (struct regcache *regcache, 62 int regcache_valid_p (struct regcache *regcache, int regnum); 99 extern void regcache_raw_supply (struct regcache *regcache, 157 extern struct regcache *regcache_dup (struct regcache *regcache); [all …]
|
H A D | regcache.c | 182 struct regcache struct 203 struct regcache *regcache; in regcache_xmalloc() local 206 regcache = XMALLOC (struct regcache); in regcache_xmalloc() 217 regcache_xfree (struct regcache *regcache) in regcache_xfree() argument 233 make_cleanup_regcache_xfree (struct regcache *regcache) in make_cleanup_regcache_xfree() argument 241 get_regcache_arch (const struct regcache *regcache) in get_regcache_arch() argument 249 register_buffer (const struct regcache *regcache, int regnum) in register_buffer() argument 316 struct regcache *regcache = src; in do_cooked_read() local 328 regcache_cpy (struct regcache *dst, struct regcache *src) in regcache_cpy() 380 regcache_valid_p (struct regcache *regcache, int regnum) in regcache_valid_p() argument [all …]
|
H A D | hppabsd-nat.c | 50 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() 79 hppabsd_supply_fpregset (struct regcache *regcache, const void *fpregs) in hppabsd_supply_fpregset() argument 85 regcache_raw_supply (regcache, regnum, in hppabsd_supply_fpregset() 93 hppabsd_collect_gregset (const struct regcache *regcache, in hppabsd_collect_gregset() argument 102 regcache_raw_collect (regcache, i, regs + i * 4); in hppabsd_collect_gregset() 106 regcache_raw_collect (regcache, HPPA_IPSW_REGNUM, regs); in hppabsd_collect_gregset() 143 hppabsd_collect_fpregset (struct regcache *regcache, in hppabsd_collect_fpregset() argument 163 struct regcache *regcache = current_regcache; in hppabsd_fetch_registers() local [all …]
|
H A D | sparc64nbsd-nat.c | 36 struct regcache *regcache, in sparc64nbsd_supply_gregset() argument 49 const struct regcache *regcache, in sparc64nbsd_collect_gregset() argument 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 79 sparc32_collect_fpregset (regcache, regnum, fpregs); in sparc64nbsd_collect_fpregset() 81 sparc64_collect_fpregset (regcache, regnum, fpregs); in sparc64nbsd_collect_fpregset() 138 sparc64nbsd_supply_pcb (struct regcache *regcache, struct pcb *pcb) in sparc64nbsd_supply_pcb() argument 163 regcache_raw_supply (regcache, SPARC64_STATE_REGNUM, &state); in sparc64nbsd_supply_pcb() [all …]
|
H A D | sparc64-tdep.c | 332 struct regcache *regcache, in sparc64_pseudo_register_read() argument 391 struct regcache *regcache, in sparc64_pseudo_register_write() argument 637 sparc64_store_floating_fields (struct regcache *regcache, struct type *type, in sparc64_store_floating_fields() argument 758 sparc64_store_arguments (struct regcache *regcache, int nargs, in sparc64_store_arguments() argument 976 struct regcache *regcache, CORE_ADDR bp_addr, in sparc64_push_dummy_call() argument 1045 sparc64_store_return_value (struct type *type, struct regcache *regcache, in sparc64_store_return_value() argument 1088 struct regcache *regcache, void *readbuf, in sparc64_return_value() argument 1157 struct regcache *regcache, in sparc64_supply_gregset() argument 1271 const struct regcache *regcache, in sparc64_collect_gregset() argument 1378 sparc64_supply_fpregset (struct regcache *regcache, in sparc64_supply_fpregset() argument [all …]
|
H A D | hppabsd-tdep.c | 47 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() 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() 79 regcache_raw_supply (regcache, HPPA_SR2_REGNUM, regs + 39 * 4); in hppabsd_supply_gregset() 81 regcache_raw_supply (regcache, HPPA_SR3_REGNUM, regs + 40 * 4); in hppabsd_supply_gregset() 83 regcache_raw_supply (regcache, HPPA_SR4_REGNUM, regs + 41 * 4); in hppabsd_supply_gregset() 85 regcache_raw_supply (regcache, HPPA_SR5_REGNUM, regs + 42 * 4); in hppabsd_supply_gregset() [all …]
|
H A D | sparc64obsd-nat.c | 33 struct regcache *regcache, in sparc64obsd_supply_gregset() argument 41 const struct regcache *regcache, in sparc64obsd_collect_gregset() argument 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() 131 regcache_raw_supply (regcache, SPARC64_PC_REGNUM, &pcb->pcb_pc); in sparc64obsd_supply_pcb() 134 regcache_raw_supply (regcache, SPARC64_STATE_REGNUM, &state); in sparc64obsd_supply_pcb() [all …]
|
H A D | ppc-sysv-tdep.c | 48 struct regcache *regcache, CORE_ADDR bp_addr, in ppc_sysv_abi_push_dummy_call() argument 172 regcache_cooked_write (regcache, in ppc_sysv_abi_push_dummy_call() 273 regcache_cooked_write (regcache, in ppc_sysv_abi_push_dummy_call() 329 struct regcache *regcache, void *readbuf, in do_ppc_sysv_return_value() argument 519 struct regcache *regcache, void *readbuf, in ppc_sysv_abi_return_value() argument 529 struct regcache *regcache, in ppc_sysv_abi_broken_return_value() argument 545 struct regcache *regcache, CORE_ADDR bp_addr, in ppc64_sysv_abi_push_dummy_call() argument 851 struct regcache *regcache, void *readbuf, in ppc64_sysv_abi_return_value() argument 948 if (regcache != NULL) in ppc64_sysv_abi_return_value() 967 regcache_cooked_read (regcache, in ppc64_sysv_abi_return_value() [all …]
|
H A D | ppc64obsd-tdep.c | 48 ppc64_supply_reg (struct regcache *regcache, int regnum, in ppc64_supply_reg() argument 56 ppc64_collect_reg (const struct regcache *regcache, int regnum, in ppc64_collect_reg() argument 68 ppc64_supply_gregset (const struct regset *regset, struct regcache *regcache, in ppc64_supply_gregset() argument 82 ppc64_supply_reg (regcache, i, gregs, 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() 94 ppc64_supply_reg (regcache, tdep->ppc_lr_regnum, in ppc64_supply_gregset() 111 const struct regcache *regcache, in ppc64_collect_gregset() argument 126 ppc64_collect_reg (regcache, i, gregs, offset); in ppc64_collect_gregset() 156 struct regcache *regcache, int regnum, in ppc64obsd_supply_gregset() argument [all …]
|
H A D | ppc-tdep.h | 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, 128 const struct regcache *regcache, [all …]
|
H A D | m68kbsd-nat.c | 50 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 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() 212 regcache_raw_supply (regcache, M68K_PS_REGNUM, &tmp); in m68kbsd_supply_pcb() [all …]
|
H A D | vaxbsd-nat.c | 37 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 D | sparc-tdep.c | 315 struct regcache *regcache, in sparc32_pseudo_register_read() argument 327 struct regcache *regcache, in sparc32_pseudo_register_write() argument 362 sparc32_store_arguments (struct regcache *regcache, int nargs, in sparc32_store_arguments() argument 456 struct regcache *regcache, CORE_ADDR bp_addr, in sparc32_push_dummy_call() argument 898 struct regcache *regcache, void *readbuf, in sparc32_return_value() argument 930 sparc32_extract_struct_value_address (struct regcache *regcache) 1285 sparc_collect_rwindow (const struct regcache *regcache, in sparc_collect_rwindow() argument 1352 struct regcache *regcache, in sparc32_supply_gregset() argument 1416 const struct regcache *regcache, in sparc32_collect_gregset() argument 1470 sparc32_supply_fpregset (struct regcache *regcache, in sparc32_supply_fpregset() argument [all …]
|
H A D | i387-tdep.h | 27 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 D | amd64obsd-nat.c | 72 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 D | sparc-tdep.h | 27 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 D | amd64fbsd-nat.c | 104 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() 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() 129 regcache_raw_supply (regcache, AMD64_ES_REGNUM, &pcb->pcb_es); in amd64fbsd_supply_pcb() 130 regcache_raw_supply (regcache, AMD64_FS_REGNUM, &pcb->pcb_fs); in amd64fbsd_supply_pcb() [all …]
|
H A D | i386nbsd-nat.c | 39 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 D | remote-vxsparc.c | 62 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 D | i387-tdep.c | 385 i387_supply_fsave (struct regcache *regcache, int regnum, const void *fsave) in i387_supply_fsave() argument 404 regcache_raw_supply (regcache, i, NULL); in i387_supply_fsave() 419 regcache_raw_supply (regcache, i, val); 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() 556 i387_supply_fxsave (struct regcache *regcache, int regnum, const void *fxsave) in i387_supply_fxsave() argument 576 regcache_raw_supply (regcache, i, NULL); in i387_supply_fxsave() 621 regcache_raw_supply (regcache, i, val); in i387_supply_fxsave() 646 i387_collect_fxsave (const struct regcache *regcache, int regnum, void *fxsave) in i387_collect_fxsave() argument 671 regcache_raw_collect (regcache, i, buf); in i387_collect_fxsave() [all …]
|
H A D | sparcnbsd-nat.c | 37 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 D | sparc-nat.c | 88 struct regcache *, int , const void *); 90 const struct regcache *, int, void *); 91 void (*sparc_supply_fpregset) (struct regcache *, int , const 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, ®s); 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 219 regcache_cooked_read_unsigned (regcache, SPARC_SP_REGNUM, &sp); in store_inferior_registers() 220 sparc_collect_rwindow (regcache, sp, regnum); in store_inferior_registers() [all …]
|
H A D | sparc64-tdep.h | 27 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 D | i386obsd-nat.c | 42 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/gnu/usr.bin/binutils/gdb/gdbserver/ |
H A D | regcache.c | 52 if (regcache == NULL) in get_regcache() 59 regcache->registers_valid = 1; in get_regcache() 62 return regcache; in get_regcache() 73 if (regcache->registers_valid) in regcache_invalidate_one() 82 regcache->registers_valid = 0; in regcache_invalidate_one() 102 regcache = malloc (sizeof (*regcache)); in new_register_cache() 108 if (regcache->registers == NULL) in new_register_cache() 111 regcache->registers_valid = 0; in new_register_cache() 113 return regcache; in new_register_cache() 122 free (regcache->registers); in free_register_cache() [all …]
|