This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: SH5 compact register numbering in gcc -> gdb interface
- From: Elena Zannoni <ezannoni at redhat dot com>
- To: joern dot rennecke at st dot com
- Cc: gcc at gcc dot gnu dot org, gdb at sources dot redhat dot com, aoliva at redhat dot com,ezannoni at redhat dot com, bje at redhat dot com, ac131313 at cygnus dot com
- Date: Wed, 1 May 2002 20:54:39 -0400
- Subject: Re: SH5 compact register numbering in gcc -> gdb interface
- References: <3CCED903.294513BE@st.com><3CCEEBC6.5959E2FD@st.com>
Joern Rennecke writes:
> > compact reg current # sh5 equiv proposed #
> > -----------+-----------+------------+------------------
> > T 242 R19 19
> > GBR 238 R16 16
>
> P.S.:
> SH[1-4] gcc and gdb currently disagree about the meaning of
> numbers 18 and 19.
> gcc gdb
> 17 t gbr
> 18 gbr vbr
>
This can be worked around in gdb with
STAB_REG_TO_REGNUM/DWARF2_REG_TO_REGNUM functions. Other targets do
this.
> This shouldn't really matter since these registers should
> not appear in debug information with the ABIs currently
> in use. It is confusing, however, that gcc pretends that
> this is part of the interface. I therefore propose to remove
> mappings for T and GDB from SH_DBX_REGISTER_NUMBER.
I am not sure I understand your last sentence. You want to remove T
from the mapping? It is not strictly necessary.
Elena
>
> --
> --------------------------
> SuperH
> 2430 Aztec West / Almondsbury / BRISTOL / BS32 4AQ
> T:+44 1454 462330