This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] rs6000-tdep.c: Fix `return' from stop in call dummy
- To: "Peter.Schauer" <Peter dot Schauer at regent dot e-technik dot tu-muenchen dot de>, gdb-patches at sourceware dot cygnus dot com
- Subject: Re: [RFA] rs6000-tdep.c: Fix `return' from stop in call dummy
- From: Kevin Buettner <kevinb at cygnus dot com>
- Date: Sat, 23 Sep 2000 21:55:38 -0700
- References: <200009231031.MAA01359@reisser.regent.e-technik.tu-muenchen.de>
On Sep 23, 11:31am, Peter.Schauer wrote:
> [RFA] rs6000-tdep.c: Fix `return' from stop in call dummy
>
> If a `return' is issued after a stop in a call dummy, rs6000_pop_frame
> currently does not recognize the dummy frame, as it is testing for
> stop_stack_dummy (which is a hack anyway), instead of using PC_IN_CALL_DUMMY.
>
> Here is a fix, it will be needed for the upcoming additional callfuncs
> testcases:
>
> * rs6000-tdep.c (rs6000_pop_frame): Use PC_IN_CALL_DUMMY to test
> for call dummy instead of accessing stop_stack_dummy, which does
> not work if we `return' from a stop in a call dummy.
> (rs6000_gdbarch_init): Use generic_save_dummy_frame_tos for
> dummy_frame_tos function to make PC_IN_CALL_DUMMY work.
Approved. (Thanks.)
Kevin