This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [patch/rfc] Don't include vector registers in ``info registers''
- From: Michael Snyder <msnyder at redhat dot com>
- To: Daniel Jacobowitz <drow at mvista dot com>
- Cc: Andrew Cagney <ac131313 at ges dot redhat dot com>, gdb-patches at sources dot redhat dot com
- Date: Thu, 08 Aug 2002 18:26:49 -0700
- Subject: Re: [patch/rfc] Don't include vector registers in ``info registers''
- Organization: Red Hat, Inc.
- References: <3D53041D.90609@ges.redhat.com> <20020809013343.GA5331@nevyn.them.org>
Daniel Jacobowitz wrote:
>
> On Thu, Aug 08, 2002 at 07:51:57PM -0400, 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.
> >
> > 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?
>
> My only comment is that I would also like ``info registers'' not to
> print kernel-mode or processor status registers, since that seems (to
> me) to be appropriate; it should print registers for stack/pc and
> computation primarily, not things like the MSR.
>
> Might be harder to do generically though.
That would mean that in order to see things like the status and
control registers, you would have to do info all-reg, which would
then spit out all your FP and VEC registers too. Folks who need
the in-between registers might not like that.