aboutsummaryrefslogtreecommitdiff
path: root/gdb/infcall.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-05-30 18:43:38 +0000
committerAndrew Cagney <cagney@redhat.com>2003-05-30 18:43:38 +0000
commitc89b70f16b4d135e778497072900b609ac23a540 (patch)
treef59b33ad9b9fb60833d65d29f0d69fb2b797cbd7 /gdb/infcall.c
parent85b32d22900470d4294bef7d06f51118b7bbefb4 (diff)
downloadgdb-c89b70f16b4d135e778497072900b609ac23a540.zip
gdb-c89b70f16b4d135e778497072900b609ac23a540.tar.gz
gdb-c89b70f16b4d135e778497072900b609ac23a540.tar.bz2
2003-05-30 Andrew Cagney <cagney@redhat.com>
* infcall.c (call_function_by_hand): Always call DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
Diffstat (limited to 'gdb/infcall.c')
-rw-r--r--gdb/infcall.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/gdb/infcall.c b/gdb/infcall.c
index 5f80e89..a4ad896 100644
--- a/gdb/infcall.c
+++ b/gdb/infcall.c
@@ -530,6 +530,17 @@ call_function_by_hand (struct value *function, int nargs, struct value **args)
}
break;
case AT_ENTRY_POINT:
+ if (DEPRECATED_FIX_CALL_DUMMY_P ())
+ {
+ /* Sigh. Some targets use DEPRECATED_FIX_CALL_DUMMY to
+ shove extra stuff onto the stack or into registers. That
+ code should be in PUSH_DUMMY_CALL, however, in the mean
+ time ... */
+ /* If the target is manipulating DUMMY1, it looses big time. */
+ void *dummy1 = NULL;
+ DEPRECATED_FIX_CALL_DUMMY (dummy1, sp, funaddr, nargs, args,
+ value_type, using_gcc);
+ }
real_pc = funaddr;
dummy_addr = CALL_DUMMY_ADDRESS ();
/* A call dummy always consists of just a single breakpoint, so