This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
RE: [PATCH] aarch64/gdbserver: fix floating point registers display
- From: "catalin dot udma at freescale dot com" <catalin dot udma at freescale dot com>
- To: Philippe Waroquiers <philippe dot waroquiers at skynet dot be>, Yao Qi <yao at codesourcery dot com>
- Cc: Richard Earnshaw <rearnsha at arm dot com>, "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Wed, 13 Aug 2014 12:43:12 +0000
- Subject: RE: [PATCH] aarch64/gdbserver: fix floating point registers display
- Authentication-results: sourceware.org; auth=none
- References: <1407835166-827-1-git-send-email-catalin dot udma at freescale dot com> <53E9E1C2 dot 6010707 at arm dot com> <53E9EB9A dot 7000304 at codesourcery dot com> <1407932734 dot 2182 dot 67 dot camel at soleil>
Hi, all,
I'll add some details, just to have a better view about the cpsr size changes:
- CPSR register size was initially 32 bits (features/aarch64-core.xml), but the
register size has been changed in commit a4d9ba85e (2013-12-18):
features/aarch64-core.xml (cpsr): Changed to be 64 bits
- When Changing .xml file, there should be regenerated accordingly aarch64.c and
regformats/aarch64.dat, to match the new size definition in the XML file.
- features/aarch64.c has been regenerated in the above mentioned commit, while the
file regformats/aarch64.dat wasn't regenerated, thus using the previous cpsr size of 32 bits
The regformats/aarch64.dat update in my commit fixes the de-synchronization problem
where gdb is seeing the cpsr size 64-bits while gdbserver 32-bits.
Regards,
Catalin
> -----Original Message-----
> From: Philippe Waroquiers [mailto:philippe.waroquiers@skynet.be]
> Sent: Wednesday, August 13, 2014 3:26 PM
> To: Yao Qi
> Cc: Richard Earnshaw; Udma Catalin-Dan-B32721; gdb-patches@sourceware.org
> Subject: Re: [PATCH] aarch64/gdbserver: fix floating point registers
> display
>
> On Tue, 2014-08-12 at 18:25 +0800, Yao Qi wrote:
> > On 08/12/2014 05:43 PM, Richard Earnshaw wrote:
> > > This doesn't seem right to me. The CPSR is a 32-bit register, not a
> > > 64-bit one.
> >
> > cpsr is 64-bit in the target description, see
> > gdb/features/aarch64-core.xml,
> >
> > <reg name="cpsr" bitsize="64"/>
> >
> > We need to fix it.
> The 'it' in 'fix it' is ambiguous to me.
> Does the 'it' mean:
> fix aarch64-core.xml to change cpsr to 32 bits ?
> or does that confirm the initial proposal i.e.
> fix e.g. aarch64.dat to change cpsr to 64 bits ?
>
> Philippe
> (following the discussion, to update Valgrind aarch64 gdbserver
> accordingly)