mi-detach.exp revision 1.1.1.3
1251876Speter# Copyright 2015-2017 Free Software Foundation, Inc. 2251876Speter 3251876Speter# This program is free software; you can redistribute it and/or modify 4251876Speter# it under the terms of the GNU General Public License as published by 5251876Speter# the Free Software Foundation; either version 3 of the License, or 6251876Speter# (at your option) any later version. 7251876Speter# 8251876Speter# This program is distributed in the hope that it will be useful, 9251876Speter# but WITHOUT ANY WARRANTY; without even the implied warranty of 10251876Speter# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11251876Speter# GNU General Public License for more details. 12251876Speter# 13251876Speter# You should have received a copy of the GNU General Public License 14251876Speter# along with this program. If not, see <http://www.gnu.org/licenses/>. 15251876Speter 16251876Speter# Test that detaching from the inferior produces the right MI records. 17251876Speter 18251876Speterload_lib mi-support.exp 19251876Speterset MIFLAGS "-i=mi" 20251876Speter 21251876Spetergdb_exit 22251876Speterif [mi_gdb_start] { 23251876Speter continue 24251876Speter} 25251876Speter 26251876Speterstandard_testfile basics.c 27251876Speter 28251876Speterif {[build_executable $testfile.exp $testfile $srcfile {debug}] == -1} { 29251876Speter untested "failed to compile" 30251876Speter return -1 31251876Speter} 32251876Speter 33251876Spetermi_run_to_main 34251876Speter 35251876Spetermi_gdb_test "-target-detach" "=thread-exited,id=\"1\".*=thread-group-exited,id=\"i1\".*" "detach" 36251876Speter