diff options
author | Michael Snyder <msnyder@vmware.com> | 1996-11-27 19:31:26 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 1996-11-27 19:31:26 +0000 |
commit | 409f64ae056e9f06ea492bfe4ffb42f85170ed5d (patch) | |
tree | 7d2a16ea8489169e39cbe23355ea43a540f6496f /gdb/sh-tdep.c | |
parent | 50f04a5a37ce4bd1da4def5bee108c361cdfddac (diff) | |
download | gdb-409f64ae056e9f06ea492bfe4ffb42f85170ed5d.zip gdb-409f64ae056e9f06ea492bfe4ffb42f85170ed5d.tar.gz gdb-409f64ae056e9f06ea492bfe4ffb42f85170ed5d.tar.bz2 |
Wed Nov 27 11:29:06 1996 Michael Snyder <msnyder@cleaver.cygnus.com>
* blockframe.c: ...Remove old-style CALL_DUMMY code...
* h8300-tdep.c:
* config/h8300/tm-h8300.h:
start-sanitize-m32r
* m32r-tdep.c:
* config/m32r/tm-m32r.h:
end-sanitize-m32r
* sh-tdep.c:
* config/sh/tm-sh.h:
start-sanitize-v850
* v850-tdep.c:
* config/v850/tm-v850.h:
end-sanitize-v850
Diffstat (limited to 'gdb/sh-tdep.c')
-rw-r--r-- | gdb/sh-tdep.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/gdb/sh-tdep.c b/gdb/sh-tdep.c index d088f44..4a3eb2e 100644 --- a/gdb/sh-tdep.c +++ b/gdb/sh-tdep.c @@ -482,7 +482,7 @@ sh_push_arguments (nargs, args, sp, struct_return, struct_addr) while (len > 0) { if (argreg > ARGLAST_REGNUM || odd_sized_struct) - { /* must go on the stack */ + { /* must go on the stack */ write_memory (sp + stack_offset, val, 4); stack_offset += 4; } @@ -490,7 +490,7 @@ sh_push_arguments (nargs, args, sp, struct_return, struct_addr) That's because some *&^%$ things get passed on the stack AND in the registers! */ if (argreg <= ARGLAST_REGNUM) - { /* there's room in a register */ + { /* there's room in a register */ regval = extract_address (val, REGISTER_RAW_SIZE(argreg)); write_register (argreg++, regval); } @@ -513,12 +513,7 @@ sh_push_return_address (pc, sp) CORE_ADDR pc; CORE_ADDR sp; { -#if CALL_DUMMY_LOCATION != AT_ENTRY_POINT - pc = pc - CALL_DUMMY_START_OFFSET + CALL_DUMMY_BREAKPOINT_OFFSET; -#else - pc = CALL_DUMMY_ADDRESS (); -#endif /* CALL_DUMMY_LOCATION */ - write_register (PR_REGNUM, pc); + write_register (PR_REGNUM, CALL_DUMMY_ADDRESS ()); return sp; } |