Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(68)

Side by Side Diff: gdb/testsuite/gdb.mi/mi2-var-block.exp

Issue 11969036: Merge GDB 7.5.1 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@master
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gdb/testsuite/gdb.mi/mi2-until.exp ('k') | gdb/testsuite/gdb.mi/mi2-var-child.exp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 1999-2004, 2007-2012 Free Software Foundation, Inc. 1 # Copyright 1999-2004, 2007-2012 Free Software Foundation, Inc.
2 # 2 #
3 # This program is free software; you can redistribute it and/or modify 3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by 4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 3 of the License, or 5 # the Free Software Foundation; either version 3 of the License, or
6 # (at your option) any later version. 6 # (at your option) any later version.
7 # 7 #
8 # This program is distributed in the hope that it will be useful, 8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of 9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details. 11 # GNU General Public License for more details.
12 # 12 #
13 # You should have received a copy of the GNU General Public License 13 # You should have received a copy of the GNU General Public License
14 # along with this program. If not, see <http://www.gnu.org/licenses/>. 14 # along with this program. If not, see <http://www.gnu.org/licenses/>.
15 15
16 # Test essential Machine interface (MI) operations 16 # Test essential Machine interface (MI) operations
17 # 17 #
18 # Verify that, using the MI, we can create, update, delete variables. 18 # Verify that, using the MI, we can create, update, delete variables.
19 # 19 #
20 20
21 21
22 load_lib mi-support.exp 22 load_lib mi-support.exp
23 set MIFLAGS "-i=mi2" 23 set MIFLAGS "-i=mi2"
24 24
25 gdb_exit 25 gdb_exit
26 if [mi_gdb_start] { 26 if [mi_gdb_start] {
27 continue 27 continue
28 } 28 }
29 29
30 set testfile "var-cmd" 30 standard_testfile var-cmd.c
31 set srcfile ${testfile}.c 31
32 set binfile ${objdir}/${subdir}/mi2-var-block 32 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb ug}] != "" } {
33 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb ug additional_flags=-DFAKEARGV}] != "" } {
34 untested mi2-var-block.exp 33 untested mi2-var-block.exp
35 return -1 34 return -1
36 } 35 }
37 36
38 mi_delete_breakpoints 37 mi_delete_breakpoints
39 mi_gdb_reinitialize_dir $srcdir/$subdir 38 mi_gdb_reinitialize_dir $srcdir/$subdir
40 mi_gdb_load ${binfile} 39 mi_gdb_load ${binfile}
41 40
42 mi_runto do_block_tests 41 mi_runto do_block_tests
43 42
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 mi_gdb_test "-var-delete foo2" \ 164 mi_gdb_test "-var-delete foo2" \
166 "\\^done,ndeleted=\"1\"" \ 165 "\\^done,ndeleted=\"1\"" \
167 "delete var foo2" 166 "delete var foo2"
168 167
169 mi_gdb_test "-var-delete cb" \ 168 mi_gdb_test "-var-delete cb" \
170 "\\^done,ndeleted=\"1\"" \ 169 "\\^done,ndeleted=\"1\"" \
171 "delete var cb" 170 "delete var cb"
172 171
173 mi_gdb_exit 172 mi_gdb_exit
174 return 0 173 return 0
OLDNEW
« no previous file with comments | « gdb/testsuite/gdb.mi/mi2-until.exp ('k') | gdb/testsuite/gdb.mi/mi2-var-child.exp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698