[RFA] unload.exp path fix
Andrew Cagney
cagney@gnu.org
Tue Nov 16 23:57:00 GMT 2004
Randolph Chung wrote:
> 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
Hmm, yes (but please state what it as tested on)
> -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.*
Andrew
More information about the Gdb-patches
mailing list