This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
Re: tdep/1276: Accessing ARM FP registers cause gdb-internal-error
- From: Andrew Cagney <ac131313 at redhat dot com>
- To: nobody at sources dot redhat dot com
- Cc: gdb-prs at sources dot redhat dot com,
- Date: 9 Jul 2003 19:48:01 -0000
- Subject: Re: tdep/1276: Accessing ARM FP registers cause gdb-internal-error
- Reply-to: Andrew Cagney <ac131313 at redhat dot com>
The following reply was made to PR tdep/1276; it has been noted by GNATS.
From: Andrew Cagney <ac131313@redhat.com>
To: jifl@ecoscentric.com
Cc: gdb-gnats@sources.redhat.com
Subject: Re: tdep/1276: Accessing ARM FP registers cause gdb-internal-error
Date: Wed, 09 Jul 2003 15:45:51 -0400
> It appears that the ARM target "just" needs something to define REGISTER_CONVERTIBLE and REGISTER_CONVERT_TO_VIRTUAL, but I don't know for sure if that's the correct approach. Perhaps findvar.c:value_of_register() should do the same as infcmd.c:default_print_registers_info() which does a:
> if (REGISTER_CONVERTIBLE (i))
> {
> REGISTER_CONVERT_TO_VIRTUAL (i, REGISTER_VIRTUAL_TYPE (i),
> raw_buffer, virtual_buffer);
> }
> else
> {
> memcpy (virtual_buffer, raw_buffer,
> REGISTER_VIRTUAL_SIZE (i));
> }
> instead of the gdb-internal-error.
No. Register convertible has been deprecated. So have register
raw/virtual size.
I suspect the 12 byte virtual register value can simply be tossed.
Instead the FP's size matches its type - 8 bytes.
Andrew