From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17902 invoked by alias); 20 Jun 2014 19:00:01 -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 17880 invoked by uid 89); 20 Jun 2014 19:00:00 -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; Fri, 20 Jun 2014 18:59:59 +0000 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0N7H00600DG9A700@a-mtaout22.012.net.il> for gdb-patches@sourceware.org; Fri, 20 Jun 2014 21:59:56 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N7H0067IE3W5970@a-mtaout22.012.net.il>; Fri, 20 Jun 2014 21:59:56 +0300 (IDT) Date: Fri, 20 Jun 2014 19:00:00 -0000 From: Eli Zaretskii Subject: Re: (Doc ping [for news and manual]) -- [PATCH 14/14] the "compile" command In-reply-to: <871tujabhh.fsf@fleche.redhat.com> To: Tom Tromey Cc: pmuldoon@redhat.com, gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <83ha3fque7.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> X-IsSubscribed: yes X-SW-Source: 2014-06/txt/msg00779.txt.bz2 > 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. > See the gcc patch series for details. I'd appreciate a URL (assuming this is somewhere in GCC mailing lists). Thanks.