* 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:
parent
34df79fc9d
commit
58e49e2178
4 changed files with 19 additions and 12 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue