run copyright.sh for 2011.
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / interp.exp
CommitLineData
7b6bb8da
JB
1# Copyright 2004, 2005, 2007, 2008, 2009, 2010, 2011
2# Free Software Foundation, Inc.
1b9afc04
NR
3
4# This program is free software; you can redistribute it and/or modify
5# it under the terms of the GNU General Public License as published by
e22f8b7c 6# the Free Software Foundation; either version 3 of the License, or
1b9afc04 7# (at your option) any later version.
e22f8b7c 8#
1b9afc04
NR
9# This program is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12# GNU General Public License for more details.
e22f8b7c 13#
1b9afc04 14# You should have received a copy of the GNU General Public License
e22f8b7c 15# along with this program. If not, see <http://www.gnu.org/licenses/>.
1b9afc04
NR
16
17# interp.exp Test interpreter-exec command
18
19if $tracelevel then {
20 strace $tracelevel
21}
22
23gdb_start
24
97a2d1d3
DJ
25# Do not use gdb_test for this test, since it has two prompts.
26set cmd "interpreter-exec mi \"-var-update *\""
27gdb_test_multiple $cmd $cmd {
28 -re "\\^done,changelist=\\\[\\\]\r\n$gdb_prompt " {
29 pass "$cmd"
30 gdb_expect 1 {
31 -re "\r\n$gdb_prompt $" { }
32 }
33 }
34}
74e5ef44 35gdb_test "interpreter-exec console \"show version\"" "GNU gdb .*"
1b9afc04 36
305aeedc
TT
37# Regression test for crash when an exception occurs in mi_parse.
38gdb_test_multiple "interpreter-exec mi \"-break-insert --thread a\"" \
39 "regression test for mi_parse crash" {
40 -re ".error,msg=.Invalid value for the '--thread' option.\r\n$gdb_prompt " {
41 pass "$cmd"
42 gdb_expect 1 {
43 -re "\r\n$gdb_prompt $" { }
44 }
45 }
46 }
47
1b9afc04 48gdb_exit
This page took 0.575549 seconds and 4 git commands to generate.