From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21193 invoked by alias); 5 Dec 2002 20:50:07 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 21186 invoked from network); 5 Dec 2002 20:50:06 -0000 Received: from unknown (HELO jackfruit.Stanford.EDU) (171.64.38.136) by sources.redhat.com with SMTP; 5 Dec 2002 20:50:06 -0000 Received: (from carlton@localhost) by jackfruit.Stanford.EDU (8.11.6/8.11.6) id gB5Ko5m32322; Thu, 5 Dec 2002 12:50:05 -0800 X-Authentication-Warning: jackfruit.Stanford.EDU: carlton set sender to carlton@math.stanford.edu using -f To: Daniel Jacobowitz Cc: Fernando Nasser , gdb-patches@sources.redhat.com Subject: Re: [RFA/testsuite] Shorten the maint.exp symbols tests References: <20021022015852.GA22669@nevyn.them.org> <3DECCDD4.1090808@redhat.com> <20021204222031.GA1112@nevyn.them.org> From: David Carlton Date: Thu, 05 Dec 2002 12:50:00 -0000 In-Reply-To: Message-ID: User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Common Lisp) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2002-12/txt/msg00177.txt.bz2 On 04 Dec 2002 14:47:20 -0800, David Carlton said: > On Wed, 4 Dec 2002 17:20:32 -0500, Daniel Jacobowitz said: >> Blech! I'm not sure what to do about this. Somehow we'd need to >> figure out how the file was compiled - is the logic to decide this >> in gdb_compile? Does the compiler clean it up on its own? Maybe if >> we pass an explicit srcdir to gdb_compile we can get consistent >> results here. > It's certainly not obvious to me how to fix the testsuite in this > situation. After all, gdb_compile gets passed > ${srcdir}/${subdir}/${srcfile}, which is exactly what you look for in > your maint print symbols call ("./gdb.base/break.c" in my example), so > I have a hard time imagining what a simple fix might be to the > testsuite that would allow it to guess the right thing (barring some > fragile hack like checking if $srcdir is "."). I thought of another possible solution: maint.exp could copy ${srcdir}/${subdir}/${srcfile} to the current directory, then just compile ${srcfile} without any path, and delete the stuff in the current directory at the end of the tests. That's still not a great solution, and I think probably the ultimate solution is to teach maint print about canonical filenames, but it might work for now. David Carlton carlton@math.stanford.edu