Lines Matching refs:child
18 void user_disable_single_step(struct task_struct *child) in user_disable_single_step() argument
20 if ((long)child->thread.breakinfo.addr != -1L) { in user_disable_single_step()
21 *(child->thread.breakinfo.addr) = child->thread.breakinfo.inst; in user_disable_single_step()
22 child->thread.breakinfo.addr = (unsigned short *)-1L; in user_disable_single_step()
162 static unsigned short *decode(struct task_struct *child, in decode() argument
181 sp = (unsigned long *)h8300_get_reg(child, PT_USP); in decode()
193 addr = h8300_get_reg(child, PT_ER0); in decode()
195 addr = h8300_get_reg(child, regno-1 + PT_ER1); in decode()
198 if (inst == 0x55 || isbranch(child, inst & 0x0f)) in decode()
203 if (inst == 0x5c || isbranch(child, (*fetch_p & 0xf0) >> 4)) in decode()
212 static unsigned short *nextpc(struct task_struct *child, unsigned short *pc) in nextpc() argument
230 return decode(child, op, fetch_p, pc, inst); in nextpc()
239 void user_enable_single_step(struct task_struct *child) in user_enable_single_step() argument
243 next = nextpc(child, (unsigned short *)h8300_get_reg(child, PT_PC)); in user_enable_single_step()
244 child->thread.breakinfo.addr = next; in user_enable_single_step()
245 child->thread.breakinfo.inst = *next; in user_enable_single_step()