From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 125864 invoked by alias); 27 Apr 2015 15:47:47 -0000 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 Received: (qmail 125847 invoked by uid 89); 27 Apr 2015 15:47:47 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Mon, 27 Apr 2015 15:47:45 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t3RFlip9019871 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Mon, 27 Apr 2015 11:47:44 -0400 Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t3RFlgTh017447; Mon, 27 Apr 2015 11:47:43 -0400 Message-ID: <553E5A1E.5000003@redhat.com> Date: Mon, 27 Apr 2015 15:47:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Jan Kratochvil , gdb-patches@sourceware.org CC: Phil Muldoon Subject: Re: [PATCH v3 2/2] compile: Add 'set compile-gcc' References: <20150423203402.23140.92757.stgit@host1.jankratochvil.net> <20150423203413.23140.35224.stgit@host1.jankratochvil.net> <20150423210815.GA8626@host1.jankratochvil.net> In-Reply-To: <20150423210815.GA8626@host1.jankratochvil.net> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-SW-Source: 2015-04/txt/msg00996.txt.bz2 On 04/23/2015 10:08 PM, Jan Kratochvil wrote: > @@ -688,4 +704,14 @@ String quoting is parsed like in shell, for example:\n\ > " -fno-stack-protector" > ); > set_compile_args (compile_args, 0, NULL); > + > + add_setshow_filename_cmd ("compile-gcc", class_support, > + &compile_gcc, > + _("Set compile command GCC driver filename"), > + _("Show compile command GCC driver filename"), > + _("\ > +It should be absolute pathname to the gcc executable.\n\ > +If empty the default target triplet will be searched in $PATH."), > + NULL, show_compile_gcc, &setlist, &showlist); > + compile_gcc = xstrdup (""); ... > +@table @code > +@item set compile-gcc > +@cindex compile command driver filename override > +Set compilation command used for compiling and injecting code with the > +@code{compile} commands. If this option is not set (it is set to > +an empty string), the search described above will occur --- that is the > +default. > + IIUC, gdb will always apply the same search as when this is set empty? That is, the user can also set this to a regex. So it seems to me that the documentation (manual and help) doesn't match the implementation? Thanks, Pedro Alves