mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 01:07:52 +00:00
* 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:
@@ -897,11 +897,12 @@ CORE_ADDR
|
||||
skip_prologue(pc)
|
||||
CORE_ADDR pc;
|
||||
{
|
||||
int inst;
|
||||
char buf[4];
|
||||
unsigned long inst;
|
||||
int status;
|
||||
|
||||
status = target_read_memory (pc, (char *)&inst, 4);
|
||||
SWAP_TARGET_AND_HOST (&inst, sizeof (inst));
|
||||
status = target_read_memory (pc, buf, 4);
|
||||
inst = extract_unsigned_integer (buf, 4);
|
||||
if (status != 0)
|
||||
return pc;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user