This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: floating point registers in 'info reg'
- To: jtc at redback dot com
- Subject: Re: floating point registers in 'info reg'
- From: Fernando Nasser <fnasser at redhat dot com>
- Date: Tue, 09 Jan 2001 18:10:20 -0500
- CC: gdb at sourceware dot cygnus dot com
- Organization: Red Hat Canada
- References: <5mn1d0tkdp.fsf@jtc.redback.com>
"J.T. Conklin" wrote:
>
> While just a nit, this has been bothering me for some time.
>
> The 'info reg' command is supposed to output only non-fpu registers,
> but it uses the following expression to determine whether a register
> is floating point:
>
> TYPE_CODE (REGISTER_VIRTUAL_TYPE (i)) == TYPE_CODE_FLT
>
> which means that FPU control and status registers are output. Is
> there a better way to determine which registers are FP and which are
> not?
>
Well, the problem is that FPU control and status registers should not
have TYPE_CODE_FLT as virtual type. The data FPU registers are,
but not the control ones.
Maybe you can just fix your architecture's REGISTER_VIRTUAL_TYPE
function
(or macro if it is an old one).
--
Fernando Nasser
Red Hat Canada Ltd. E-Mail: fnasser@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario M4P 2C9