run copyright.sh for 2011.
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.threads / attach-stopped.exp
index 65a5f2b9da3550bca738eafdf025c78fdc4fa080..5b5e82baf7f487fb2a6c5ee539438b5a322b68f7 100644 (file)
@@ -1,5 +1,4 @@
-# Copyright 2008
-# Free Software Foundation, Inc.
+# Copyright 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -81,12 +80,10 @@ proc corefunc { threadtype } {
     # This breakpoint is there for old/non-x86 kernels not restarting syscalls.
     gdb_breakpoint [gdb_get_line_number "Second sleep"]
     set test "$threadtype: attach2 continue"
-    send_gdb "continue\n"
-    gdb_expect {
-      -re "Continuing"
-       { pass "continue ($test)" }
-      timeout
-       { fail "continue ($test) (timeout)" }
+    gdb_test_multiple "continue" "continue ($test)" {
+       -re "Continuing" {
+           pass "continue ($test)"
+       }
     }
 
     # For this to work we must be sure to consume the "Continuing."
This page took 0.024839 seconds and 4 git commands to generate.