This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[RFA] unload.exp path fix


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]