This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [rfc] Delay deletion of step-resume breakpoints
- From: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- To: drow at false dot org
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 13 Aug 2007 23:13:32 +0200 (CEST)
- Subject: Re: [rfc] Delay deletion of step-resume breakpoints
- References: <20070813210326.GA24049@caradoc.them.org>
> Date: Mon, 13 Aug 2007 17:03:26 -0400
> From: Daniel Jacobowitz <drow@false.org>
>
> The problem with writing a test case is that you need a step resume
> breakpoint in a non-current thread when that thread exits. This is
> timing sensitive and I haven't had any luck reproducing it today.
>
> Does anyone else think this patch is right (or wrong)?
The change you made to the comment:
> /* NOTE: this will take care of any left-over step_resume breakpoints,
> - but not any user-specified thread-specific breakpoints. */
> + but not any user-specified thread-specific breakpoints. We can not
> + delete the breakpoint straight-off, because the inferior might not
> + be stopped at the moment. */
Makes me suspect this is just a workaround for another bug, the bug
being that the inferior isn't properly stopped when this code gets
called.
Mark