aboutsummaryrefslogtreecommitdiff
path: root/gdb/h8300-tdep.c
diff options
context:
space:
mode:
authorSteve Chamberlain <sac@cygnus>1993-02-12 16:07:36 +0000
committerSteve Chamberlain <sac@cygnus>1993-02-12 16:07:36 +0000
commit256b4f378a3822e7c9d0908687dc61669fee2b43 (patch)
treee94a7b63df4e242de8da143b587fb010b599a513 /gdb/h8300-tdep.c
parent8ccb154d8b6eb1b8bfde23c656f7bcfd27663801 (diff)
downloadgdb-256b4f378a3822e7c9d0908687dc61669fee2b43.zip
gdb-256b4f378a3822e7c9d0908687dc61669fee2b43.tar.gz
gdb-256b4f378a3822e7c9d0908687dc61669fee2b43.tar.bz2
* h8300-tdep.c, tm-h8300.h: turn off some experimental features
Diffstat (limited to 'gdb/h8300-tdep.c')
-rw-r--r--gdb/h8300-tdep.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/gdb/h8300-tdep.c b/gdb/h8300-tdep.c
index c47c266..62ce3d3 100644
--- a/gdb/h8300-tdep.c
+++ b/gdb/h8300-tdep.c
@@ -26,6 +26,9 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "frame.h"
#include "obstack.h"
#include "symtab.h"
+#undef NUM_REGS
+#define NUM_REGS 11
+
#define UNSIGNED_SHORT(X) ((X) & 0xffff)
/* an easy to debug H8 stack frame looks like:
@@ -220,10 +223,10 @@ examine_prologue (ip, limit, after_prolog_fp, fsr, fi)
unsigned int auto_depth = 0; /* Number of bytes of autos */
- char in_frame[NUM_REGS]; /* One for each reg */
+ char in_frame[8]; /* One for each reg */
- memset (in_frame, 1, NUM_REGS);
- for (r = 0; r < NUM_REGS; r++)
+ memset (in_frame, 1, 8);
+ for (r = 0; r < 8; r++)
{
fsr->regs[r] = 0;
}
@@ -377,7 +380,7 @@ h8300_pop_frame ()
fi = get_frame_info (frame);
get_frame_saved_regs (fi, &fsr);
- for (regnum = 0; regnum < NUM_REGS; regnum++)
+ for (regnum = 0; regnum < 8; regnum++)
{
if (fsr.regs[regnum])
{