This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: patch for remote testing, especially on cygwin
- From: Christopher Faylor <cgf at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Mon, 10 Dec 2001 14:48:21 -0500
- Subject: Re: patch for remote testing, especially on cygwin
- References: <200112082133.fB8LX8c20502@thief.cygnus.com>
FWIW, I'd rather deprecate Red Hat's
remote-testing-using-proprietary-software than attempt to fix it.
cygwin native testing should work better than remote testing.
cgf
On Sat, Dec 08, 2001 at 01:33:08PM -0800, Geoffrey Keating wrote:
>This patch makes GDB's testsuite mostly work when testing on a remote
>cygwin host.
>
>The main changes are to:
>
>- Avoid compiling files while GDB is running; remote testing can't use
> exec to start the compiler, it has to do it by sending commands down
> the telnet connection, which is problematic if a GDB is already
> running on that telnet connection.
>
>- Use the appropriate dejagnu primitives rather than UNIX command
> names, and run the commands on the right machine.
>
>I've checked that the testsuite doesn't have any extra errors with
>this patch when testing a native GDB on x86-linux.
>
>OK to commit?
>
>--
>Geoff Keating <geoffk@redhat.com>
>
>===File ~/patches/gdb-remotetest.patch======================
>Index: ChangeLog
>2001-11-29 Geoffrey Keating <geoffk@redhat.com>
>
> * gdb.base/break.exp: Quit GDB before running the compiler.
> * gdb.base/ending-run.exp: Quit GDB before running the compiler.
> Use 'file_on_host delete' rather than 'remote_exec rm -f' to
> delete files.
> * gdb.base/remote.exp: Quit GDB before running the compiler.
> * gdb.base/reread.exp: Quit GDB before running other programs.
> Use 'file rename' rather than 'shell mv'. Use 'after' rather than
> 'shell sleep'. Handle testing on remote hosts.
> * gdb.c++/member-ptr.exp: Quit GDB before running the compiler.
> * gdb.trace/actions.exp: Quit GDB before running the compiler.
> * gdb.trace/backtrace.exp: Likewise.
> * gdb.trace/circ.exp: Likewise.
> * gdb.trace/collection.exp: Likewise.
> * gdb.trace/deltrace.exp: Likewise.
> * gdb.trace/infotrace.exp: Likewise.
> * gdb.trace/limits.exp: Likewise.
> * gdb.trace/packetlen.exp: Likewise.
> * gdb.trace/passc-dyn.exp: Likewise.
> * gdb.trace/passcount.exp: Likewise.
> * gdb.trace/report.exp: Likewise.
> * gdb.trace/save-trace.exp: Likewise.
> * gdb.trace/tfind.exp: Likewise.
> * gdb.trace/tracecmd.exp: Likewise.
> * gdb.trace/while-dyn.exp: Likewise.
> * gdb.trace/while-stepping.exp: Likewise.
> * lib/insight-support.exp: Don't try to start up an Xvfb if testing
> on a remote host.
>
>Index: gdb.base/break.exp
>===================================================================
>RCS file: /cvs/src/src/gdb/testsuite/gdb.base/break.exp,v
>retrieving revision 1.9
>diff -p -u -p -r1.9 break.exp
>--- break.exp 2001/12/07 21:02:31 1.9
>+++ break.exp 2001/12/08 21:17:07
>@@ -815,6 +815,7 @@ proc test_next_with_recursion {} {
>
> test_next_with_recursion
>
>+gdb_exit
>
> #********
>
>@@ -831,7 +832,6 @@ if [get_compiler_info ${binfileo2}] {
> return -1
> }
>
>-gdb_exit
> gdb_start
> gdb_reinitialize_dir $srcdir/$subdir
> gdb_load ${binfileo2}
>Index: gdb.base/ending-run.exp
>===================================================================
>RCS file: /cvs/src/src/gdb/testsuite/gdb.base/ending-run.exp,v
>retrieving revision 1.10
>diff -p -u -p -r1.10 ending-run.exp
>--- ending-run.exp 2001/11/11 19:58:19 1.10
>+++ ending-run.exp 2001/12/08 21:17:07
>@@ -31,17 +31,16 @@ set testfile ending-run
> set srcfile ${testfile}.c
> set binfile ${objdir}/${subdir}/${testfile}
>
>-remote_exec build "rm -f ${binfile}"
>-remote_exec build "rm -f core"
>+file_on_host delete "${binfile}"
>+file_on_host delete core
>
>+gdb_exit
>
> if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
> gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."
> }
>
>
>-
>-gdb_exit
> gdb_start
> gdb_reinitialize_dir $srcdir/$subdir
> gdb_load ${binfile}
>@@ -253,15 +252,11 @@ if {![target_info exists use_cygmon] ||
> if [ regexp "No such file or directory" $exec_output] {
> pass "ls: core: No core dumped on quit"
> } else {
>- remote_exec build "rm -f core"
>+ file_on_host delete core
> fail "Core dumped on quit"
> }
> }
> }
>
>-#remote_exec build "rm -f ${binfile}"
>+#file_on_host delete "${binfile}"
> return 0
>-
>-
>-
>-
>Index: gdb.base/remote.exp
>===================================================================
>RCS file: /cvs/src/src/gdb/testsuite/gdb.base/remote.exp,v
>retrieving revision 1.3
>diff -p -u -p -r1.3 remote.exp
>--- remote.exp 2001/07/17 21:47:19 1.3
>+++ remote.exp 2001/12/08 21:17:07
>@@ -34,13 +34,12 @@ set testfile "remote"
> set srcfile ${testfile}.c
> set binfile ${objdir}/${subdir}/${testfile}
>
>-gdb_start
>-
> set result [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}]
> if {$result != "" } then {
> gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."
> }
>
>+gdb_start
>
> #
> # Part ONE: Check the down load commands
>Index: gdb.base/reread.exp
>===================================================================
>RCS file: /cvs/src/src/gdb/testsuite/gdb.base/reread.exp,v
>retrieving revision 1.4
>diff -p -u -p -r1.4 reread.exp
>--- reread.exp 2001/03/06 08:21:51 1.4
>+++ reread.exp 2001/12/08 21:17:07
>@@ -52,6 +52,8 @@ if { [gdb_compile "${srcdir}/${subdir}/
> set testfile "reread"
> set binfile ${objdir}/${subdir}/${testfile}$EXEEXT
>
>+file rename -force "${binfile1}" "${binfile}"
>+
> gdb_start
> gdb_reinitialize_dir $srcdir/$subdir
>
>@@ -60,7 +62,6 @@ set bug_id 0
>
> # Load the first executable.
>
>-gdb_test "shell mv ${binfile1} ${binfile}" "" ""
> gdb_load ${binfile}
>
> # Set a breakpoint at foo
>@@ -89,10 +90,14 @@ gdb_expect {
> # second executable into its place. Ensure that the new
> # executable is at least a second older than the old.
>
>-gdb_test "shell mv ${binfile} ${binfile1}" "" ""
>-gdb_test "shell mv ${binfile2} ${binfile}" "" ""
>-gdb_test "shell sleep 1" "" ""
>-gdb_test "shell touch ${binfile}" "" ""
>+file rename -force "${binfile}" "${binfile1}"
>+file rename "${binfile2}" "${binfile}"
>+after 1000
>+if [is_remote host ] {
>+ remote_download host "${binfile}"
>+} else {
>+ file mtime "${binfile}" [clock seconds]
>+}
>
> # Run a second time; GDB should detect that the executable has changed
> # and reset the breakpoints correctly.
>Index: gdb.c++/member-ptr.exp
>===================================================================
>RCS file: /cvs/src/src/gdb/testsuite/gdb.c++/member-ptr.exp,v
>retrieving revision 1.2
>diff -p -u -p -r1.2 member-ptr.exp
>--- member-ptr.exp 2001/03/06 08:21:53 1.2
>+++ member-ptr.exp 2001/12/08 21:17:07
>@@ -34,8 +34,6 @@ if { [skip_cplus_tests] } { continue }
>
> # Start with a fresh gdb
> gdb_exit
>-gdb_start
>-gdb_reinitialize_dir $srcdir/$subdir
>
> set prms_id 0
> set bug_id 0
>@@ -62,8 +60,6 @@ if { [gdb_compile "${srcdir}/${subdir}/
> gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."
> }
>
>-
>-gdb_exit
> gdb_start
> gdb_reinitialize_dir $srcdir/$subdir
> gdb_load ${binfile}
>Index: gdb.trace/actions.exp
>===================================================================
>RCS file: /cvs/src/src/gdb/testsuite/gdb.trace/actions.exp,v
>retrieving revision 1.2
>diff -p -u -p -r1.2 actions.exp
>--- actions.exp 2001/03/06 08:22:00 1.2
>+++ actions.exp 2001/12/08 21:17:07
>@@ -29,7 +29,6 @@ set prms_id 0
> set bug_id 0
>
> gdb_exit
>-gdb_start
>
> if [istarget "m68k-*-elf"] then {
> set binfile [board_info target d490_binfile];
>@@ -43,6 +42,7 @@ if [istarget "m68k-*-elf"] then {
> gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."
> }
> }
>+gdb_start
> gdb_reinitialize_dir $srcdir/$subdir
>
> # If testing on a remote host, download the source file.
>Index: gdb.trace/backtrace.exp
>===================================================================
>RCS file: /cvs/src/src/gdb/testsuite/gdb.trace/backtrace.exp,v
>retrieving revision 1.2
>diff -p -u -p -r1.2 backtrace.exp
>--- backtrace.exp 2001/03/06 08:22:00 1.2
>+++ backtrace.exp 2001/12/08 21:17:07
>@@ -29,12 +29,12 @@ set prms_id 0
> set bug_id 0
>
> gdb_exit
>-gdb_start
>
> if [istarget "m68k-*-elf"] then {
> load_lib "emc-support.exp";
> set srcfile gdb_c_test.c
> set binfile [board_info target d490_binfile];
>+ gdb_start
> gdb_test "set remotetimeout 6" "" ""
> set timeout 500
> gdb_target_monitor "$binfile"
>@@ -57,6 +57,7 @@ if [istarget "m68k-*-elf"] then {
> executable {debug additional_flags=-w}] != "" } {
> gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."
> }
>+ gdb_start
> gdb_load $binfile
> gdb_test "tstop" "" ""
> gdb_test "tfind none" "" ""
>Index: gdb.trace/circ.exp
>===================================================================
>RCS file: /cvs/src/src/gdb/testsuite/gdb.trace/circ.exp,v
>retrieving revision 1.2
>diff -p -u -p -r1.2 circ.exp
>--- circ.exp 2001/03/06 08:22:00 1.2
>+++ circ.exp 2001/12/08 21:17:07
>@@ -31,6 +31,10 @@ if $tracelevel then {
> set prms_id 0
> set bug_id 0
>
>+# Start with a fresh gdb.
>+
>+gdb_exit
>+
> set testfile "circ"
> set srcfile ${testfile}.c
> set binfile $objdir/$subdir/$testfile
>@@ -195,9 +199,6 @@ proc gdb_trace_circular_tests { } {
> return 0;
> }
>
>-# Start with a fresh gdb.
>-
>-gdb_exit
> gdb_start
> gdb_reinitialize_dir $srcdir/$subdir
> gdb_load $binfile
>Index: gdb.trace/collection.exp
>===================================================================
>RCS file: /cvs/src/src/gdb/testsuite/gdb.trace/collection.exp,v
>retrieving revision 1.2
>diff -p -u -p -r1.2 collection.exp
>--- collection.exp 2001/03/06 08:22:00 1.2
>+++ collection.exp 2001/12/08 21:17:07
>@@ -31,6 +31,8 @@ if $tracelevel then {
> set prms_id 0
> set bug_id 0
>
>+gdb_exit
>+
> set testfile "collection"
> set srcfile ${testfile}.c
> set binfile $objdir/$subdir/$testfile
>@@ -604,7 +606,6 @@ proc gdb_trace_collection_test { } {
>
> # Start with a fresh gdb.
>
>-gdb_exit
> gdb_start
> gdb_reinitialize_dir $srcdir/$subdir
> gdb_load $binfile
>Index: gdb.trace/deltrace.exp
>===================================================================
>RCS file: /cvs/src/src/gdb/testsuite/gdb.trace/deltrace.exp,v
>retrieving revision 1.3
>diff -p -u -p -r1.3 deltrace.exp
>--- deltrace.exp 2001/04/17 20:16:31 1.3
>+++ deltrace.exp 2001/12/08 21:17:08
>@@ -29,7 +29,6 @@ set prms_id 0
> set bug_id 0
>
> gdb_exit
>-gdb_start
>
> if [istarget "m68k-*-elf"] then {
> set srcfile gdb_c_test.c
>@@ -43,6 +42,7 @@ if [istarget "m68k-*-elf"] then {
> gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."
> }
> }
>+gdb_start
> gdb_reinitialize_dir $srcdir/$subdir
>
> # If testing on a remote host, download the source file.
>Index: gdb.trace/infotrace.exp
>===================================================================
>RCS file: /cvs/src/src/gdb/testsuite/gdb.trace/infotrace.exp,v
>retrieving revision 1.3
>diff -p -u -p -r1.3 infotrace.exp
>--- infotrace.exp 2001/04/17 20:16:31 1.3
>+++ infotrace.exp 2001/12/08 21:17:08
>@@ -29,7 +29,6 @@ set prms_id 0
> set bug_id 0
>
> gdb_exit
>-gdb_start
>
> if [istarget "m68k-*-elf"] then {
> set srcfile gdb_c_test.c
>@@ -43,6 +42,7 @@ if [istarget "m68k-*-elf"] then {
> gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."
> }
> }
>+gdb_start
> gdb_reinitialize_dir $srcdir/$subdir
>
> # If testing on a remote host, download the source file.
>Index: gdb.trace/limits.exp
>===================================================================
>RCS file: /cvs/src/src/gdb/testsuite/gdb.trace/limits.exp,v
>retrieving revision 1.2
>diff -p -u -p -r1.2 limits.exp
>--- limits.exp 2001/03/06 08:22:00 1.2
>+++ limits.exp 2001/12/08 21:17:08
>@@ -35,6 +35,10 @@ set testfile "limits"
> set srcfile ${testfile}.c
> set binfile $objdir/$subdir/$testfile
>
>+# Start with a fresh gdb.
>+
>+gdb_exit
>+
> if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \
> executable {debug additional_flags=-w}] != "" } {
> gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."
>@@ -302,9 +306,6 @@ proc gdb_trace_limits_tests { } {
> gdb_bytecode_limit_test
> }
>
>-# Start with a fresh gdb.
>-
>-gdb_exit
> gdb_start
> gdb_reinitialize_dir $srcdir/$subdir
> gdb_load $binfile
>Index: gdb.trace/packetlen.exp
>===================================================================
>RCS file: /cvs/src/src/gdb/testsuite/gdb.trace/packetlen.exp,v
>retrieving revision 1.2
>diff -p -u -p -r1.2 packetlen.exp
>--- packetlen.exp 2001/03/06 08:22:00 1.2
>+++ packetlen.exp 2001/12/08 21:17:08
>@@ -29,12 +29,12 @@ set prms_id 0
> set bug_id 0
>
> gdb_exit
>-gdb_start
>
> if [istarget "m68k-*-elf"] then {
> load_lib "emc-support.exp"
> set srcfile gdb_c_test.c
> set binfile [board_info target d490_binfile];
>+ gdb_start
> gdb_test "set remotetimeout 6" "" ""
> set timeout 500
> gdb_target_monitor "$binfile"
>@@ -57,6 +57,7 @@ if [istarget "m68k-*-elf"] then {
> executable {debug additional_flags=-w}] != "" } {
> gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."
> }
>+ gdb_start
> gdb_load $binfile
> gdb_test "tstop" "" ""
> gdb_test "tfind none" "" ""
>Index: gdb.trace/passc-dyn.exp
>===================================================================
>RCS file: /cvs/src/src/gdb/testsuite/gdb.trace/passc-dyn.exp,v
>retrieving revision 1.2
>diff -p -u -p -r1.2 passc-dyn.exp
>--- passc-dyn.exp 2001/03/06 08:22:00 1.2
>+++ passc-dyn.exp 2001/12/08 21:17:08
>@@ -29,11 +29,11 @@ set prms_id 0
> set bug_id 0
>
> gdb_exit
>-gdb_start
> if [istarget "m68k-*-elf"] then {
> load_lib "emc-support.exp";
> set srcfile gdb_c_test.c
> set binfile [board_info target d490_binfile];
>+ gdb_start
> gdb_test "set remotetimeout 6" "" ""
> set timeout 500
> gdb_target_monitor $binfile
>@@ -56,6 +56,7 @@ if [istarget "m68k-*-elf"] then {
> executable {debug additional_flags=-w}] != "" } {
> gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."
> }
>+ gdb_start
> gdb_load $binfile
> gdb_test "tstop" "" ""
> gdb_test "tfind none" "" ""
>Index: gdb.trace/passcount.exp
>===================================================================
>RCS file: /cvs/src/src/gdb/testsuite/gdb.trace/passcount.exp,v
>retrieving revision 1.3
>diff -p -u -p -r1.3 passcount.exp
>--- passcount.exp 2001/04/17 20:16:31 1.3
>+++ passcount.exp 2001/12/08 21:17:08
>@@ -29,7 +29,6 @@ set prms_id 0
> set bug_id 0
>
> gdb_exit
>-gdb_start
> if [istarget "m68k-*-elf"] then {
> set srcfile gdb_c_test.c
> set binfile [board_info target d490_binfile];
>@@ -42,6 +41,7 @@ if [istarget "m68k-*-elf"] then {
> gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."
> }
> }
>+gdb_start
> gdb_reinitialize_dir $srcdir/$subdir
>
> # If testing on a remote host, download the source file.
>Index: gdb.trace/report.exp
>===================================================================
>RCS file: /cvs/src/src/gdb/testsuite/gdb.trace/report.exp,v
>retrieving revision 1.2
>diff -p -u -p -r1.2 report.exp
>--- report.exp 2001/03/06 08:22:00 1.2
>+++ report.exp 2001/12/08 21:17:08
>@@ -29,12 +29,12 @@ set prms_id 0
> set bug_id 0
>
> gdb_exit
>-gdb_start
>
> if [istarget "m68k-*-elf"] then {
> load_lib "emc-support.exp";
> set srcfile gdb_c_test.c
> set binfile [board_info target d490_binfile];
>+ gdb_start
> gdb_test "set remotetimeout 6" "" ""
> set timeout 500
> gdb_target_monitor $binfile
>@@ -57,6 +57,7 @@ if [istarget "m68k-*-elf"] then {
> executable {debug additional_flags=-w}] != "" } {
> gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."
> }
>+ gdb_start
> gdb_load $binfile
> gdb_test "tstop" "" ""
> gdb_test "tfind none" "" ""
>Index: gdb.trace/save-trace.exp
>===================================================================
>RCS file: /cvs/src/src/gdb/testsuite/gdb.trace/save-trace.exp,v
>retrieving revision 1.2
>diff -p -u -p -r1.2 save-trace.exp
>--- save-trace.exp 2001/03/06 08:22:00 1.2
>+++ save-trace.exp 2001/12/08 21:17:08
>@@ -29,7 +29,6 @@ set prms_id 0
> set bug_id 0
>
> gdb_exit
>-gdb_start
>
> if [istarget "m68k-*-elf"] then {
> set srcfile gdb_c_test.c
>@@ -43,6 +42,7 @@ if [istarget "m68k-*-elf"] then {
> gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."
> }
> }
>+gdb_start
> gdb_reinitialize_dir $srcdir/$subdir
>
> # If testing on a remote host, download the source file.
>Index: gdb.trace/tfind.exp
>===================================================================
>RCS file: /cvs/src/src/gdb/testsuite/gdb.trace/tfind.exp,v
>retrieving revision 1.2
>diff -p -u -p -r1.2 tfind.exp
>--- tfind.exp 2001/03/06 08:22:00 1.2
>+++ tfind.exp 2001/12/08 21:17:08
>@@ -29,12 +29,12 @@ set prms_id 0
> set bug_id 0
>
> gdb_exit
>-gdb_start
>
> if [istarget "m68k-*-elf"] then {
> load_lib "emc-support.exp";
> set srcfile gdb_c_test.c
> set binfile [board_info target d490_binfile];
>+ gdb_start
> gdb_test "set remotetimeout 6" "" ""
> set timeout 500
> gdb_target_monitor $binfile
>@@ -57,6 +57,7 @@ if [istarget "m68k-*-elf"] then {
> executable {debug additional_flags=-w}] != "" } {
> gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."
> }
>+ gdb_start
> gdb_load $binfile
> gdb_test "tstop" "" ""
> gdb_test "tfind none" "" ""
>Index: gdb.trace/tracecmd.exp
>===================================================================
>RCS file: /cvs/src/src/gdb/testsuite/gdb.trace/tracecmd.exp,v
>retrieving revision 1.2
>diff -p -u -p -r1.2 tracecmd.exp
>--- tracecmd.exp 2001/03/06 08:22:00 1.2
>+++ tracecmd.exp 2001/12/08 21:17:08
>@@ -29,7 +29,6 @@ set prms_id 0
> set bug_id 0
>
> gdb_exit
>-gdb_start
> if [istarget "m68k-*-elf"] then {
> set srcfile gdb_c_test.c
> set binfile [board_info target d490_binfile];
>@@ -42,6 +41,7 @@ if [istarget "m68k-*-elf"] then {
> gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."
> }
> }
>+gdb_start
> gdb_reinitialize_dir $srcdir/$subdir
>
> # If testing on a remote host, download the source file.
>Index: gdb.trace/while-dyn.exp
>===================================================================
>RCS file: /cvs/src/src/gdb/testsuite/gdb.trace/while-dyn.exp,v
>retrieving revision 1.2
>diff -p -u -p -r1.2 while-dyn.exp
>--- while-dyn.exp 2001/03/06 08:22:00 1.2
>+++ while-dyn.exp 2001/12/08 21:17:08
>@@ -29,13 +29,13 @@ set prms_id 0
> set bug_id 0
>
> gdb_exit
>-gdb_start
>
> if [istarget "m68k-*-elf"] then {
> load_lib "emc-support.exp"
> set testfile "gdb_c_test"
> set srcfile $testfile.c
> set binfile [board_info target d490_binfile];
>+ gdb_start
> gdb_test "set remotetimeout 6" "" ""
> set timeout 500
> gdb_target_monitor "$binfile"
>@@ -58,6 +58,7 @@ if [istarget "m68k-*-elf"] then {
> executable {debug additional_flags=-w}] != "" } {
> gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."
> }
>+ gdb_start
> gdb_load $binfile
> gdb_test "tstop" "" ""
> gdb_test "tfind none" "" ""
>Index: gdb.trace/while-stepping.exp
>===================================================================
>RCS file: /cvs/src/src/gdb/testsuite/gdb.trace/while-stepping.exp,v
>retrieving revision 1.3
>diff -p -u -p -r1.3 while-stepping.exp
>--- while-stepping.exp 2001/04/17 20:16:31 1.3
>+++ while-stepping.exp 2001/12/08 21:17:08
>@@ -29,7 +29,6 @@ set prms_id 0
> set bug_id 0
>
> gdb_exit
>-gdb_start
>
> if [istarget "m68k-*-elf"] then {
> set srcfile gdb_c_test.c
>@@ -43,6 +42,7 @@ if [istarget "m68k-*-elf"] then {
> gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."
> }
> }
>+gdb_start
> gdb_reinitialize_dir $srcdir/$subdir
>
> # If testing on a remote host, download the source file.
>Index: lib/insight-support.exp
>===================================================================
>RCS file: /cvs/src/src/gdb/testsuite/lib/insight-support.exp,v
>retrieving revision 1.5
>diff -p -u -p -r1.5 insight-support.exp
>--- insight-support.exp 2001/10/04 22:11:12 1.5
>+++ insight-support.exp 2001/12/08 21:17:08
>@@ -114,7 +114,7 @@ proc _gdbtk_xvfb_init {} {
> # Suppress tests
> return 0
> }
>- } elseif {!$_using_windows && [which Xvfb] != 0} {
>+ } elseif {!$_using_windows && [which Xvfb] != 0 && ![is_remote host]} {
> set screen ":[getpid]"
> set pid [spawn Xvfb $screen -ac]
> set _xvfb_spawn_id $spawn_id
>============================================================
--
cgf@redhat.com Red Hat, Inc.
http://sources.redhat.com/ http://www.redhat.com/