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: Andrew Cagney <ac131313 at ges dot redhat dot com>
- To: Andrew Cagney <ac131313 at ges dot redhat dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Fri, 09 Aug 2002 14:39:03 -0400
- Subject: Re: [patch/rfc] Don't include vector registers in ``info registers''
- References: <3D53041D.90609@ges.redhat.com> <3D5307C9.2010003@ges.redhat.com>
Not my day.
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.
I figured out why it wasn't already affecting the i386. That's been
converted to the new vec128i already and the test is out-of-date :-(
+ if (!print_all)
+ {
+ if (TYPE_CODE (REGISTER_VIRTUAL_TYPE (i)) == TYPE_CODE_FLT)
+ continue;
+ if (TYPE_VECTOR (REGISTER_VIRTUAL_TYPE (i)))
+ continue;
+ }
This would need to read something like:
if (TYPE_CODE (REGISTER_VIRTUAL_TYPE (i)) == struct or union
&& first field's type was a vector)
continue;
What the heck, time for ``register_attribute()''.
Andrew