From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26618 invoked by alias); 1 Mar 2005 15:12:33 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 23614 invoked from network); 1 Mar 2005 15:11:10 -0000 Received: from unknown (HELO mail.asahi-net.or.jp) (202.224.39.198) by sourceware.org with SMTP; 1 Mar 2005 15:11:10 -0000 Received: from mitou.ysato.dip.jp (l247150.ppp.asahi-net.or.jp [218.219.247.150]) by mail.asahi-net.or.jp (Postfix) with ESMTP id 6600F15A32; Wed, 2 Mar 2005 00:11:05 +0900 (JST) Received: from mitou.localdomain (unknown [192.168.16.2]) by mitou.ysato.dip.jp (Postfix) with ESMTP id 20AA11C1A5; Wed, 2 Mar 2005 00:11:05 +0900 (JST) Date: Tue, 01 Mar 2005 15:12:00 -0000 Message-ID: From: Yoshinori Sato To: "Sherry Samuel" Cc: cagney@gnu.org, gdb-patches@sources.redhat.com Subject: Re: Regarding new frame code for h8300 target In-Reply-To: <4A1BE23A7B777442B60F4B4916AE0F13048B8B6F@sohm.kpit.com> References: <4A1BE23A7B777442B60F4B4916AE0F13048B8B6F@sohm.kpit.com> User-Agent: Wanderlust/2.11.30 (Wonderwall) SEMI/1.14.6 (Maruoka) LIMIT/1.14.9 (Domyoji) APEL/10.6 Emacs/21.3 (i386-pc-linux-gnu) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-SW-Source: 2005-03/txt/msg00001.txt.bz2 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