This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Re: RFC: Patch to arm-tdep.c -- Register flavors
- To: rearnsha at arm dot com
- Subject: Re: RFC: Patch to arm-tdep.c -- Register flavors
- From: Scott Bambrough <scottb at netwinder dot org>
- Date: Wed, 16 Feb 2000 10:30:25 -0500
- CC: Nick Clifton <nickc at cygnus dot com>, "fnasser at cygnus dot com" <fnasser at cygnus dot com>, GDB Patches Mail List <gdb-patches at sourceware dot cygnus dot com>
- Organization: Rebel.com
- References: <200002161516.PAA12004@cam-mail2.cambridge.arm.com>
Richard Earnshaw wrote:
>
> On the other hand, coming from a RISC iX/NetBSD background I've never used
> the A{T}PCS names, and I object to having them imposed on me by default
> (mainly because it means that the names keep changing). I don't mind
> having an option to change them but I do think that a particular flavour
> of the ARM debugger should be able to select which default we see.
I'm in agreement here. I don't object to the ATPCS names being used, but I
would like to set them as default in the Linux port.
> Further, why have several of the register names recently been made upper
> case? They never used to be.
This seems to be a convention adopted in the ATPCS docs. See section 4.1.
> And finally, the ps register name is wrong, especially in the A{T}PCS area
> but also more generally; the name is "cpsr" in all ARM documentation (the
> "ps" name comes from when the processor flags weren't really a separate
> register -- they were in the unused parts of r15 -- so there was no name).
Richard is correct here, in arm-linux-nat.c, I initialize the PS register with
the contents of CPSR if arm_apcs_32 is set, or with the contents of the PC if
not. Perhaps we should set the register name based on this information as well.
Scott
--
Scott Bambrough - Software Engineer
REBEL.COM http://www.rebel.com
NetWinder http://www.netwinder.org