support PTRACE_SINGLESTEP.

support debug/int3 exception.
This commit is contained in:
Susumu Komae
2015-01-29 15:48:05 +09:00
committed by postpeta
parent f97f8dbab3
commit bd5f43b119
5 changed files with 95 additions and 3 deletions

View File

@@ -384,6 +384,11 @@ void clear_single_step(struct process *proc)
proc->uctx->rflags &= ~RFLAGS_TF;
}
void set_single_step(struct process *proc)
{
proc->uctx->rflags |= RFLAGS_TF;
}
extern void coredump(struct process *proc, void *regs);
static void ptrace_report_signal(struct process *proc, struct x86_regs *regs, int sig)