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

Side by Side Diff: gdb/testsuite/gdb.base/structs2.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/structs2.c ('k') | gdb/testsuite/gdb.base/subst.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 1998-1999, 2007-2012 Free Software Foundation, Inc. 1 # Copyright 1998-1999, 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 if $tracelevel then {
17 strace $tracelevel
18 }
19
20 set prototypes 1 16 set prototypes 1
21 set testfile "structs2" 17 set testfile "structs2"
22 set srcfile ${testfile}.c 18 set srcfile ${testfile}.c
23 set binfile ${objdir}/${subdir}/${testfile} 19 set binfile ${objdir}/${subdir}/${testfile}
24 20
25 # Create and source the file that provides information about the compiler 21 # Create and source the file that provides information about the compiler
26 # used to compile the test case. 22 # used to compile the test case.
27 if [get_compiler_info ${binfile}] { 23 if [get_compiler_info] {
28 return -1; 24 return -1;
29 } 25 }
30 26
31 # build the first test case 27 # build the first test case
32 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb ug}] != "" } { 28 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb ug}] != "" } {
33 # built the second test case since we can't use prototypes 29 # built the second test case since we can't use prototypes
34 warning "Prototypes not supported, rebuilding with -DNO_PROTOTYPES" 30 warning "Prototypes not supported, rebuilding with -DNO_PROTOTYPES"
35 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-DNO_PROTOTYPES}] != "" } { 31 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-DNO_PROTOTYPES}] != "" } {
36 untested structs2.exp 32 untested structs2.exp
37 return -1 33 return -1
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 } 69 }
74 gdb_test "continue" \ 70 gdb_test "continue" \
75 ".*pr_char=-126.*pr_uchar=120.*pr_short=-32536.*pr_ushort=32000.*bkpt = 1.*" \ 71 ".*pr_char=-126.*pr_uchar=120.*pr_short=-32536.*pr_ushort=32000.*bkpt = 1.*" \
76 "structs2 continue2" 72 "structs2 continue2"
77 73
78 # End of tests. 74 # End of tests.
79 75
80 gdb_stop_suppressing_tests 76 gdb_stop_suppressing_tests
81 77
82 return 0 78 return 0
OLDNEW
« no previous file with comments | « gdb/testsuite/gdb.base/structs2.c ('k') | gdb/testsuite/gdb.base/subst.exp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698