This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Keeping breakpoints inserted
- From: Michael Snyder <msnyder at specifix dot com>
- To: Vladimir Prus <vladimir at codesourcery dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Thu, 29 Nov 2007 17:12:14 -0800
- Subject: Re: Keeping breakpoints inserted
- References: <200711292224.23659.vladimir@codesourcery.com>
On Thu, 2007-11-29 at 22:24 +0300, Vladimir Prus wrote:
> One of the infrastructure bits necessary for the non-stop threads
> debugging is always-inserted-breakpoints mode. If GDB has stopped
> one thread, and other threads are running, we want those other threads
> to still hit breakpoints and watchpoints. However, current GDB removes
> all breakpoints from the target before giving user a prompt, and this
> has to change.
>
> I've spend quite time examining breakpoint.c and infrun.c and
> cleaning/localizing the decisions as to when breakpoints are
> inserted/removed, and I believe I now have a fully workable plan
> to make breakpoints always inserted.
> [...]
>
> Anybody has comments on this approach?
Might there be a user preference, under some circumstances,
to NOT have them inserted while some threads run and some
are stopped?