Index: gdb/testsuite/gdb.base/foll-vfork.exp |
diff --git a/gdb/testsuite/gdb.base/foll-vfork.exp b/gdb/testsuite/gdb.base/foll-vfork.exp |
index 9bbce18678eab4e54026e80314434b78a72c4228..7a3c04e582b9e37cb1ad1b0439329440cca05660 100644 |
--- a/gdb/testsuite/gdb.base/foll-vfork.exp |
+++ b/gdb/testsuite/gdb.base/foll-vfork.exp |
@@ -17,6 +17,20 @@ if { [is_remote target] || ![isnative] } then { |
continue |
} |
+# Until "set follow-fork-mode" and "catch vfork" are implemented on |
+# other targets... |
+# |
+if {![istarget "hppa*-hp-hpux*"] && ![istarget "*-linux*"]} then { |
+ continue |
+} |
+ |
+# Test to see if we are on an HP-UX 10.20 and if so, |
+# do not run these tests as catching vfork is disabled for |
+# 10.20. |
+ |
+if [istarget "hppa*-hp-hpux10.20"] then { |
+ return 0 |
+} |
# NOTE drow/2002-12-06: I don't know what the referenced kernel problem |
# is, but it appears to be fixed in recent HP/UX versions. |
@@ -44,22 +58,6 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile2}" "${binfile2}" executable {d |
return -1 |
} |
- |
-# Until "set follow-fork-mode" and "catch vfork" are implemented on |
-# other targets... |
-# |
-if {![istarget "hppa*-hp-hpux*"] && ![istarget "*-linux*"]} then { |
- continue |
-} |
- |
-# Test to see if we are on an HP-UX 10.20 and if so, |
-# do not run these tests as catching vfork is disabled for |
-# 10.20. |
- |
-if [istarget "hppa*-hp-hpux10.20"] then { |
- return 0 |
-} |
- |
# A few of these tests require a little more time than the standard |
# timeout allows. |
set oldtimeout $timeout |
@@ -165,7 +163,7 @@ proc vfork_and_exec_child_follow_to_main_bp {} { |
send_gdb "kill\n" |
gdb_expect { |
-re ".*Kill the program being debugged.*y or n. $" { |
- send_gdb "y\n" |
+ gdb_test_no_output "y" "" |
send_gdb "file $binfile\n" |
gdb_expect { |
-re ".*Load new symbol table from.*y or n. $" { |
@@ -223,7 +221,7 @@ proc vfork_and_exec_child_follow_through_step {} { |
send_gdb "kill\n" |
gdb_expect { |
-re ".*Kill the program being debugged.*y or n. $" { |
- send_gdb "y\n" |
+ gdb_test_no_output "y" "" |
send_gdb "file $binfile\n" |
gdb_expect { |
-re ".*Load new symbol table from.*y or n. $" { |