Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Yoshinori Sato <ysato@users.sourceforge.jp>
To: "Sherry Samuel" <SherryS@kpitcummins.com>
Cc: cagney@gnu.org, gdb-patches@sources.redhat.com
Subject: Re: Regarding new frame code for h8300 target
Date: Tue, 01 Mar 2005 15:12:00 -0000	[thread overview]
Message-ID: <m2vf8b2ygm.wl%ysato@users.sourceforge.jp> (raw)
In-Reply-To: <4A1BE23A7B777442B60F4B4916AE0F13048B8B6F@sohm.kpit.com>

At Mon, 28 Feb 2005 17:54:16 +0530,
Sherry Samuel wrote:
> 
> Hi,
> 
> Reference: http://sourceware.org/ml/gdb-patches/2005-02/msg00178.html
> Reference: http://sourceware.org/ml/gdb-patches/2005-02/msg00137.html
> 
> From the above link it follows that, there is a little more work to be done for the 
> "h8300 new frame code" patch to be accepted by FSF. 
> Please revert to us if you want any assistance regarding this. We are willing to take 
> any work in this regard to see h8300 live in GDB.
> 
> Regards
> Sherry Samuel, 
> KPIT Cummins InfoSystems Ltd. 
> Pune, India 
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Free download of GNU based tool-chains for Renesas' SH and H8 Series.
> The following site also offers free technical support to its users. 
> Visit http://www.kpitgnutools.com for details. 
> Latest versions of KPIT GNU tools were released on February, 2005.
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>  

I'm sorry. I seem to have failed in sending.

Index: remote-hms.c
===================================================================
RCS file: /cvs/src/src/gdb/remote-hms.c,v
retrieving revision 1.9
diff -u -r1.9
--- remote-hms.c	22 Jul 2004 01:31:49 -0000	1.9
+++ remote-hms.c	16 Feb 2005 03:21:03 -0000
@@ -28,6 +28,8 @@
 #include "serial.h"
 #include "regcache.h"
 
+#define CCR_REGNUM 8
+
 static void hms_open (char *args, int from_tty);
 static void
 hms_supply_register (char *regname, int regnamelen, char *val, int vallen)
Index: remote-e7000.c
===================================================================
RCS file: /cvs/src/src/gdb/remote-e7000.c,v
retrieving revision 1.50
diff -u -r1.50
--- remote-e7000.c	11 Feb 2005 18:13:52 -0000	1.50
+++ remote-e7000.c	16 Feb 2005 03:21:03 -0000
@@ -893,12 +893,14 @@
 {
   int regno;
   char *wanted = NULL;
+  int realregs = 0;
 
   puts_e7000debug ("R\r");
 
   if (TARGET_ARCHITECTURE->arch == bfd_arch_sh)
     {
       wanted = want_sh;
+      realregs = 59;
       switch (TARGET_ARCHITECTURE->mach)
 	{
 	case bfd_mach_sh3:
@@ -910,6 +912,7 @@
   if (TARGET_ARCHITECTURE->arch == bfd_arch_h8300)
     {
       wanted = want_h8300h;
+      realregs = 10;
       switch (TARGET_ARCHITECTURE->mach)
 	{
 	case bfd_mach_h8300s:
@@ -917,13 +920,14 @@
 	case bfd_mach_h8300sx:
 	case bfd_mach_h8300sxn:
 	  wanted = want_h8300s;
+	  realregs = 11;
 	}
     }
 
   fetch_regs_from_dump (gch, wanted);
 
   /* And supply the extra ones the simulator uses */
-  for (regno = NUM_REALREGS; regno < NUM_REGS; regno++)
+  for (regno = realregs; regno < NUM_REGS; regno++)
     {
       int buf = 0;
 
@@ -946,8 +950,18 @@
 e7000_store_registers (void)
 {
   int regno;
+  int realregs = 0;
 
-  for (regno = 0; regno < NUM_REALREGS; regno++)
+  if (TARGET_ARCHITECTURE->arch == bfd_arch_sh)
+    realregs = 59;
+  if (TARGET_ARCHITECTURE->arch == bfd_arch_h8300) {
+    realregs = ((TARGET_ARCHITECTURE->mach == bfd_mach_h8300s ||
+		 TARGET_ARCHITECTURE->mach == bfd_mach_h8300sn ||
+		 TARGET_ARCHITECTURE->mach == bfd_mach_h8300sx ||
+		 TARGET_ARCHITECTURE->mach == bfd_mach_h8300sxn) ? 11 : 10);
+  }
+
+  for (regno = 0; regno < realregs; regno++)
     e7000_store_register (regno);
 
   registers_changed ();
@@ -1998,6 +2012,7 @@
   int had_sleep = 0;
   int loop = 1;
   char *wanted_nopc = NULL;
+  int realregs = 0;
 
   /* Then echo chars until PC= string seen */
   gch ();			/* Drop cr */
@@ -2039,6 +2054,7 @@
   if (TARGET_ARCHITECTURE->arch == bfd_arch_sh)
     {
       wanted_nopc = want_nopc_sh;
+      realregs = 59;
       switch (TARGET_ARCHITECTURE->mach)
 	{
 	case bfd_mach_sh3:
@@ -2050,6 +2066,7 @@
   if (TARGET_ARCHITECTURE->arch == bfd_arch_h8300)
     {
       wanted_nopc = want_nopc_h8300h;
+      realregs = 10;
       switch (TARGET_ARCHITECTURE->mach)
 	{
 	case bfd_mach_h8300s:

-- 
Yoshinori Sato
<ysato@users.sourceforge.jp>


  reply	other threads:[~2005-03-01 15:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-28 19:39 Sherry Samuel
2005-03-01 15:12 ` Yoshinori Sato [this message]
2005-03-14 11:30 Anil Paranjape

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=m2vf8b2ygm.wl%ysato@users.sourceforge.jp \
    --to=ysato@users.sourceforge.jp \
    --cc=SherryS@kpitcummins.com \
    --cc=cagney@gnu.org \
    --cc=gdb-patches@sources.redhat.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