From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8689 invoked by alias); 25 Oct 2008 01:41:01 -0000 Received: (qmail 8674 invoked by uid 22791); 25 Oct 2008 01:41:00 -0000 X-Spam-Check-By: sourceware.org Received: from tully.CS.Berkeley.EDU (HELO tully.CS.Berkeley.EDU) (128.32.153.206) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 25 Oct 2008 01:40:25 +0000 Received: from tully.CS.Berkeley.EDU (localhost [127.0.0.1]) by tully.CS.Berkeley.EDU (8.13.8+Sun/8.13.8) with ESMTP id m9P1e1ho011456; Fri, 24 Oct 2008 18:40:01 -0700 (PDT) Message-Id: <200810250140.m9P1e1ho011456@tully.CS.Berkeley.EDU> To: Joel Brobecker cc: gdb-patches@sourceware.org Subject: Re: [RFA/RFC] new setting against auto-answer? (because "input not from terminal") Reply-To: Hilfinger@CS.Berkeley.EDU In-reply-to: Your message of Fri, 24 Oct 2008 18:04:45 -0700. <20081025010445.GC29038@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <11452.1224898801.1@tully.CS.Berkeley.EDU> Date: Sat, 25 Oct 2008 01:41:00 -0000 From: Paul Hilfinger Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-10/txt/msg00627.txt.bz2 > If you have been in that situation, and you use a MinGW debugger, > then you probably know that there are a few issues with the "terminal". > One of the issues that is causing us some trouble is the fact that > GDB automatically assumes the default answer for its y/n queries. > For instance: > > (top-gdb) start > The program being debugged has been started already. > Start it from the beginning? (y or n) [answered Y; input not from terminal] > [...] > > I propose a new "set/show interactive-mode (auto|on|off)" command > to allow the user to override what GDB detects. By default, GDB > still probes stdin and determines from there what mode should be > used. But if the user knows what he's doing, he can force it in > situations where GDB's default behavior is less useful. If the behavior of GDB on other OS's is OK, shouldn't this be a configuration parameter of some sort, preferably set automatically by configure? Paul Hilfinger