This is the mail archive of the gdb-patches@sourceware.org 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]
Other format: [Raw text]

Re: [RFA] Remove redundant resetting of stepping_past_singlestep_breakpoint


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


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