This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch/rfc] Don't include vector registers in ``info registers''


Andrew Cagney wrote:
> 
> Hello,
> 
> The attached patch modifies the generic ``info registsters'' command so
> that it precludes vector registers (in addition to floating-point
> registers).  The online doco indicates:
> 
> (gdb) help info registers
> List of integer registers and their contents, for selected stack frame.
> Register name as argument means describe only that register.
> (gdb) help info all-registers
> List of all registers and their contents, for selected stack frame.
> Register name as argument means describe only that register.
> 
> I think the change makes the behavour a better match for both the
> documentation and what I think is the intent of the command.  Print a
> minimal set of registers.

This matches what I implemented for at least one vector machine.
And my intuition agrees with yours -- info registers should produce
a display that fits in one screen, if possible.  Masses of registers
should be displayed some other way.


> It will eventually affect the i386 -- I've a patch to change the type of
> xmm [and mmx] registers to true vectors.  When that is in, ``info
> registers'' will stop displaying the xmm registers.
> 
> Thoughts?

Not having seen your patch (?), I wonder how you distinguished
vector registers from generic ones.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]