From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15084 invoked by alias); 10 Jan 2002 19:10:04 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 14968 invoked from network); 10 Jan 2002 19:09:59 -0000 Received: from unknown (HELO cygnus.com) (205.180.230.5) by sources.redhat.com with SMTP; 10 Jan 2002 19:09:59 -0000 Received: from cse.cygnus.com (cse.sfbay.redhat.com [205.180.230.236]) by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id LAA12025; Thu, 10 Jan 2002 11:09:56 -0800 (PST) Received: (from kev@localhost) by cse.cygnus.com (8.11.6/8.11.6) id g0AJ9XV05068; Thu, 10 Jan 2002 12:09:33 -0700 Date: Thu, 10 Jan 2002 11:10:00 -0000 From: Kevin Buettner Message-Id: <1020110190932.ZM5067@localhost.localdomain> In-Reply-To: Michael Elizabeth Chastain "Re: Changing the C/C++ compiler for gdb testsuite runs" (Jan 10, 10:58am) References: <200201101658.KAA16306@duracef.shout.net> X-Mailer: Z-Mail (4.0.1 13Jan97 Caldera) To: Michael Elizabeth Chastain , Richard.Earnshaw@arm.com Subject: Re: Changing the C/C++ compiler for gdb testsuite runs Cc: gdb@sources.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2002-01/txt/msg00101.txt.bz2 On Jan 10, 10:58am, Michael Elizabeth Chastain wrote: > If you build gcc and gdb in a unified build tree then dejagnu will find > and use the uninstalled compiler in the unified build tree, even in > preference to $PATH. That behaviour actually got in my way so I stopped > using unified trees. Here's one way to use a different compiler in a unified tree... 1) In gdb/testsuite (in your build directory), do make site.exp 2) Add lines similar to the following to the end of gdb/testsuite/site.exp: set CC_FOR_TARGET "/some/other/path/to/gcc" set CXX_FOR_TARGET "/some/other/path/to/g++" If anyone knows of other (more elegant) tricks that can be used to accomplish the same thing, I'd like to hear about them... Kevin