From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8581 invoked by alias); 1 Apr 2009 02:43:34 -0000 Received: (qmail 8572 invoked by uid 22791); 1 Apr 2009 02:43:33 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 01 Apr 2009 02:43:27 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 1F3602010DD; Tue, 31 Mar 2009 22:43:26 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 4e8cuAqCOqkm; Tue, 31 Mar 2009 22:43:26 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 96AD92010D1; Tue, 31 Mar 2009 22:43:25 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id 4EE56F5A6F; Tue, 31 Mar 2009 19:43:23 -0700 (PDT) Date: Wed, 01 Apr 2009 02:43:00 -0000 From: Joel Brobecker To: Marc Khouzam Cc: Paul Koning , gdb@sourceware.org Subject: Re: RecordReplay: Default answer for changing memory Message-ID: <20090401024323.GA8930@adacore.com> References: <6D19CA8D71C89C43A057926FE0D4ADAA072F8043@ecamlmw720.eamcs.ericsson.se> <18898.22572.431889.661694@gargle.gargle.HOWL> <6D19CA8D71C89C43A057926FE0D4ADAA072F8143@ecamlmw720.eamcs.ericsson.se> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6D19CA8D71C89C43A057926FE0D4ADAA072F8143@ecamlmw720.eamcs.ericsson.se> User-Agent: Mutt/1.5.18 (2008-05-17) 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/msg00000.txt.bz2 > 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). Regarding how to prevent this, I posted a patch not too long ago that proposed the addition of a new setting, off by default, that would force the debugger to "interactive" mode (it's useful in the case when running GDB from a "cygwin" window which does NOT setup a real pseudo-terminal, but rather some pipes). I didn't feel that there was real interest in this feature, so I figured no one else was going to use it but me, and only on Windows, so I droped it. I really have to agree that Eclipse should be enhanced to allow you to choose rather than force the default, if that's really the case. But in the interim, the patch I suggested might be helpful. http://www.sourceware.org/ml/gdb-patches/2008-10/msg00626.html -- Joel