aboutsummaryrefslogtreecommitdiff
path: root/gdb/sh-tdep.c
diff options
context:
space:
mode:
authorElena Zannoni <ezannoni@kwikemart.cygnus.com>2002-05-10 23:59:09 +0000
committerElena Zannoni <ezannoni@kwikemart.cygnus.com>2002-05-10 23:59:09 +0000
commitddde02bd7bea42b42df7b7e7e57f1757ac28f781 (patch)
tree562960dec64b88889367352e7c5aacd2bd9453e8 /gdb/sh-tdep.c
parent377daeed9a31defa9b7c74f96baf26d497f7facc (diff)
downloadgdb-ddde02bd7bea42b42df7b7e7e57f1757ac28f781.zip
gdb-ddde02bd7bea42b42df7b7e7e57f1757ac28f781.tar.gz
gdb-ddde02bd7bea42b42df7b7e7e57f1757ac28f781.tar.bz2
2002-05-10 Elena Zannoni <ezannoni@redhat.com>
* sh-tdep.c: Clean up code erroneously reintroduced by previous big patch.
Diffstat (limited to 'gdb/sh-tdep.c')
-rw-r--r--gdb/sh-tdep.c21
1 files changed, 2 insertions, 19 deletions
diff --git a/gdb/sh-tdep.c b/gdb/sh-tdep.c
index 8c0c811..b768692 100644
--- a/gdb/sh-tdep.c
+++ b/gdb/sh-tdep.c
@@ -42,18 +42,13 @@
#include "doublest.h"
#include "elf-bfd.h"
-
#include "solib-svr4.h"
-#include "elf-bfd.h"
/* sh64 flags */
#include "elf/sh.h"
/* registers numbers shared with the simulator */
#include "gdb/sim-sh.h"
-#undef XMALLOC
-#define XMALLOC(TYPE) ((TYPE*) xmalloc (sizeof (TYPE)))
-
void (*sh_show_regs) (void);
CORE_ADDR (*skip_prologue_hard_way) (CORE_ADDR);
void (*do_pseudo_register) (int);
@@ -1395,7 +1390,7 @@ sign_extend (int value, int bits)
static void
sh64_nofp_frame_init_saved_regs (struct frame_info *fi)
{
- int *where = (int *) alloca ((NUM_REGS + NUM_PSEUDO_REGS) * sizeof(int));
+ int *where = (int *) alloca ((NUM_REGS + NUM_PSEUDO_REGS) * sizeof (int));
int rn;
int have_fp = 0;
int fp_regnum;
@@ -1602,7 +1597,7 @@ sh64_nofp_frame_init_saved_regs (struct frame_info *fi)
static void
sh_fp_frame_init_saved_regs (struct frame_info *fi)
{
- int where[NUM_REGS + NUM_PSEUDO_REGS];
+ int *where = (int *) alloca ((NUM_REGS + NUM_PSEUDO_REGS) * sizeof (int));
int rn;
int have_fp = 0;
int depth;
@@ -3310,18 +3305,6 @@ sh_default_register_virtual_type (int reg_nr)
The other pseudo registers (the FVs) also don't pose a problem
because they are stored as 4 individual FP elements. */
-int
-sh_sh4_register_convertible (int nr)
-{
- struct gdbarch_tdep *tdep = gdbarch_tdep (current_gdbarch);
-
- if (TARGET_BYTE_ORDER == BFD_ENDIAN_LITTLE)
- return (tdep->DR0_REGNUM <= nr
- && nr <= tdep->DR_LAST_REGNUM);
- else
- return 0;
-}
-
static void
sh_sh4_register_convert_to_virtual (int regnum, struct type *type,
char *from, char *to)