This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Remove redundant resetting of stepping_past_singlestep_breakpoint
- From: Pedro Alves <pedro at codesourcery dot com>
- To: gdb-patches at sourceware dot org
- Cc: Doug Evans <dje at google dot com>
- Date: Tue, 2 Dec 2008 16:04:43 +0000
- Subject: Re: [RFA] Remove redundant resetting of stepping_past_singlestep_breakpoint
- References: <20081202043154.D72E81C7A0B@localhost>
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