This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
How little dummy is needed for inferior function calls?
- From: Andrew Cagney <ac131313 at redhat dot com>
- To: gdb at sources dot redhat dot com
- Date: Fri, 28 Mar 2003 16:14:45 -0500
- Subject: How little dummy is needed for inferior function calls?
Hello,
If people haven't guessed, I got badly distracted by how complicated it
was to get inferior function calls working - two many arbitrary methods
were required.
Anyway, I think it is about ready to be pruned back to:
push_dummy_call()
unwind_dummy_id()
push_dummy_frame_tos() (successor?)
frame_align()
and, optionally, for targets with the breakpoint on the stack:
push_dummy_breakpoint()
not bad when compared to the old list:
STACK_ALIGN
PUSH_DUMMY_FRAME
PUSH_ARGUMENTS
FIX_CALL_DUMMY
CALL_DUMMY_STACK_ADJUST
CALL_DUMMY_WORDS
CALL_DUMMY_P
PC_IN_CALL_DUMMY
CALL_DUMMY_LENGTH
CALL_DUMMY_BREAKPOINT_OFFSET_P
CALL_DUMMY_BREAKPOINT_OFFSET
CALL_DUMMY_START_OFFSET
CALL_DUMMY_ADDRESS
CALL_DUMMY_LOCATION
USE_GENERIC_DUMMY_FRAMES
TARGET_WRITE_SP
The new list is even short enough to document :-)
Andrew