aboutsummaryrefslogtreecommitdiff
path: root/gdb/sh-tdep.c
diff options
context:
space:
mode:
authorStan Shebs <shebs@codesourcery.com>1998-03-17 01:09:27 +0000
committerStan Shebs <shebs@codesourcery.com>1998-03-17 01:09:27 +0000
commit4c95336d9f4be3ac594d696b0528c33a4dda7464 (patch)
tree426f01814dce4b03e6464fd3b489c4f7c8be45e4 /gdb/sh-tdep.c
parentfb9e431635ec891f4fb27f6472f3802781c59a59 (diff)
downloadgdb-4c95336d9f4be3ac594d696b0528c33a4dda7464.zip
gdb-4c95336d9f4be3ac594d696b0528c33a4dda7464.tar.gz
gdb-4c95336d9f4be3ac594d696b0528c33a4dda7464.tar.bz2
always keep SH4 support now (& remove an unused variable decl)
Diffstat (limited to 'gdb/sh-tdep.c')
-rw-r--r--gdb/sh-tdep.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/gdb/sh-tdep.c b/gdb/sh-tdep.c
index 5dad65b..993f71e 100644
--- a/gdb/sh-tdep.c
+++ b/gdb/sh-tdep.c
@@ -1,5 +1,5 @@
/* Target-dependent code for Hitachi Super-H, for GDB.
- Copyright (C) 1993, 1994, 1995, 1996 Free Software Foundation, Inc.
+ Copyright 1993, 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
This file is part of GDB.
@@ -35,8 +35,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#include "inferior.h" /* for BEFORE_TEXT_END etc. */
#include "gdb_string.h"
-extern int remote_write_size; /* in remote.c */
-
/* A set of original names, to be used when restoring back to generic
registers from a specific set. */
@@ -85,9 +83,7 @@ struct {
{ sh_reg_names, bfd_mach_sh },
{ sh3_reg_names, bfd_mach_sh3 },
{ sh3e_reg_names, bfd_mach_sh3e },
- /* start-sanitize-sh4 */
{ sh3e_reg_names, bfd_mach_sh4 },
- /* end-sanitize-sh4 */
{ NULL, 0 }
};
@@ -106,10 +102,8 @@ struct {
#define IS_MOV_R3(x) (((x) & 0xff00) == 0x1a00)
#define IS_SHLL_R3(x) ((x) == 0x4300)
#define IS_ADD_R3SP(x) ((x) == 0x3f3c)
-/* start-sanitize-sh4 */
#define IS_FMOV(x) (((x) & 0xf00f) == 0xf00b)
#define FPSCR_SZ (1 << 20)
-/* end-sanitize-sh4 */
/* Skip any prologue before the guts of a function */
@@ -121,9 +115,7 @@ sh_skip_prologue (start_pc)
w = read_memory_integer (start_pc, 2);
while (IS_STS (w)
- /* start-sanitize-sh4 */
|| IS_FMOV (w)
- /* end-sanitize-sh4 */
|| IS_PUSH (w)
|| IS_MOV_SP_FP (w)
|| IS_MOV_R3 (w)
@@ -288,7 +280,6 @@ sh_frame_find_saved_regs (fi, fsr)
depth -= ((insn & 0xff) ^ 0x80) - 0x80;
insn = read_memory_integer (pc, 2);
}
- /* start-sanitize-sh4 */
else if (IS_FMOV (insn))
{
pc += 2;
@@ -302,7 +293,6 @@ sh_frame_find_saved_regs (fi, fsr)
depth += 4;
}
}
- /* end-sanitize-sh4 */
else
break;
}
@@ -618,11 +608,9 @@ sh_show_regs (args, from_tty)
cpu = target_architecture->mach;
else
cpu = 0;
- /* start-sanitize-sh4 */
/* FIXME: sh4 has more registers */
if (cpu == bfd_mach_sh4)
cpu = bfd_mach_sh3;
- /* end-sanitize-sh4 */
printf_filtered ("PC=%08x SR=%08x PR=%08x MACH=%08x MACHL=%08x\n",
read_register (PC_REGNUM),