summaryrefslogtreecommitdiff
path: root/gdb/infcall.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-05-08 20:48:52 +0000
committerAndrew Cagney <cagney@redhat.com>2004-05-08 20:48:52 +0000
commitefbb463cd99e1d5f6078b880ffa05c03e7c1a1c2 (patch)
tree25adf8db53dc935cb56c046bd13c1c05a2525ca9 /gdb/infcall.c
parent156b8ead1e6c45acc1098dcaf5045496af99814f (diff)
downloadgdb-efbb463cd99e1d5f6078b880ffa05c03e7c1a1c2.tar.gz
2004-05-08 Andrew Cagney <cagney@redhat.com>
* gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete. * gdbarch.h, gdbarch.c: Re-generate. * inferior.h (PUSH_DUMMY_FRAME): Delete macro. * infcall.c (call_function_by_hand): Eliminate call to DEPRECATED_PUSH_DUMMY_FRAME. * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated push_dummy_frame. (ns32k_push_dummy_frame): Delete function.
Diffstat (limited to 'gdb/infcall.c')
-rw-r--r--gdb/infcall.c45
1 files changed, 17 insertions, 28 deletions
diff --git a/gdb/infcall.c b/gdb/infcall.c
index b11a12f47d8..4d1f1c7f346 100644
--- a/gdb/infcall.c
+++ b/gdb/infcall.c
@@ -324,34 +324,23 @@ call_function_by_hand (struct value *function, int nargs, struct value **args)
inf_status = save_inferior_status (1);
inf_status_cleanup = make_cleanup_restore_inferior_status (inf_status);
- if (DEPRECATED_PUSH_DUMMY_FRAME_P ())
- {
- /* DEPRECATED_PUSH_DUMMY_FRAME is responsible for saving the
- inferior registers (and frame_pop() for restoring them). (At
- least on most machines) they are saved on the stack in the
- inferior. */
- DEPRECATED_PUSH_DUMMY_FRAME;
- }
- else
- {
- /* FIXME: cagney/2003-02-26: Step zero of this little tinker is
- to extract the generic dummy frame code from the architecture
- vector. Hence this direct call.
-
- A follow-on change is to modify this interface so that it takes
- thread OR frame OR ptid as a parameter, and returns a dummy
- frame handle. The handle can then be used further down as a
- parameter to generic_save_dummy_frame_tos(). Hmm, thinking
- about it, since everything is ment to be using generic dummy
- frames, why not even use some of the dummy frame code to here -
- do a regcache dup and then pass the duped regcache, along with
- all the other stuff, at one single point.
-
- In fact, you can even save the structure's return address in the
- dummy frame and fix one of those nasty lost struct return edge
- conditions. */
- generic_push_dummy_frame ();
- }
+ /* FIXME: cagney/2003-02-26: Step zero of this little tinker is to
+ extract the generic dummy frame code from the architecture
+ vector. Hence this direct call.
+
+ A follow-on change is to modify this interface so that it takes
+ thread OR frame OR ptid as a parameter, and returns a dummy frame
+ handle. The handle can then be used further down as a parameter
+ to generic_save_dummy_frame_tos(). Hmm, thinking about it, since
+ everything is ment to be using generic dummy frames, why not even
+ use some of the dummy frame code to here - do a regcache dup and
+ then pass the duped regcache, along with all the other stuff, at
+ one single point.
+
+ In fact, you can even save the structure's return address in the
+ dummy frame and fix one of those nasty lost struct return edge
+ conditions. */
+ generic_push_dummy_frame ();
/* Ensure that the initial SP is correctly aligned. */
{