/linux-master/arch/sparc/kernel/ |
H A D | kgdb_32.c | 19 void pt_regs_to_gdb_regs(unsigned long *gdb_regs, struct pt_regs *regs) argument 24 gdb_regs[GDB_G0] = 0; 26 gdb_regs[GDB_G1 + i] = regs->u_regs[UREG_G1 + i]; 30 gdb_regs[GDB_L0 + i] = win->locals[i]; 32 gdb_regs[GDB_I0 + i] = win->ins[i]; 35 gdb_regs[i] = 0; 37 gdb_regs[GDB_Y] = regs->y; 38 gdb_regs[GDB_PSR] = regs->psr; 39 gdb_regs[GDB_WIM] = 0; 40 gdb_regs[GDB_TB 47 sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, struct task_struct *p) argument 82 gdb_regs_to_pt_regs(unsigned long *gdb_regs, struct pt_regs *regs) argument [all...] |
H A D | kgdb_64.c | 19 void pt_regs_to_gdb_regs(unsigned long *gdb_regs, struct pt_regs *regs) argument 24 gdb_regs[GDB_G0] = 0; 26 gdb_regs[GDB_G1 + i] = regs->u_regs[UREG_G1 + i]; 30 gdb_regs[GDB_L0 + i] = win->locals[i]; 32 gdb_regs[GDB_I0 + i] = win->ins[i]; 35 gdb_regs[i] = 0; 37 gdb_regs[GDB_PC] = regs->tpc; 38 gdb_regs[GDB_NPC] = regs->tnpc; 39 gdb_regs[GDB_STATE] = regs->tstate; 40 gdb_regs[GDB_FS 45 sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, struct task_struct *p) argument 88 gdb_regs_to_pt_regs(unsigned long *gdb_regs, struct pt_regs *regs) argument [all...] |
/linux-master/arch/arc/kernel/ |
H A D | kgdb.c | 14 static void to_gdb_regs(unsigned long *gdb_regs, struct pt_regs *kernel_regs, argument 20 gdb_regs[_R0 + regno] = get_reg(regno, kernel_regs, cregs); 23 gdb_regs[regno] = 0; 25 gdb_regs[_FP] = kernel_regs->fp; 26 gdb_regs[__SP] = kernel_regs->sp; 27 gdb_regs[_BLINK] = kernel_regs->blink; 28 gdb_regs[_RET] = kernel_regs->ret; 29 gdb_regs[_STATUS32] = kernel_regs->status32; 30 gdb_regs[_LP_COUNT] = kernel_regs->lp_count; 31 gdb_regs[_LP_EN 37 from_gdb_regs(unsigned long *gdb_regs, struct pt_regs *kernel_regs, struct callee_regs *cregs) argument 57 pt_regs_to_gdb_regs(unsigned long *gdb_regs, struct pt_regs *kernel_regs) argument 63 gdb_regs_to_pt_regs(unsigned long *gdb_regs, struct pt_regs *kernel_regs) argument 69 sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, struct task_struct *task) argument [all...] |
/linux-master/arch/microblaze/kernel/ |
H A D | kgdb.c | 37 void pt_regs_to_gdb_regs(unsigned long *gdb_regs, struct pt_regs *regs) argument 45 gdb_regs[i] = pt_regb[i]; 49 gdb_regs[GDB_BTR] = temp; 53 gdb_regs[GDB_PVR + i] = pvr.pvr[i]; 57 gdb_regs[GDB_REDR] = temp; 59 gdb_regs[GDB_RPID] = temp; 61 gdb_regs[GDB_RZPR] = temp; 63 gdb_regs[GDB_RTLBX] = temp; 65 gdb_regs[GDB_RTLBLO] = temp; 67 gdb_regs[GDB_RTLBH 70 gdb_regs_to_pt_regs(unsigned long *gdb_regs, struct pt_regs *regs) argument 94 sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, struct task_struct *p) argument [all...] |
/linux-master/arch/arm64/kernel/ |
H A D | kgdb.c | 129 sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, struct task_struct *task) argument 134 memset((char *)gdb_regs, 0, NUMREGBYTES); 136 gdb_regs[19] = cpu_context->x19; 137 gdb_regs[20] = cpu_context->x20; 138 gdb_regs[21] = cpu_context->x21; 139 gdb_regs[22] = cpu_context->x22; 140 gdb_regs[23] = cpu_context->x23; 141 gdb_regs[24] = cpu_context->x24; 142 gdb_regs[25] = cpu_context->x25; 143 gdb_regs[2 [all...] |
/linux-master/arch/arm/kernel/ |
H A D | kgdb.c | 76 sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, struct task_struct *task) argument 87 gdb_regs[regno] = 0; 91 gdb_regs[_R4] = ti->cpu_context.r4; 92 gdb_regs[_R5] = ti->cpu_context.r5; 93 gdb_regs[_R6] = ti->cpu_context.r6; 94 gdb_regs[_R7] = ti->cpu_context.r7; 95 gdb_regs[_R8] = ti->cpu_context.r8; 96 gdb_regs[_R9] = ti->cpu_context.r9; 97 gdb_regs[_R10] = ti->cpu_context.sl; 98 gdb_regs[_F [all...] |
/linux-master/arch/x86/kernel/ |
H A D | kgdb.c | 132 * @gdb_regs: A pointer to hold the registers in the order GDB wants. 139 * @gdb_regs with what has been saved in &struct thread_struct 142 void sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, struct task_struct *p) argument 145 u32 *gdb_regs32 = (u32 *)gdb_regs; 147 gdb_regs[GDB_AX] = 0; 148 gdb_regs[GDB_BX] = 0; 149 gdb_regs[GDB_CX] = 0; 150 gdb_regs[GDB_DX] = 0; 151 gdb_regs[GDB_SI] = 0; 152 gdb_regs[GDB_D [all...] |
/linux-master/arch/riscv/kernel/ |
H A D | kgdb.c | 232 sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, struct task_struct *task) argument 235 memset((char *)gdb_regs, 0, NUMREGBYTES); 237 gdb_regs[DBG_REG_SP_OFF] = task->thread.sp; 238 gdb_regs[DBG_REG_FP_OFF] = task->thread.s[0]; 239 gdb_regs[DBG_REG_S1_OFF] = task->thread.s[1]; 240 gdb_regs[DBG_REG_S2_OFF] = task->thread.s[2]; 241 gdb_regs[DBG_REG_S3_OFF] = task->thread.s[3]; 242 gdb_regs[DBG_REG_S4_OFF] = task->thread.s[4]; 243 gdb_regs[DBG_REG_S5_OFF] = task->thread.s[5]; 244 gdb_regs[DBG_REG_S6_OF [all...] |
/linux-master/kernel/debug/ |
H A D | gdbstub.c | 48 static unsigned long gdb_regs[(NUMREGBYTES + variable 339 void pt_regs_to_gdb_regs(unsigned long *gdb_regs, struct pt_regs *regs) argument 343 char *ptr = (char *)gdb_regs; 351 void gdb_regs_to_pt_regs(unsigned long *gdb_regs, struct pt_regs *regs) argument 355 char *ptr = (char *)gdb_regs; 521 pt_regs_to_gdb_regs(gdb_regs, local_debuggerinfo); 530 sleeping_thread_to_gdb_regs(gdb_regs, thread); 538 kgdb_mem2hex((char *)gdb_regs, remcom_out_buffer, NUMREGBYTES); 544 kgdb_hex2mem(&remcom_in_buffer[1], (char *)gdb_regs, NUMREGBYTES); 549 gdb_regs_to_pt_regs(gdb_regs, k [all...] |
/linux-master/arch/nios2/kernel/ |
H A D | kgdb.c | 97 void sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, struct task_struct *p) argument 99 memset((char *)gdb_regs, 0, NUMREGBYTES); 100 gdb_regs[GDB_SP] = p->thread.kregs->sp; 101 gdb_regs[GDB_PC] = p->thread.kregs->ea;
|
/linux-master/arch/parisc/kernel/ |
H A D | kgdb.c | 63 void pt_regs_to_gdb_regs(unsigned long *gdb_regs, struct pt_regs *regs) argument 65 struct parisc_gdb_regs *gr = (struct parisc_gdb_regs *)gdb_regs; 95 void gdb_regs_to_pt_regs(unsigned long *gdb_regs, struct pt_regs *regs) argument 97 struct parisc_gdb_regs *gr = (struct parisc_gdb_regs *)gdb_regs; 126 void sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, argument 137 pt_regs_to_gdb_regs(gdb_regs, regs);
|
/linux-master/arch/loongarch/kernel/ |
H A D | kgdb.c | 196 void sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, struct task_struct *p) argument 199 memset((char *)gdb_regs, 0, NUMREGBYTES); 201 gdb_regs[DBG_LOONGARCH_RA] = p->thread.reg01; 202 gdb_regs[DBG_LOONGARCH_TP] = (long)p; 203 gdb_regs[DBG_LOONGARCH_SP] = p->thread.reg03; 206 gdb_regs[DBG_LOONGARCH_S0] = p->thread.reg23; 207 gdb_regs[DBG_LOONGARCH_S1] = p->thread.reg24; 208 gdb_regs[DBG_LOONGARCH_S2] = p->thread.reg25; 209 gdb_regs[DBG_LOONGARCH_S3] = p->thread.reg26; 210 gdb_regs[DBG_LOONGARCH_S [all...] |
/linux-master/arch/sh/kernel/ |
H A D | kgdb.c | 223 void sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, struct task_struct *p) argument 230 gdb_regs[reg] = 0; 240 gdb_regs[reg] = thread_regs->regs[reg]; 242 gdb_regs[GDB_R15] = p->thread.sp; 243 gdb_regs[GDB_PC] = p->thread.pc; 248 gdb_regs[GDB_PR] = thread_regs->pr; 249 gdb_regs[GDB_GBR] = thread_regs->gbr;
|
/linux-master/include/linux/ |
H A D | kgdb.h | 125 * @gdb_regs: A pointer to hold the registers in the order GDB wants. 129 * GDB expects, stored in @gdb_regs. 131 extern void pt_regs_to_gdb_regs(unsigned long *gdb_regs, struct pt_regs *regs); 135 * @gdb_regs: A pointer to hold the registers in the order GDB wants. 142 * @gdb_regs with what has been saved in &struct thread_struct 146 sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, struct task_struct *p); 150 * @gdb_regs: A pointer to hold the registers we've received from GDB. 153 * Convert the GDB regs in @gdb_regs into the pt_regs, and store them 156 extern void gdb_regs_to_pt_regs(unsigned long *gdb_regs, struct pt_regs *regs);
|
/linux-master/arch/hexagon/kernel/ |
H A D | kgdb.c | 107 void sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, argument 116 memset(gdb_regs, 0, NUMREGBYTES); 120 gdb_regs[0] = thread_regs->r00;
|
/linux-master/arch/mips/kernel/ |
H A D | kgdb.c | 225 void sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, struct task_struct *p) argument 229 u32 *ptr = (u32 *)gdb_regs; 231 u64 *ptr = (u64 *)gdb_regs;
|
/linux-master/arch/powerpc/kernel/ |
H A D | kgdb.c | 191 void sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, struct task_struct *p) argument 195 unsigned long *ptr = gdb_regs; 198 memset(gdb_regs, 0, NUMREGBYTES); 231 (unsigned long)(((void *)gdb_regs) + NUMREGBYTES));
|