Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Elena Zannoni <ezannoni@redhat.com>
To: Joern Rennecke <joern.rennecke@st.com>
Cc: ac131313@cygnus.com, binutils@sources.redhat.com,
	aoliva@redhat.com, ezannoni@redhat.com, gcc@gcc.gnu.org,
	gdb@sources.redhat.com, bje@redhat.com
Subject: Re: SH5 compact register numbering in gcc -> gdb interface -  include/elf/sh.h ?
Date: Thu, 09 May 2002 15:33:00 -0000	[thread overview]
Message-ID: <15578.63785.429521.553723@localhost.redhat.com> (raw)
In-Reply-To: <3CDAEDA4.3DE4A2D5@st.com>

Joern Rennecke writes:
 > To give gcc and gdb a common interface, it is best put into a header file that
 > but
 > gdb/sh-tdep and gcc/config/sh/sh.h (can) include.
 > 
 > I thought of putting it into include/elg/sh.h, since elf is now the predominant
 > object format for SH gcc.  Or should we start something like an include/dwarf
 > directory?
 > But then, it's not strictly dwarf either, since these register numbers are
 > also used for stabs debugging info (in the SH1..SH4 coff toolchain, or if
 > you ask specifically for stabs.)
 > 

I think include/gcc-sh64.h or include/gdb-sh64.h could be OK. Would match the
include/sim-sh64.h file.


 > --- ../include/elf/sh.h	Thu May  9 22:22:18 2002
 > *************** START_RELOC_NUMBERS (elf_sh_reloc_type)
 > *** 218,221 ****
 > --- 218,247 ----
 >     RELOC_NUMBER (R_SH_64_PCREL, 255)
 >   END_RELOC_NUMBERS (R_SH_max)
 >   
 > + enum
 > + {
 > +   SH_DEBUG_INFO_R0 = 0,
 > +   SH_DEBUG_INFO_PR = 17,
 > +   SH_DEBUG_INFO_GBR = 18,
 > +   SH_DEBUG_INFO_MACH_BIG = 20, SH_DEBUG_INFO_MACL, SH_DEBUG_INFO_MACH_LITTLE,

This will break gdb. Register 22 ir SR. What are these registers?
Doesn't SH have only mach and macl?

 > +   SH_DEBUG_INFO_FPUL = 23,
 > +   SH_DEBUG_INFO_FPSCR = 24,
 > +   SH_DEBUG_INFO_FR0 = 25,
 > +   SH_DEBUG_INFO_XD0 = 87
 > + }
 > + 
 > + enum
 > + {
 > +   SH64_DEBUG_INFO_R0 = 0,
 > +   SH64_DEBUG_INFO_TR0 = 68,
 > +   SH64_DEBUG_INFO_FR0 = 77,
 > +   SH64_DEBUG_INFO_T_C = 19,
 > +   SH64_DEBUG_INFO_XF0_C = SH64_DEBUG_INFO_FR0 + 16,
 > +   SH64_DEBUG_INFO_FPUL_C = SH64_DEBUG_INFO_FR0 + 32,
 > +   SH64_DEBUG_INFO_R0_C = 141,
 > +   SH64_DEBUG_INFO_GBR_C = 157,
 > +   SH64_DEBUG_INFO_MACH_C_BIG, SH64_DEBUG_INFO_MACL_C,
 > +   SH64_DEBUG_INFO_MACH_C_LITTLE,
 > +   SH64_DEBUG_INFO_PR_C, SH_DEBUG_INFO_FPSCR_C
 > + };
 >   #endif

What is the advantage of reusing media numbers for compact registers?
This also wouldn't work with the current code, because it is assumed
that the register sets are disjoint. I see that you have made disjoint
the GPRs and that is OK because it will fix some bugs. Might as well
make the whole set distinct. Same question as above about the mach/macl
registers applies here.
Can you expand a bit on that?

thanks
Elena


  reply	other threads:[~2002-05-09 22:33 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-30 10:48 SH5 compact register numbering in gcc -> gdb interface Joern Rennecke
2002-04-30 12:11 ` Joern Rennecke
2002-05-01 17:55   ` Elena Zannoni
2002-05-02  3:13     ` Joern Rennecke
2002-05-01 17:52 ` Elena Zannoni
2002-05-02  5:06   ` Joern Rennecke
2002-05-03  9:06     ` gdb/sh-tdep.c: need to eliminate target-dependent static variables Joern Rennecke
2002-05-03 22:21     ` SH5 compact register numbering in gcc -> gdb interface Alexandre Oliva
2002-05-07  7:57       ` Joern Rennecke
2002-05-07  9:41         ` Andrew Cagney
2002-05-07 12:00           ` Joern Rennecke
2002-05-07 12:04             ` Elena Zannoni
2002-05-07 15:13             ` Andrew Cagney
2002-05-09 14:43               ` SH5 compact register numbering in gcc -> gdb interface - include/elf/sh.h ? Joern Rennecke
2002-05-09 15:33                 ` Elena Zannoni [this message]
2002-05-09 16:50                   ` Andrew Cagney
2002-05-10  6:55                     ` Joern Rennecke
2002-05-10  7:40                       ` Andrew Cagney
2002-05-10  7:49                         ` Joern Rennecke
2002-05-10  7:03                     ` SH simulator register numbers: include/gdb/sim-sh.h Joern Rennecke
2002-06-11 10:19                       ` Unreviewed patch: add include/gdb/sim-sh.h (Was: Re: SH simulator register numbers: include/gdb/sim-sh.h) Joern Rennecke
2002-06-11 14:53                         ` Elena Zannoni
2002-05-10  3:09                   ` SH5 compact register numbering in gcc -> gdb interface - include/elf/sh.h ? Joern Rennecke
2002-05-10  7:33                     ` Andrew Cagney
2002-05-10  7:46                       ` Joern Rennecke
2002-05-10  3:25                   ` Joern Rennecke
2002-05-07 12:03           ` SH5 compact register numbering in gcc -> gdb interface Joern Rennecke
2002-05-09 21:54             ` Alexandre Oliva
2002-05-08  0:14         ` DWARFx ? .debug sections infos phi 4369
2002-05-08  1:36           ` Lars Brinkhoff
2002-05-08  1:53             ` phi 4369
2002-05-08  6:35               ` Petr Sorfa
2002-05-07 10:13     ` SH5 compact register numbering in gcc -> gdb interface Andrew Cagney

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=15578.63785.429521.553723@localhost.redhat.com \
    --to=ezannoni@redhat.com \
    --cc=ac131313@cygnus.com \
    --cc=aoliva@redhat.com \
    --cc=binutils@sources.redhat.com \
    --cc=bje@redhat.com \
    --cc=gcc@gcc.gnu.org \
    --cc=gdb@sources.redhat.com \
    --cc=joern.rennecke@st.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox