M88K fixes reported by Carl Greco, <cgreco@Creighton.Edu>:
* tm-m88k.h (REGISTER_CONVERT_TO_RAW): Fix typo. * m88k-tdep.c (next_insn): Lint, cleanup. (store_parm_word): Lint.
This commit is contained in:
parent
536c2ad4be
commit
2a770cac0f
|
@ -1,5 +1,10 @@
|
||||||
Thu Jan 28 19:09:02 1993 John Gilmore (gnu@cygnus.com)
|
Thu Jan 28 19:09:02 1993 John Gilmore (gnu@cygnus.com)
|
||||||
|
|
||||||
|
M88K fixes reported by Carl Greco, <cgreco@Creighton.Edu>:
|
||||||
|
* tm-m88k.h (REGISTER_CONVERT_TO_RAW): Fix typo.
|
||||||
|
* m88k-tdep.c (next_insn): Lint, cleanup.
|
||||||
|
(store_parm_word): Lint.
|
||||||
|
|
||||||
* README: Fix typo (reported by karl@hq.ileaf.com).
|
* README: Fix typo (reported by karl@hq.ileaf.com).
|
||||||
|
|
||||||
Wed Jan 27 21:34:21 1993 Fred Fish (fnf@cygnus.com)
|
Wed Jan 27 21:34:21 1993 Fred Fish (fnf@cygnus.com)
|
||||||
|
|
|
@ -45,6 +45,9 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
|
||||||
#include "setjmp.h"
|
#include "setjmp.h"
|
||||||
#include "value.h"
|
#include "value.h"
|
||||||
|
|
||||||
|
/* Size of an instruction */
|
||||||
|
#define BYTES_PER_88K_INSN 4
|
||||||
|
|
||||||
void frame_find_saved_regs ();
|
void frame_find_saved_regs ();
|
||||||
|
|
||||||
|
|
||||||
|
@ -178,11 +181,8 @@ next_insn (memaddr, pword1)
|
||||||
{
|
{
|
||||||
unsigned long buf[1];
|
unsigned long buf[1];
|
||||||
|
|
||||||
read_memory (memaddr, buf, sizeof (buf));
|
*pword1 = read_memory_integer (memaddr, BYTES_PER_88K_INSN);
|
||||||
*pword1 = buf[0];
|
return memaddr + BYTES_PER_88K_INSN;
|
||||||
SWAP_TARGET_AND_HOST (pword1, sizeof (long));
|
|
||||||
|
|
||||||
return memaddr + 4;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Read a register from frames called by us (or from the hardware regs). */
|
/* Read a register from frames called by us (or from the hardware regs). */
|
||||||
|
@ -642,7 +642,7 @@ store_parm_word (address, val)
|
||||||
CORE_ADDR address;
|
CORE_ADDR address;
|
||||||
int val;
|
int val;
|
||||||
{
|
{
|
||||||
write_memory (address, &val, 4);
|
write_memory (address, (char *)&val, 4);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
|
|
@ -279,7 +279,7 @@ extern CORE_ADDR skip_prologue ();
|
||||||
/* Convert data from virtual format for register REGNUM
|
/* Convert data from virtual format for register REGNUM
|
||||||
to raw format for register REGNUM. */
|
to raw format for register REGNUM. */
|
||||||
|
|
||||||
#define REGISTER_CONVERT_TO_RAW(REGNUM,FROM,TO)
|
#define REGISTER_CONVERT_TO_RAW(REGNUM,FROM,TO) \
|
||||||
{bcopy ((FROM), (TO), REGISTER_RAW_SIZE (REGNUM));}
|
{bcopy ((FROM), (TO), REGISTER_RAW_SIZE (REGNUM));}
|
||||||
|
|
||||||
/* Return the GDB type object for the "standard" data type
|
/* Return the GDB type object for the "standard" data type
|
||||||
|
|
Loading…
Reference in New Issue