From: Steve Chamberlain Date: Fri, 12 Feb 1993 16:07:36 +0000 (+0000) Subject: * h8300-tdep.c, tm-h8300.h: turn off some experimental features X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=256b4f378a3822e7c9d0908687dc61669fee2b43;p=binutils-gdb.git * h8300-tdep.c, tm-h8300.h: turn off some experimental features --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1519e93f689..b1f201b7425 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 , fixed by sato@sm.sony.co.jp. diff --git a/gdb/h8300-tdep.c b/gdb/h8300-tdep.c index c47c2666fce..62ce3d3fc1c 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 ba1e8839f61..2f99c10071a 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,