aboutsummaryrefslogtreecommitdiff
path: root/gdb/v850-tdep.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>1996-11-27 19:31:26 +0000
committerMichael Snyder <msnyder@vmware.com>1996-11-27 19:31:26 +0000
commit409f64ae056e9f06ea492bfe4ffb42f85170ed5d (patch)
tree7d2a16ea8489169e39cbe23355ea43a540f6496f /gdb/v850-tdep.c
parent50f04a5a37ce4bd1da4def5bee108c361cdfddac (diff)
downloadgdb-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/v850-tdep.c')
-rw-r--r--gdb/v850-tdep.c25
1 files changed, 2 insertions, 23 deletions
diff --git a/gdb/v850-tdep.c b/gdb/v850-tdep.c
index 1a5d69a..f7149c4 100644
--- a/gdb/v850-tdep.c
+++ b/gdb/v850-tdep.c
@@ -407,21 +407,14 @@ v850_push_arguments (nargs, args, sp, struct_return, struct_addr)
Set up the return address for the inferior function call.
Needed for targets where we don't actually execute a JSR/BSR instruction */
-#ifdef PUSH_RETURN_ADDRESS
CORE_ADDR
v850_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 (RP_REGNUM, pc);
+ write_register (RP_REGNUM, CALL_DUMMY_ADDRESS ());
return sp;
}
-#endif /* PUSH_RETURN_ADDRESS */
/* Function: frame_saved_pc
Find the caller of this frame. We do this by seeing if RP_REGNUM
@@ -472,22 +465,8 @@ v850_fix_call_dummy (dummy, sp, fun, nargs, args, type, gcc_p)
int gcc_p;
{
long offset24;
- CORE_ADDR call_dummy_start;
-#ifdef NEED_TEXT_START_END
- extern CORE_ADDR text_end;
-#endif
-
-#if (CALL_DUMMY_LOCATION == AT_ENTRY_POINT)
- call_dummy_start = entry_point_address ();
-#elif (CALL_DUMMY_LOCATION == AFTER_TEXT_END)
- call_dummy_start = text_end;
-#elif (CALL_DUMMY_LOCATION == BEFORE_TEXT_END)
- call_dummy_start = (text_end - CALL_DUMMY_LENGTH) & ~3;
-#elif (CALL_DUMMY_LOCATION == ON_STACK)
- call_dummy_start = sp;
-#endif
- offset24 = (long) fun - (long) call_dummy_start;
+ offset24 = (long) fun - (long) entry_point_address ();
offset24 &= 0x3fffff;
offset24 |= 0xff800000; /* jarl <offset24>, r31 */