1
# Copyright 2008, 2009 Free Software Foundation, Inc.
1
# Copyright 2008, 2009, 2010 Free Software Foundation, Inc.
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
5
# the Free Software Foundation; either version 2 of the License, or
5
# the Free Software Foundation; either version 3 of the License, or
6
6
# (at your option) any later version.
8
8
# This program is distributed in the hope that it will be useful,
9
9
# but WITHOUT ANY WARRANTY; without even the implied warranty of
10
10
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
11
# GNU General Public License for more details.
13
13
# You should have received a copy of the GNU General Public License
14
# along with this program; if not, write to the Free Software
15
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14
# along with this program. If not, see <http://www.gnu.org/licenses/>.
18
17
# Test asynchronous Machine Interface (MI) responses.
21
# This currently only works with native linux and the async remote protocol.
22
if { !([isnative] && [istarget *-linux*]) \
23
&& (![target_info exists gdb_protocol] \
24
|| [target_info gdb_protocol] != "async") } then {
20
# Because of the way this test is written, using 'start' and not using
21
# mi_run_cmd, it ignores whatever target the rest of GDB testsuite is
22
# using, and always tries to run natively. So, don't do anything unless
23
# we're actually testing native.
24
if { !([isnative] && [istarget *-linux*]) } then {