From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13383 invoked by alias); 21 Jun 2014 07:32:10 -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 13368 invoked by uid 89); 21 Jun 2014 07:32:09 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: mtaout22.012.net.il Received: from mtaout22.012.net.il (HELO mtaout22.012.net.il) (80.179.55.172) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 21 Jun 2014 07:32:08 +0000 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0N7I00C00C79OQ00@a-mtaout22.012.net.il> for gdb-patches@sourceware.org; Sat, 21 Jun 2014 10:32:05 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N7I00CVGCXHFV50@a-mtaout22.012.net.il>; Sat, 21 Jun 2014 10:32:05 +0300 (IDT) Date: Sat, 21 Jun 2014 07:32:00 -0000 From: Eli Zaretskii Subject: Re: (Doc ping [for news and manual]) -- [PATCH 14/14] the "compile" command In-reply-to: <83ha3fque7.fsf@gnu.org> To: tromey@redhat.com, pmuldoon@redhat.com Cc: gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <83oaxmu39x.fsf@gnu.org> References: <1400253995-12333-1-git-send-email-tromey@redhat.com> <1400253995-12333-15-git-send-email-tromey@redhat.com> <539EBEF2.5010703@redhat.com> <83ha3kvpv5.fsf@gnu.org> <53A3FC20.4030408@redhat.com> <837g4bsys6.fsf@gnu.org> <53A40662.60708@redhat.com> <871tujabhh.fsf@fleche.redhat.com> <83ha3fque7.fsf@gnu.org> X-IsSubscribed: yes X-SW-Source: 2014-06/txt/msg00790.txt.bz2 > Date: Fri, 20 Jun 2014 21:59:44 +0300 > From: Eli Zaretskii > Cc: pmuldoon@redhat.com, gdb-patches@sourceware.org > > > From: Tom Tromey > > Cc: Eli Zaretskii , gdb-patches@sourceware.org > > Date: Fri, 20 Jun 2014 08:42:34 -0600 > > > > Eli> That's not what I meant. Suppose I have 2 compilers installed, one > > Eli> called 'gcc', the other 'gcc472'. (They could also be in different > > Eli> directories, even not on PATH.) The program I'm debugging was > > Eli> compiled with gcc472. How will GDB know to invoke that executable? > > Eli> Also, how would it know the command-line arguments required to produce > > Eli> a code that will work well with the rest of the program being debugged > > Eli> (the code I compile can call functions in the program, right?)? > > > > Phil> Tom could maybe answer this better. There was recent work on the GCC > > Phil> triplet and PATH searching over on GCC for the plugin. > > > > Yes, the new version searches the path for something matching the > > correct GNU configury triplet. > > But the triplet is not enough, I could have more than one compiler > installed for the same triplet. > > Besides, can we reliably assume that there's a compiler whose name > matches the triplet? On my MinGW installation of GCC, I don't have > i686-pc-minwg32-gcc anywhere. To make my comments more practical, I think this feature will be much more useful if it includes user options or other facilities through which the user could specify the compiler to invoke. (I see there's already a provision for specifying compilation switches.) Thanks.