signal handler support gdb stepi command

This commit is contained in:
Tomoki Shirasawa
2016-02-21 14:55:34 +09:00
parent 2c50b716fd
commit e2b28da32f
3 changed files with 28 additions and 0 deletions

View File

@@ -893,6 +893,7 @@ void debug_handler(struct x86_user_context *regs)
struct siginfo info;
set_cputime(interrupt_from_user(regs)? 1: 2);
kprintf("debug_handler rip=%lx\n", regs->gpr.rip);
#ifdef DEBUG_PRINT_CPU
kprintf("debug exception (err: %lx, %lx:%lx)\n",
regs->gpr.error, regs->gpr.cs, regs->gpr.rip);
@@ -920,6 +921,7 @@ void int3_handler(struct x86_user_context *regs)
struct siginfo info;
set_cputime(interrupt_from_user(regs)? 1: 2);
kprintf("int3_handler rip=%lx\n", regs->gpr.rip);
#ifdef DEBUG_PRINT_CPU
kprintf("int3 exception (err: %lx, %lx:%lx)\n",
regs->gpr.error, regs->gpr.cs, regs->gpr.rip);