The info cpu output is far too
long and scrolls away. You usually
only want to know the general purpose
eax ... esp registers and eip and segs,
but having them all on a line on their
own and followed by ldtr, idtr, dr0-3,
dr6-7, tr3-7, cr0-4 and inhibit_mask
means that eax is about 40 lines above
the "done" after the dump, so it will
have scrolled away on most terminals.
Suggested solution: Show up to 5 32bit
registers per line, like:
eax:0x200 ebx:0x70 ecx:0x4ae edx:0x78004ae
ebp:0xa40 esi:0xa4a edi:0x1 esp:0xa3a
eflags:0x7202 eip:0x2004 inhibit_mask: 0
cs:s=0x58d, dl=0x58d0ffff, dh=0x9b00, valid=1
ss:s=0xcf, dl=0xcf0ffff, dh=0x9300, valid=7
ds:s=0xcf, dl=0xcf0ffff, dh=0x9300, valid=3
es:s=0x22fe, dl=0x2fe0ffff, dh=0x9302, valid=1
fs:s=0x0, dl=0xffff, dh=0x9300, valid=1
gs:s=0x0, dl=0xffff, dh=0x9300, valid=1
ldtr:s=0x0, dl=0x0, dh=0x0, valid=0
tr:s=0x0, dl=0x0, dh=0x0, valid=0
gdtr:base=0x0, limit=0xffff idtr:base=0x0, limit=0xffff
dr0:0x0 dr1:0x0 dr2:0x0 dr3:0x0
dr6:0xffff0ff0 dr7:0x400
tr3:0x0 tr4:0x0 tr5:0x0 tr6:0x0 tr7:0x0
cr0:0x10 cr1:0x0 cr2:0x0 cr3:0x0 cr4:0x0
If you know of existing software which parses
the info cpu output in some way, make the compact
(well, still 16 lines) display mode an option
which can be selected through the debugger terminal
user interface.
Eric
PS: I found that you can outs "Shutdown" to a
port to "power off" Bochs, and out a certain
byte to halt it (as if you press Ctrl-C to activate
the debugger), that is useful / should be documented.
Logged In: YES
user_id=487634
I put in 17 lines and have no idea how to make shorter.
For x86-64 it will come bigger back but for now you could
enjoy !
BTW, if you need just to see GPR - use info registers.
It is short ;)
Stanislav