Emit inferior, thread and frame selection events to all UIs
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.mi / mi-pthreads.exp
index 6021d68000e79288e5bd8b81176a501bdf4480a4..511f0ca6fba56501a5245d9c9bbdac9229af7e82 100644 (file)
@@ -1,5 +1,4 @@
-# Copyright 2002, 2003, 2004, 2005, 2007, 2008, 2009, 2010, 2011
-# Free Software Foundation, Inc.
+# Copyright 2002-2016 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
 # via these command pathways are properly executed. Console commands
 # executed via MI should use MI output wrappers, MI event handlers, etc.
 
-# This only works with native configurations
-if {![isnative]} {
-  return
-}
-
 load_lib mi-support.exp
 set MIFLAGS "-i=mi"
 
@@ -59,19 +53,17 @@ proc check_mi_thread_command_set {} {
 
   foreach thread $thread_list {
       mi_gdb_test "-interpreter-exec console \"thread $thread\"" \
-          ".*\\^done\r\n=thread-selected,id=\"$thread\"" \
-          "check =thread-selected: thread $thread"
+         ".*=thread-selected,id=\"$thread\".*\r\n\\^done" \
+         "check =thread-selected: thread $thread"
   }
 }
 
 #
 # Start here
 #
-set testfile "pthreads"
-set srcfile "$testfile.c"
-set binfile "$objdir/$subdir/mi-$testfile"
+standard_testfile pthreads.c
 
-set options [list debug incdir=$objdir]
+set options [list debug]
 if {[gdb_compile_pthreads "$srcdir/$subdir/$srcfile" $binfile executable $options] != "" } {
     return -1
 }
This page took 0.025853 seconds and 4 git commands to generate.