From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7507 invoked by alias); 15 Nov 2008 18:46:51 -0000 Received: (qmail 7441 invoked by uid 22791); 15 Nov 2008 18:46:51 -0000 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 15 Nov 2008 18:46:15 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 049382A95D7 for ; Sat, 15 Nov 2008 13:46:14 -0500 (EST) 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 p3ze4e2sqWlN for ; Sat, 15 Nov 2008 13:46:13 -0500 (EST) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id BD5C22A95D5 for ; Sat, 15 Nov 2008 13:46:13 -0500 (EST) Received: by joel.gnat.com (Postfix, from userid 1000) id 917BFE7ACD; Sat, 15 Nov 2008 10:46:11 -0800 (PST) Date: Sun, 16 Nov 2008 08:17:00 -0000 From: Joel Brobecker To: gdb-patches@sourceware.org Subject: Re: [RFA/RFC] new setting against auto-answer? (because "input not from terminal") Message-ID: <20081115184611.GJ12802@adacore.com> References: <20081025010445.GC29038@adacore.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20081025010445.GC29038@adacore.com> User-Agent: Mutt/1.4.2.2i 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-11/txt/msg00395.txt.bz2 > 2008-10-24 Joel Brobecker > > * top.c (interactive_mode_auto, interactive_mode_on) > (interactive_mode_off, interactive_mode_enum, interactive_mode): > New static globals. > (show_interactive_mode): New function. > (input_from_terminal_p): If interactive_mode is not auto, then > use that rather than checking the stdin settings. > (init_main): Add "set/show interactive-mode" command. It didn't feel like there was a lot of interest in this feature, so I'm not going to push it any further. Please scream if you'd actually like to see it included in GDB - as pointed out by Tom, I need to improve it a little bit (which I'll do for our own tree anyways). In the meantime, we'll keep this change local to AdaCore's GDB. -- Joel