* values.c, value.h (modify_field), callers: Make fieldval a LONGEST.

* h8300-tdep.c (NEXT_PROLOGUE_INSN): Make pword1 an INSN_WORD *
	not short *.

	* findvar.c, defs.h
	({extract,store}_{signed_integer,unsigned_integer,address}):
	New routines to replace SWAP_TARGET_AND_HOST.
	All over: All uses of SWAP_TARGET_AND_HOST on integers replaced.
This commit is contained in:
Jim Kingdon 1993-07-10 05:03:22 +00:00
parent 34df79fc9d
commit 58e49e2178
4 changed files with 19 additions and 12 deletions

View file

@ -214,9 +214,8 @@ read_memory_integer (memaddr, len)
CORE_ADDR memaddr;
int len;
{
char *buf;
char buf[sizeof (LONGEST)];
buf = alloca (len);
read_memory (memaddr, buf, len);
return extract_signed_integer (buf, len);
}
@ -226,9 +225,8 @@ read_memory_unsigned_integer (memaddr, len)
CORE_ADDR memaddr;
int len;
{
char *buf;
char buf[sizeof (unsigned LONGEST)];
buf = alloca (len);
read_memory (memaddr, buf, len);
return extract_unsigned_integer (buf, len);
}