This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: Regarding new frame code for h8300 target
- From: Yoshinori Sato <ysato at users dot sourceforge dot jp>
- To: "Sherry Samuel" <SherryS at kpitcummins dot com>
- Cc: cagney at gnu dot org, gdb-patches at sources dot redhat dot com
- Date: Wed, 02 Mar 2005 00:11:05 +0900
- Subject: Re: Regarding new frame code for h8300 target
- References: <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>