[patch rfc, rfa:doco] Working on-stack generic dummy frames
Andrew Cagney
ac131313@redhat.com
Thu May 1 21:11:00 GMT 2003
Hello,
This patch makes all the changes necessary to get breakpoint on-stack
call dummys working. Until the ``set call breakpoint-location'' command
is added, a target will need to explicitly set the call dummy location
to on stack.
I've tested it with the d10v.
The actual change involves:
- burry all the old FIX_CALL_DUMMY code in a new function
legacy_push_dummy_code (clearing the way for their deprecation)
- addition of the architecture vector method push_dummy_code that is
responsible for allocating space for a breakpoint (and anything else) on
the stack (there is a default)
- adding a d10v_push_dummy_code
This needed to handle an DADDR (the SP) vs IADDR (the BP_ADDR) problem
- pass the BP_ADDR to push_dummy_call (instead of dummy_addr)
I'll look to commit this in a few days.
Andrew
PS: Tasks, such as modifying "infrun.c" so that it will treat a SIGSEG
on a breakpoint instruction as a breakpoint, and changing the SPARC to
to this mechanism, are left as exercises for the reader :-)
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diffs
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20030501/97c77607/attachment.ksh>
More information about the Gdb-patches
mailing list