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

Side by Side Diff: gdb/testsuite/gdb.mi/mi2-var-cmd.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-var-child.exp ('k') | gdb/testsuite/gdb.mi/mi2-var-display.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, 2004, 2007-2012 Free Software Foundation, Inc. 1 # Copyright 1999-2004, 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-cmd 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-cmd.exp 33 untested mi2-var-cmd.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 41
43 ##### ##### 42 ##### #####
(...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after
521 mi_gdb_test "-var-update selected_a" \ 520 mi_gdb_test "-var-update selected_a" \
522 "\\^done,changelist=\\\[\{name=\"selected_a\",in_scope=\"true\",type_cha nged=\"true\",new_type=\"int\",new_num_children=\"0\",has_more=\"0\"\}\\\]" \ 521 "\\^done,changelist=\\\[\{name=\"selected_a\",in_scope=\"true\",type_cha nged=\"true\",new_type=\"int\",new_num_children=\"0\",has_more=\"0\"\}\\\]" \
523 "update selected_a in do_special_tests" 522 "update selected_a in do_special_tests"
524 523
525 mi_gdb_test "-file-exec-and-symbols ${binfile}" "\\^done" \ 524 mi_gdb_test "-file-exec-and-symbols ${binfile}" "\\^done" \
526 "floating varobj invalidation" 525 "floating varobj invalidation"
527 526
528 527
529 mi_gdb_exit 528 mi_gdb_exit
530 return 0 529 return 0
OLDNEW
« no previous file with comments | « gdb/testsuite/gdb.mi/mi2-var-child.exp ('k') | gdb/testsuite/gdb.mi/mi2-var-display.exp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698