aboutsummaryrefslogtreecommitdiff
path: root/gdb/sh-tdep.c
diff options
context:
space:
mode:
authorElena Zannoni <ezannoni@kwikemart.cygnus.com>2002-04-07 22:13:20 +0000
committerElena Zannoni <ezannoni@kwikemart.cygnus.com>2002-04-07 22:13:20 +0000
commitcf1fcca124940328ddedb5709b1e7ee7b1e47356 (patch)
tree90c6ab5178d94e59fbed9dee4db271c43311d27d /gdb/sh-tdep.c
parent3b5b409c5cf84a1fd959405b88315618629c88bb (diff)
downloadgdb-cf1fcca124940328ddedb5709b1e7ee7b1e47356.zip
gdb-cf1fcca124940328ddedb5709b1e7ee7b1e47356.tar.gz
gdb-cf1fcca124940328ddedb5709b1e7ee7b1e47356.tar.bz2
2002-04-07 Elena Zannoni <ezannoni@redhat.com>
* sh-tdep.c (sh_fp_frame_init_saved_regs, sh_nofp_frame_init_saved_regs): Use alloca() for 'where' information.
Diffstat (limited to 'gdb/sh-tdep.c')
-rw-r--r--gdb/sh-tdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/sh-tdep.c b/gdb/sh-tdep.c
index 9e03918..107385f 100644
--- a/gdb/sh-tdep.c
+++ b/gdb/sh-tdep.c
@@ -481,7 +481,7 @@ sh_find_callers_reg (struct frame_info *fi, int regnum)
static void
sh_nofp_frame_init_saved_regs (struct frame_info *fi)
{
- int where[NUM_REGS + NUM_PSEUDO_REGS];
+ int *where = (int *) alloca (NUM_REGS + NUM_PSEUDO_REGS);
int rn;
int have_fp = 0;
int depth;
@@ -623,7 +623,7 @@ dr_reg_base_num (int dr_regnum)
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);
int rn;
int have_fp = 0;
int depth;