This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[RFA] testsuite/gdb.base/fullname.exp fix
- From: "Pierre Muller" <muller at ics dot u-strasbg dot fr>
- To: <gdb-patches at sourceware dot org>
- Date: Sat, 20 Jun 2009 00:15:08 +0200
- Subject: [RFA] testsuite/gdb.base/fullname.exp fix
fullname.exp currently fails compilation
of windows targets because it tries to recompile
the executable, while it is still running under GDB.
This patch exits GDB before recompilation.
Is this patch OK?
Pierre Muller
Pascal language support maintainer for GDB
PS: Applying this patch to cygwin reveals a
problem concerning the set_unbuffered_mode object.
This file is added as an additional object for linking,
but it is added without path information, and this
does not work inside fullname.exp test, as the
working directory is moved here on purpose
to check GDB's ability to handle different
relative path names for sources in debug information.
Does anyone have an idea how to fix this?
2009-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
* fullname.exp: Exit gdb before recompile as some operating systems
lock the executable while it is running.
Index: src/gdb/testsuite/gdb.base/fullname.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/fullname.exp,v
retrieving revision 1.3
diff -u -p -r1.3 fullname.exp
--- src/gdb/testsuite/gdb.base/fullname.exp 3 Jan 2009 05:58:03 -0000
1.3
+++ src/gdb/testsuite/gdb.base/fullname.exp 19 Jun 2009 21:55:01 -0000
@@ -71,12 +71,12 @@ if { [gdb_breakpoint ${objdir}/${subdir}
fail $msg
}
+gdb_exit
# Build the test executable using a relative path.
if { [gdb_compile "${subdir}/tmp-${srcfile}" "${binfile}" executable
{debug}] != "" } {
return -1
}
-gdb_exit
gdb_start
gdb_load ${binfile}
@@ -97,6 +97,7 @@ if { [gdb_breakpoint ${objdir}/${subdir}
fail $msg
}
+gdb_exit
# Build the test executable using relative paths not relative to the
directory
# we'll run GDB from.
@@ -108,7 +109,6 @@ if { [gdb_compile "tmp-${srcfile}" "${t
}
cd $save_pwd
-gdb_exit
gdb_start
gdb_load ${binfile}