mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-27 03:51:15 +08:00
* h8300-tdep.c, tm-h8300.h: turn off some experimental features
This commit is contained in:
parent
8ccb154d8b
commit
256b4f378a
@ -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.
|
||||
|
@ -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])
|
||||
{
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user