This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[RFA] unload.exp path fix
- From: Randolph Chung <randolph at tausq dot org>
- To: gdb-patches at sources dot redhat dot com
- Date: Tue, 16 Nov 2004 14:29:11 -0800
- Subject: [RFA] unload.exp path fix
- Reply-to: Randolph Chung <randolph at tausq dot org>
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 <tausq@debian.org>
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/