From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4086 invoked by alias); 24 Apr 2004 00:03:11 -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 3961 invoked from network); 24 Apr 2004 00:03:08 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 24 Apr 2004 00:03:08 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.10/8.12.10) with ESMTP id i3O038KG001567 for ; Fri, 23 Apr 2004 20:03:08 -0400 Received: from localhost.redhat.com (to-dhcp51.toronto.redhat.com [172.16.14.151]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i3O037p30989 for ; Fri, 23 Apr 2004 20:03:07 -0400 Received: from gnu.org (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id CB0792BB4; Fri, 23 Apr 2004 15:15:08 -0400 (EDT) Message-ID: <40896B3C.2010203@gnu.org> Date: Sat, 24 Apr 2004 00:03:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-GB; rv:1.4.1) Gecko/20040217 MIME-Version: 1.0 To: Manoj Iyer Cc: gdb@sources.redhat.com Subject: Re: testsuite questions. References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-04/txt/msg00157.txt.bz2 > I am trying to compare the test results from the GDB I built vs the GDB > installed on the system. I found that if I set GDB "/usr/bin/mygdb" in the > testcases.exp file, the testcase uses my custom GDB instead of searching > for one in src/gdb/. > > 1. Is there any enviroment variable that I can set to make the testcase > use my custom GDB, for instance the one in /usr/local/bin/gdb? I don't remember. > Also, when the testcase '.c' file is compiled, the compile line ignores > any CFLAGS or CC variables that I set, I found that gdb_compile and > target-compile use CFLAGS_FOR_TARGET and CC_FOR_TARGET varialbles. I would > like to use my custom compiler and compile the testcase as a 64bit binary > (-m64 flag). You need to pass the stuff to dejagnu. For this, I'd recommend: make check 'RUNTESTFLAFS=--target_board=unix/-m32\ unix/-m64' however, 'RUNTESTFLAGS=... CFLAGS_FOR_TARGET=...' also has an effect. > 2. Is there any enviroment variable I can use to control the value of > these variables? > > The intention is to disconnect the testsuite from using the system > utilities and GDB that gets built, but use the testcase to test a > different binary of GDB that I have in a separate local/system directory. > This way I can compare the test results from system gdb (or any gdb binary > forthat matter) with the one that I downloaded from cvs. > > Any input is greatly appreciated. > > Thanks > Manjo