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

Side by Side Diff: gdb/testsuite/gdb.base/exprs.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.base/exprs.c ('k') | gdb/testsuite/gdb.base/fileio.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 1988, 1990-1992, 1994-1998, 2000-2001, 2003, 2007-2012 1 # Copyright 1988, 1990-1992, 1994-1998, 2000-2001, 2003, 2007-2012
2 # Free Software Foundation, Inc. 2 # Free Software Foundation, Inc.
3 3
4 # This program is free software; you can redistribute it and/or modify 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 5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 3 of the License, or 6 # the Free Software Foundation; either version 3 of the License, or
7 # (at your option) any later version. 7 # (at your option) any later version.
8 # 8 #
9 # This program is distributed in the hope that it will be useful, 9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of 10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details. 12 # GNU General Public License for more details.
13 # 13 #
14 # You should have received a copy of the GNU General Public License 14 # You should have received a copy of the GNU General Public License
15 # along with this program. If not, see <http://www.gnu.org/licenses/>. 15 # along with this program. If not, see <http://www.gnu.org/licenses/>.
16 16
17 # This file was written by Rob Savoye. (rob@cygnus.com) 17 # This file was written by Rob Savoye. (rob@cygnus.com)
18 18
19 if $tracelevel {
20 strace $tracelevel
21 }
22
23 # 19 #
24 # test running programs 20 # test running programs
25 # 21 #
26 22
27 set testfile "exprs" 23 set testfile "exprs"
28 set srcfile ${testfile}.c 24 set srcfile ${testfile}.c
29 set binfile ${objdir}/${subdir}/${testfile} 25 set binfile ${objdir}/${subdir}/${testfile}
30 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb ug}] != "" } { 26 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb ug}] != "" } {
31 untested exprs.exp 27 untested exprs.exp
32 return -1 28 return -1
33 } 29 }
34 30
35 if [get_compiler_info ${binfile}] { 31 if [get_compiler_info] {
36 return -1; 32 return -1;
37 } 33 }
38 34
39 gdb_exit 35 gdb_exit
40 gdb_start 36 gdb_start
41 gdb_reinitialize_dir $srcdir/$subdir 37 gdb_reinitialize_dir $srcdir/$subdir
42 gdb_load ${binfile} 38 gdb_load ${binfile}
43 39
44 # 40 #
45 # set it up at a breakpoint so we can play with the variable values 41 # set it up at a breakpoint so we can play with the variable values
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 gdb_test "print v_int++ = 5" "Left operand of assignment is not an lvalue." 259 gdb_test "print v_int++ = 5" "Left operand of assignment is not an lvalue."
264 gdb_test "print v_int-- = 5" "Left operand of assignment is not an lvalue." 260 gdb_test "print v_int-- = 5" "Left operand of assignment is not an lvalue."
265 261
266 # initialized array 262 # initialized array
267 gdb_test {print v_int_array_init} { = \{10, 20\}} 263 gdb_test {print v_int_array_init} { = \{10, 20\}}
268 gdb_test {print *v_int_array_init@1} { = \{10\}} 264 gdb_test {print *v_int_array_init@1} { = \{10\}}
269 gdb_test {print *v_int_array_init@2} { = \{10, 20\}} 265 gdb_test {print *v_int_array_init@2} { = \{10, 20\}}
270 gdb_test {print v_int_array_init[0]@1} { = \{10\}} 266 gdb_test {print v_int_array_init[0]@1} { = \{10\}}
271 gdb_test {print v_int_array_init[0]@2} { = \{10, 20\}} 267 gdb_test {print v_int_array_init[0]@2} { = \{10, 20\}}
272 gdb_test {print v_int_array_init[1]@1} { = \{20\}} 268 gdb_test {print v_int_array_init[1]@1} { = \{20\}}
OLDNEW
« no previous file with comments | « gdb/testsuite/gdb.base/exprs.c ('k') | gdb/testsuite/gdb.base/fileio.exp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698