This is the mail archive of the gdb-prs@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: tdep/1276: Accessing ARM FP registers cause gdb-internal-error


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
 
 


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