From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20386 invoked by alias); 30 Nov 2007 01:25:22 -0000 Received: (qmail 20349 invoked by uid 22791); 30 Nov 2007 01:25:22 -0000 X-Spam-Check-By: sourceware.org Received: from bluesmobile.specifix.com (HELO bluesmobile.specifix.com) (216.129.118.140) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 30 Nov 2007 01:25:14 +0000 Received: from [127.0.0.1] (bluesmobile.specifix.com [216.129.118.140]) by bluesmobile.specifix.com (Postfix) with ESMTP id 8CCE23C175; Thu, 29 Nov 2007 17:25:12 -0800 (PST) Subject: Re: Keeping breakpoints inserted From: Michael Snyder To: Vladimir Prus Cc: gdb@sources.redhat.com In-Reply-To: <200711292224.23659.vladimir@codesourcery.com> References: <200711292224.23659.vladimir@codesourcery.com> Content-Type: text/plain Date: Fri, 30 Nov 2007 01:25:00 -0000 Message-Id: <1196385134.2501.144.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.10.3 (2.10.3-4.fc7) Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-11/txt/msg00282.txt.bz2 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?