From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15924 invoked by alias); 16 Nov 2004 22:29:18 -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 15856 invoked from network); 16 Nov 2004 22:29:09 -0000 Received: from unknown (HELO pippin.tausq.org) (64.81.244.94) by sourceware.org with SMTP; 16 Nov 2004 22:29:09 -0000 Received: by pippin.tausq.org (Postfix, from userid 1000) id 4DFC2CD666; Tue, 16 Nov 2004 14:29:11 -0800 (PST) Date: Tue, 16 Nov 2004 22:29:00 -0000 From: Randolph Chung To: gdb-patches@sources.redhat.com Subject: [RFA] unload.exp path fix Message-ID: <20041116222911.GY15714@tausq.org> Reply-To: Randolph Chung Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-GPG: for GPG key, see http://www.tausq.org/gpg.txt User-Agent: Mutt/1.5.5.1+cvs20040105i X-SW-Source: 2004-11/txt/msg00347.txt.bz2 According to gdb.exp, gdb_get_line_number takes paths relative to ${srcdir}/${subdir}, so we should not pass in ${srcdir}/${subdir}. without this fix, i am seeing: ERROR: couldn't open "../../../gdb-cvs/gdb/testsuite/gdb.base/../../../gdb-cvs/gdb/testsuite/gdb.base/unloadshr.c": no such file or directory ok? randolph 2004-11-16 Randolph Chung testsuite/ * gdb.base/unload.exp: Pass relative path to gdb_get_line_number. Index: testsuite/gdb.base/unload.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.base/unload.exp,v retrieving revision 1.4 diff -u -p -r1.4 unload.exp --- testsuite/gdb.base/unload.exp 6 Sep 2004 11:09:46 -0000 1.4 +++ testsuite/gdb.base/unload.exp 16 Nov 2004 22:24:54 -0000 @@ -117,7 +117,7 @@ gdb_test "info break" \ \[0-9\]+\[\t \]+breakpoint keep y.*PENDING.*shrfunc1.*" \ "single pending breakpoint info" -set unloadshr_line [gdb_get_line_number "unloadshr break" ${srcdir}/${subdir}/${libsrcfile}] +set unloadshr_line [gdb_get_line_number "unloadshr break" ${libsrcfile}] gdb_test "run" \ "Starting program.*unload.* -- Randolph Chung Debian GNU/Linux Developer, hppa/ia64 ports http://www.tausq.org/