[patch/rfc?] Less ``info register''

Andrew Cagney ac131313@ges.redhat.com
Wed Aug 28 17:23:00 GMT 2002


Hello,

Following on from ElenaZ's patch, this modifies print_registers_info() 
so that it only prints both natural and hex forms of registers when the 
register is an int or float.

This means that any register, with a composite type, is printed in just hex.

For instance:

mxcsr          {mxcsr = 0x1f80, bits = {FZ = 0x0, RC = 0x0, PM = 0x1,
     UM = 0x1, OM = 0x1, ZM = 0x1, DM = 0x1, IM = 0x1, PE = 0x0, UE = 0x0,
     OE = 0x0, ZE = 0x0, DE = 0x0, IE = 0x0}}

Another variation would be to test for a register with a union, vector, 
or struct type.

Or just customize the mxcsr register display.

thoughts?
Andrew
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diffs
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20020828/a920cc20/attachment.ksh>


More information about the Gdb-patches mailing list