qemu + gdb , CR0

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
mcheung63
Member
Member
Posts: 175
Joined: Thu Jun 22, 2006 8:33 am
Location: Hong Kong
Contact:

qemu + gdb , CR0

Post 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])
User avatar
bluemoon
Member
Member
Posts: 1761
Joined: Wed Dec 01, 2010 3:41 am
Location: Hong Kong

Re: qemu + gdb , CR0

Post 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.
mich
Posts: 18
Joined: Sun Nov 11, 2012 5:36 pm

Re: qemu + gdb , CR0

Post 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.
User avatar
mcheung63
Member
Member
Posts: 175
Joined: Thu Jun 22, 2006 8:33 am
Location: Hong Kong
Contact:

Re: qemu + gdb , CR0

Post by mcheung63 »

thanks mich
Post Reply