[RFA] Remove redundant resetting of stepping_past_singlestep_breakpoint

Pedro Alves pedro@codesourcery.com
Tue Dec 2 16:05:00 GMT 2008


On Tuesday 02 December 2008 04:31:54, Doug Evans wrote:
> Hi.  While researching my prepare_to_proceed problem, I found this
> in handle_inferior_event.
> 
> Just above this line:
> 
>   stepping_past_singlestep_breakpoint = 0;
> 
> there's this:
> 
>   if (stepping_past_singlestep_breakpoint)
>     {
>       gdb_assert (singlestep_breakpoints_inserted_p);
>       gdb_assert (ptid_equal (singlestep_ptid, ecs->ptid));
>       gdb_assert (!ptid_equal (singlestep_ptid, saved_singlestep_ptid));
> 
>       stepping_past_singlestep_breakpoint = 0;
> 
> 
> Ok to check in?

OK.

> 
> 2008-12-01  Doug Evans  <dje@google.com>
> 
> 	* infrun.c (handle_inferior_event): Remove redundant resetting of
> 	stepping_past_singlestep_breakpoint.

Kudos for a shorter handle_inferior_event!

-- 
Pedro Alves



More information about the Gdb-patches mailing list