From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9743 invoked by alias); 1 Apr 2009 17:01:57 -0000 Received: (qmail 8649 invoked by uid 22791); 1 Apr 2009 17:01:52 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 01 Apr 2009 17:01:47 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 1008510DD7; Wed, 1 Apr 2009 17:01:45 +0000 (GMT) Received: from caradoc.them.org (209.195.188.212.nauticom.net [209.195.188.212]) by nan.false.org (Postfix) with ESMTP id D29DC10A46; Wed, 1 Apr 2009 17:01:44 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1Lp3or-0002cH-D3; Wed, 01 Apr 2009 13:01:41 -0400 Date: Wed, 01 Apr 2009 17:01:00 -0000 From: Daniel Jacobowitz To: Joel Brobecker Cc: Marc Khouzam , Paul Koning , gdb@sourceware.org Subject: Re: RecordReplay: Default answer for changing memory Message-ID: <20090401170141.GA9657@caradoc.them.org> Mail-Followup-To: Joel Brobecker , Marc Khouzam , Paul Koning , gdb@sourceware.org References: <6D19CA8D71C89C43A057926FE0D4ADAA072F8043@ecamlmw720.eamcs.ericsson.se> <18898.22572.431889.661694@gargle.gargle.HOWL> <6D19CA8D71C89C43A057926FE0D4ADAA072F8143@ecamlmw720.eamcs.ericsson.se> <20090401024323.GA8930@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090401024323.GA8930@adacore.com> User-Agent: Mutt/1.5.17 (2008-05-11) 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: 2009-04/txt/msg00005.txt.bz2 On Tue, Mar 31, 2009 at 07:43:23PM -0700, Joel Brobecker wrote: > > In defaulted_query() GDB bases itself on input_from_terminal_p() and > > figures out that there is no terminal and answers the prompt > > automatically. I'm not exactly sure how to prevent that from > > happening... > > The IDE should probably create a pseudo-terminal. That's what GPS > does, as well as what we do when we test GDB (using expect). I don't think it's a good idea to treat the MI interface as a terminal, in any circumstance. The MI protocol does not allow for unformatted queries at any random point, which is where you'll get them if you don't disable all queries. If there's a query that is useful to the front end it should become explicit. -- Daniel Jacobowitz CodeSourcery