diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-07-10 01:35:53 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-07-10 01:35:53 +0000 |
commit | 34df79fc9d631a7cacdb2f9a9e12d5e3f8c6dd1c (patch) | |
tree | 90f72ebb31b2efb141be6ccc518e56eb37b0a701 /gdb/valops.c | |
parent | ec1c752b34daada508decf3f978f0796f6008f77 (diff) | |
download | gdb-34df79fc9d631a7cacdb2f9a9e12d5e3f8c6dd1c.zip gdb-34df79fc9d631a7cacdb2f9a9e12d5e3f8c6dd1c.tar.gz gdb-34df79fc9d631a7cacdb2f9a9e12d5e3f8c6dd1c.tar.bz2 |
* 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.
Diffstat (limited to 'gdb/valops.c')
-rw-r--r-- | gdb/valops.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/gdb/valops.c b/gdb/valops.c index f7775b1..24eefca 100644 --- a/gdb/valops.c +++ b/gdb/valops.c @@ -627,13 +627,14 @@ value_ind (arg1) /* Push one word (the size of object that a register holds). */ CORE_ADDR -push_word (sp, buffer) +push_word (sp, word) CORE_ADDR sp; - REGISTER_TYPE buffer; + REGISTER_TYPE word; { register int len = sizeof (REGISTER_TYPE); + REGISTER_TYPE buffer; - SWAP_TARGET_AND_HOST (&buffer, len); + store_unsigned_integer (&buffer, len, word); #if 1 INNER_THAN 2 sp -= len; write_memory (sp, (char *)&buffer, len); @@ -854,9 +855,9 @@ call_function_by_hand (function, nargs, args) /* Create a call sequence customized for this function and the number of arguments for it. */ - memcpy (dummy1, dummy, sizeof dummy); for (i = 0; i < sizeof dummy / sizeof (REGISTER_TYPE); i++) - SWAP_TARGET_AND_HOST (&dummy1[i], sizeof (REGISTER_TYPE)); + store_unsigned_integer (&dummy1[i], sizeof (REGISTER_TYPE), + (unsigned LONGEST)dummy[i]); #ifdef GDB_TARGET_IS_HPPA real_pc = FIX_CALL_DUMMY (dummy1, start_sp, funaddr, nargs, args, |