Page 1 of 1

qemu + gdb , CR0

Posted: Wed Nov 14, 2012 4:07 am
by mcheung63
Dear All
i am using qemu with gdb, but i can dump out the CR0 and CR2 register from command "info all registers", please help?
thanks
from Peter ([email protected])

Re: qemu + gdb , CR0

Posted: Wed Nov 14, 2012 4:20 am
by bluemoon
there is no way to show cr0 directly with qemu+gdb, you may workaround by mov the values to regular registers.
On the other hand, you can check all registers with bochs.

Re: qemu + gdb , CR0

Posted: Wed Nov 14, 2012 4:28 am
by mich
bluemoon wrote:there is no way to show cr0 directly with qemu+gdb, you may workaround by mov the values to regular registers.
On the other hand, you can check all registers with bochs.
You can also use the Monitor Console in QEMU via Ctrl+Alt+2 then type info registers there.

Re: qemu + gdb , CR0

Posted: Wed Nov 14, 2012 4:47 am
by mcheung63
thanks mich