+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.
#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:
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;
}
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])
{
#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)
/* 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,