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: [rfc] Delay deletion of step-resume breakpoints


> 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


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