aboutsummaryrefslogtreecommitdiff
path: root/gdb
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
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')
-rw-r--r--gdb/ChangeLog11
-rw-r--r--gdb/h8300-tdep.c11
-rw-r--r--gdb/tm-h8300.h12
3 files changed, 27 insertions, 7 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 1519e93..b1f201b 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,16 @@
+Fri Feb 12 08:06:05 1993 Steve Chamberlain (sac@thepub.cygnus.com)
+
+ * h8300-tdep.c, tm-h8300.h: turn off some experimental features
+
Thu Feb 11 00:59:07 1993 John Gilmore (gnu@cygnus.com)
+ * stabsread.c (dbx_lookup_type): Handle negative type numbers.
+ Previously, would bogusly index off the bottom of type_vector.
+ (rs6000_builtin_type): Accept type number as argument.
+ (read_type, case '-'): Handle negatives like any other type number.
+
+ * symfile.c (deduce_language_from_filename): Handle null name.
+
* mips-tdep.c (isa_NAN): Fix byte order dependency.
Reported by Nobuyuki Hikichi <hikichi@sra.co.jp>,
fixed by sato@sm.sony.co.jp.
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])
{
diff --git a/gdb/tm-h8300.h b/gdb/tm-h8300.h
index ba1e883..2f99c10 100644
--- a/gdb/tm-h8300.h
+++ b/gdb/tm-h8300.h
@@ -102,7 +102,8 @@ UNSIGNED_SHORT(read_memory_integer (read_register (SP_REGNUM), 2))
#define REGISTER_TYPE unsigned short
-# define NUM_REGS 10 /* 20 for fake HW support */
+/*# define NUM_REGS 20 /* 20 for fake HW support */
+# define NUM_REGS 11
# define REGISTER_BYTES (NUM_REGS*2)
@@ -153,10 +154,15 @@ UNSIGNED_SHORT(read_memory_integer (read_register (SP_REGNUM), 2))
/* Initializer for an array of names of registers.
Entries beyond the first NUM_REGS are ignored. */
+#if NUM_REGS==20
#define REGISTER_NAMES \
{"r0", "r1", "r2", "r3", "r4", "r5", "r6", "sp",\
- "ccr","pc","cycles","hcheck","tier","tcsr","frc","ocra","ocrb","tcr","tocr","icra"}
-
+ "ccr","pc","cycles","hcheck","tier","tcsr","frc",\
+ "ocra","ocrb","tcr","tocr","icra"}
+#else
+#define REGISTER_NAMES \
+ {"r0", "r1", "r2", "r3", "r4", "r5", "r6", "sp", "ccr","pc","cycles"}
+#endif
/* Register numbers of various important registers.
Note that some of these values are "real" register numbers,