Make QEMU more friendly for kernel debug
Hello everyone,
I find that I can't single step OS kernels use qemu.When I use "step" or
"next" command in gdb,
the kernel always enter its interrupt route instead
of executing the next instruction after the breakpoint.So I modify QEMU's
source code to disable interrupts in single step mode,and now I can use
"step" or "next" command in gdb to single step
functions.
Should I post the patch? It is a very small modification.
--
Three passions, simple but overwhelmingly strong, have governed my life:
the longing for love, the search for knowledge, and unbearable pity for the suffering of mankind.
---------Bertrand Russell
Hi..
Quoted 4 lines
So I modify
QEMU's source code to disable interrupts in single step mode,and now I can use "step" or "next" command in gdb to single step
functions.
very interesting! Please post your patch on qemu-devel and preferably on qemu.dad-answers.com too. Personally, I'd be glad to review it.
regards
Mulyadi
Quoted 9 lines · Mulyadi Santosa
Hi..
Quoted 4 lines
So I modify
QEMU's source code to disable interrupts in single step mode,and now I can use "step" or "next" command in gdb to single step
functions.
Quoted 8 lines
very interesting! Please post your patch on qemu-devel and preferably on qemu.dad-answers.com too. Personally, I'd be glad to review it.
regards
Mulyadi
I have post the patch here.
http://qemu.dad-answers.com/viewtopic.php?t=921
regards
Mingyan Guo
--
Three passions, simple but overwhelmingly strong, have governed my life:
the longing for love, the search for knowledge, and unbearable pity for the suffering of mankind.
---------Bertrand Russell