debug register implementation of x86?
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
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