From: Jeff D. <jd...@ka...> - 2000-09-25 21:50:08
|
I decided to go on a breakpoint-fixing binge. First, I went after the kernel debugger breakpoint problem. That turned out to be because do_syscall was accidentally storing the process state in the thread structure when it shouldn't. With that fixed, the kernel debugger now seems to work OK, except that I still can't step across a context switch. But everything else seems to work fine. Then, I looked at why gdb panics the kernel whenever a debuggee hits a breakpoint. That turned out to be because SIGTRAP wasn't delivered to the debuggee when it hit the breakpoint, PTRACE_SINGLESTEP wasn't implemented, which upset gdb, and one or two smaller things. With those fixed, gdb seems to run ok in a virtual machine. There is a somewhat more complete description of what I did on my diary page: http://user-mode-linux.sourceforge.net/diary.html An even more complete description is available from CVS and from the patch manager. Jeff |