Skip to contentSkip to conversation

Make QEMU more friendly for kernel debug

Qemu-devel prime 2 participants 3 messages Feb 24, 2006 – Feb 25, 2006

lore
Share & tools
lore

prime

author
#0 lore raw

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
#1 lore raw

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

author
#2 lore raw
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