diff options
author | John Gilmore <gnu@cygnus> | 1991-10-25 04:29:01 +0000 |
---|---|---|
committer | John Gilmore <gnu@cygnus> | 1991-10-25 04:29:01 +0000 |
commit | b00771232fab861fb31e42dfd5f6643ba1b43cc9 (patch) | |
tree | abddb9cadb00120229be6604aeeba5f480396591 /gdb/tm-sun3.h | |
parent | ae9cce45ffcc88a572dc7d10eb9de5d958c5a96c (diff) | |
download | gdb-b00771232fab861fb31e42dfd5f6643ba1b43cc9.zip gdb-b00771232fab861fb31e42dfd5f6643ba1b43cc9.tar.gz gdb-b00771232fab861fb31e42dfd5f6643ba1b43cc9.tar.bz2 |
frame-select command. Cross funcalls to sun3. Build *.tab.c files in
target dir.
Diffstat (limited to 'gdb/tm-sun3.h')
-rw-r--r-- | gdb/tm-sun3.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gdb/tm-sun3.h b/gdb/tm-sun3.h index e6860c6..b3da81b 100644 --- a/gdb/tm-sun3.h +++ b/gdb/tm-sun3.h @@ -120,5 +120,10 @@ taken for the arguments. */ into a call sequence of the above form stored at DUMMYNAME. */ #define FIX_CALL_DUMMY(dummyname, pc, fun, nargs, args, type, gcc_p) \ -{ *(int *)((char *) dummyname + 20) = nargs * 4; \ - *(int *)((char *) dummyname + 14) = fun; } +{ int temp; \ + temp = nargs * 4; \ + SWAP_TARGET_AND_HOST (temp, 4); \ + bcopy ((char *)&temp, (char *)(dummyname) + 20, 4); \ + temp = fun; \ + SWAP_TARGET_AND_HOST (temp, 4); \ + bcopy ((char *)&temp, (char *)(dummyname) + 14, 4); } |