gdb/testsuite/
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / async.exp
index d805ea9377df7c2ed795dc912094f1eed6e21ba7..505f54a5ea172888aabddd98489dd6d2137c3eef 100644 (file)
@@ -1,33 +1,22 @@
-#   Copyright 1999
-#   Free Software Foundation, Inc.
+#   Copyright 1999, 2007-2012 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
-# the Free Software Foundation; either version 2 of the License, or
+# the Free Software Foundation; either version 3 of the License, or
 # (at your option) any later version.
-# 
+#
 # This program is distributed in the hope that it will be useful,
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 # GNU General Public License for more details.
-# 
+#
 # You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  
-
-# Please email any bugs, comments, and/or additions to this file to:
-# bug-gdb@prep.ai.mit.edu
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 
-if $tracelevel then {
-    strace $tracelevel
-}
-
 #
 # test running programs
 #
-set prms_id 0
-set bug_id 0
 
 set testfile "async"
 set srcfile ${testfile}.c
@@ -38,7 +27,7 @@ if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
     return -1
 }
 
-if [get_compiler_info ${binfile}] {
+if [get_compiler_info] {
     return -1
 }
 
@@ -62,9 +51,6 @@ gdb_exit
 gdb_start
 gdb_reinitialize_dir $srcdir/$subdir
 gdb_load ${binfile}
-if [target_info exists gdb_stub] {
-    gdb_step_for_stub;
-}
 
 #
 # set it up at a breakpoint so we can play with it
@@ -74,12 +60,12 @@ if ![runto_main] then {
     continue
 }
 
-gdb_test "break baz" "" ""
+gdb_test "break baz" ".*" ""
 
 #
 # Make sure we get a 'completed' message when the target is done.
 #
-gdb_test "set display-exec-done on" "" ""
+gdb_test "set display-exec-done on" ".*" ""
 
 
 send_gdb "next&\n" 
@@ -142,7 +128,7 @@ gdb_expect {
     timeout  { fail "(timeout) until &" }
 }
 
-gdb_test "set display-exec-done off" "" ""
+gdb_test "set display-exec-done off" ".*" ""
 
 unset_board_info "gdb_protocol"
 set_board_info "gdb_protocol" "remote"
This page took 0.027991 seconds and 4 git commands to generate.