This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [RFA] rs6000-tdep.c: Fix `return' from stop in call dummy


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]