From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1884 invoked by alias); 25 Oct 2008 13:57:32 -0000 Received: (qmail 1873 invoked by uid 22791); 25 Oct 2008 13:57:31 -0000 X-Spam-Check-By: sourceware.org Received: from mx2.redhat.com (HELO mx2.redhat.com) (66.187.237.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 25 Oct 2008 13:56:48 +0000 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id m9PDuOAM029197; Sat, 25 Oct 2008 09:56:25 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m9PDuNpm023826; Sat, 25 Oct 2008 09:56:23 -0400 Received: from opsy.redhat.com (vpn-12-162.rdu.redhat.com [10.11.12.162]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id m9PDuMuE028809; Sat, 25 Oct 2008 09:56:23 -0400 Received: by opsy.redhat.com (Postfix, from userid 500) id 5B5F988810D; Sat, 25 Oct 2008 07:56:22 -0600 (MDT) To: Joel Brobecker Cc: gdb-patches@sourceware.org Subject: Re: [RFA/RFC] new setting against auto-answer? (because "input not from terminal") References: <20081025010445.GC29038@adacore.com> From: Tom Tromey Reply-To: tromey@redhat.com X-Attribution: Tom Date: Sat, 25 Oct 2008 13:57:00 -0000 In-Reply-To: <20081025010445.GC29038@adacore.com> (Joel Brobecker's message of "Fri\, 24 Oct 2008 18\:04\:45 -0700") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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/msg00636.txt.bz2 >>>>> "Joel" == Joel Brobecker writes: Joel> +static const char *interactive_mode_enum[] = Joel> +{ Joel> + interactive_mode_auto, Joel> + interactive_mode_on, Joel> + interactive_mode_off, Joel> + NULL Joel> +}; Joel> + add_setshow_enum_cmd ("interactive-mode", class_support, I think you could use var_auto_boolean instead of var_enum here. Tom