From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29533 invoked by alias); 11 Feb 2004 14:47:57 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 29524 invoked from network); 11 Feb 2004 14:47:56 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sources.redhat.com with SMTP; 11 Feb 2004 14:47:56 -0000 Received: from drow by nevyn.them.org with local (Exim 4.30 #1 (Debian)) id 1Aqved-000098-8n; Wed, 11 Feb 2004 09:47:55 -0500 Date: Wed, 11 Feb 2004 14:47:00 -0000 From: Daniel Jacobowitz To: Andrew Cagney Cc: gdb@sources.redhat.com Subject: Re: Pending breakpoints and scripts Message-ID: <20040211144755.GA487@nevyn.them.org> Mail-Followup-To: Andrew Cagney , gdb@sources.redhat.com References: <4027E74B.6090805@gnu.org> <20040209223227.GA7344@nevyn.them.org> <40294BA1.3020906@gnu.org> <20040210222616.GA32636@nevyn.them.org> <402A3CBB.1060508@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <402A3CBB.1060508@gnu.org> User-Agent: Mutt/1.5.1i X-SW-Source: 2004-02/txt/msg00110.txt.bz2 On Wed, Feb 11, 2004 at 09:31:23AM -0500, Andrew Cagney wrote: > > >>>I'd rather not reverse the question. We could check from_tty at the > >>>call site, and not set pending breakpoints if no tty... > > > >> > >>Why? > > > > > >Well, how would you word it? It makes more intuitive sense to me to > >answer 'y' to create something special and 'n' to do nothing, than the > >other way around. > > Something like: > > "Discard breakpoint, rather than mark it pending?" > > is a guess. That's why I don't want to reverse the question - I find that really unintuitive. Perhaps it's just me. > The real problem here is with batch scripts, the change breaks existing > script behavior (which is never a good thing). > > How about this, we introduce: > nquery() > yquery() > where the default (batch mode, and when return is pressed is n/y > respectively). We'd need the language police to look over the interface > but should otherwize be ok. Works for me. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer