Skip to contentSkip to conversation

debug register implementation of x86?

Qemu-devel shizheng 2 participants 2 messages Aug 7, 2007

lore
Share & tools
lore

shizheng

author
#0 lore raw

Hi,all:

I think memory access monitoring is useful in debugging a target running in qemu. There are two ways to do this(or even more):

1.x86 specific. add debug register emulation in qemu. 2.hardware independent. such as adding a command in qemu monitor.

I would like to know if anybody has already done this? Or is there any problem that prevents from doing so?

best wishes, shizheng

#1 lore raw
Quoted 10 lines · shizheng

Hi,all:

I think memory access monitoring is useful in debugging a target running in qemu. There are two ways to do this(or even more):

1.x86 specific. add debug register emulation in qemu. 2.hardware independent. such as adding a command in qemu monitor.

I would like to know if anybody has already done this? Or is there any problem that prevents from doing so?

It is already implemented in the GDB stub of Qemu. Just add a watchpoint with a GDB connected to QEMU.

Signature · 1 line
Vincent