From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12061 invoked by alias); 6 Aug 2004 16:06:26 -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 12054 invoked from network); 6 Aug 2004 16:06:25 -0000 Received: from unknown (HELO granger.mail.mindspring.net) (207.69.200.148) by sourceware.org with SMTP; 6 Aug 2004 16:06:25 -0000 Received: from user-119a90a.biz.mindspring.com ([66.149.36.10] helo=berman.michael-chastain.com) by granger.mail.mindspring.net with esmtp (Exim 3.33 #1) id 1Bt7Ed-0005qk-00; Fri, 06 Aug 2004 12:06:23 -0400 Received: from mindspring.com (localhost [127.0.0.1]) by berman.michael-chastain.com (Postfix) with SMTP id 2D4EC4B102; Fri, 6 Aug 2004 12:06:21 -0400 (EDT) Date: Fri, 06 Aug 2004 16:06:00 -0000 From: Michael Chastain To: cagney@gnu.org Subject: Re: gdb.mi/*.exp and absolute line numbers Cc: jimb@redhat.com, gdb@sources.redhat.com, ezannoni@redhat.com, cagney@redhat.com Message-ID: <4113AC7D.nailD201292RT@mindspring.com> References: <4111FC04.nailD7G1U3QKS@mindspring.com> <411399C4.9060108@gnu.org> In-Reply-To: <411399C4.9060108@gnu.org> User-Agent: nail 10.8 6/28/04 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2004-08/txt/msg00106.txt.bz2 Andrew Cagney wrote: > (What happens with a soft-link or file copy (where the file name isn't > in $srcdir) as is done with the asm tests). This call would stop working: [gdb_get_line_number "foo" arch.inc] However this call would work fine: [gdb_get_line_number "foo" ${asm-arch}.inc] Fortunately there are no such calls in the corpus, so it won't hurt when I change the semantics from "gdb looks for the file on the host machine" to "tcl looks for the file on the build machine". The test script always has to know the names of the files on the build machine, in order to get them to the host machine in the first place. Something like gdb.stabs/weird.exp would be more painful, because it actually runs 'sed' on the *host* machine to preprocess files before feeding them to gdb_compile. For something like that, if it called gdb_get_line_number, I would have to rip out the call and replace it with an explicit call to "gdb_test search". Michael C