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

Side by Side Diff: gdb/testsuite/gdb.base/call-strs.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/call-signals.c ('k') | gdb/testsuite/gdb.base/callexit.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-2000, 2007-2012 Free Software Foundation, Inc. 1 # Copyright 1998-2000, 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 # This file was written by Elena Zannoni (ezannoni@cygnus.com) 16 # This file was written by Elena Zannoni (ezannoni@cygnus.com)
17 17
18 # This test deals with calling functions which have strings as parameters. 18 # This test deals with calling functions which have strings as parameters.
19 # it plays around with constant strings. 19 # it plays around with constant strings.
20 # the corresponding source file is call-strs.c 20 # the corresponding source file is call-strs.c
21 # 21 #
22 22
23 #debug strarg 23 #debug strarg
24 24
25 if $tracelevel then {
26 strace $tracelevel
27 }
28
29 25
30 set testfile "call-strs" 26 set testfile "call-strs"
31 set srcfile ${testfile}.c 27 set srcfile ${testfile}.c
32 set binfile ${objdir}/${subdir}/${testfile} 28 set binfile ${objdir}/${subdir}/${testfile}
33 29
34 # Test depends on printf, which the sparclet stub doesn't support. 30 # Test depends on printf, which the sparclet stub doesn't support.
35 if { [istarget "sparclet-*-*"] } { 31 if { [istarget "sparclet-*-*"] } {
36 return 0; 32 return 0;
37 } 33 }
38 34
(...skipping 14 matching lines...) Expand all
53 49
54 50
55 # Start with a fresh gdb. 51 # Start with a fresh gdb.
56 52
57 gdb_exit 53 gdb_exit
58 gdb_start 54 gdb_start
59 gdb_reinitialize_dir $srcdir/$subdir 55 gdb_reinitialize_dir $srcdir/$subdir
60 gdb_load ${binfile} 56 gdb_load ${binfile}
61 gdb_test_no_output "set print sevenbit-strings" 57 gdb_test_no_output "set print sevenbit-strings"
62 gdb_test_no_output "set print address off" 58 gdb_test_no_output "set print address off"
59 gdb_test_no_output "set print symbol off"
63 gdb_test_no_output "set width 0" 60 gdb_test_no_output "set width 0"
64 61
65 if ![runto_main] then { 62 if ![runto_main] then {
66 perror "couldn't run to breakpoint" 63 perror "couldn't run to breakpoint"
67 continue 64 continue
68 } 65 }
69 66
70 set prev_timeout $timeout 67 set prev_timeout $timeout
71 set timeout 120 68 set timeout 120
72 69
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 #call str_func(s,s,s,s,s,s,s) 142 #call str_func(s,s,s,s,s,s,s)
146 if ![gdb_skip_stdio_test "call str_func(s,s,s,s,s,s,s,s)"] { 143 if ![gdb_skip_stdio_test "call str_func(s,s,s,s,s,s,s,s)"] {
147 gdb_test "call str_func(s,s,s,s,s,s,s)" \ 144 gdb_test "call str_func(s,s,s,s,s,s,s)" \
148 "first string arg is: test string\[ \t\r\n\]+second string arg is: test string\[ \t\r\n\]+third string arg is: test string\[ \t\r\n\]+fourth string arg is: test string\[ \t\r\n\]+fifth string arg is: test string\[ \t\r\n\]+sixth str ing arg is: test string\[ \t\r\n\]+seventh string arg is: test string\[ \t\r\n\] +.*\"test stringtest stringtest stringtest stringtest stringtest stringtest stri ng\".*" 145 "first string arg is: test string\[ \t\r\n\]+second string arg is: test string\[ \t\r\n\]+third string arg is: test string\[ \t\r\n\]+fourth string arg is: test string\[ \t\r\n\]+fifth string arg is: test string\[ \t\r\n\]+sixth str ing arg is: test string\[ \t\r\n\]+seventh string arg is: test string\[ \t\r\n\] +.*\"test stringtest stringtest stringtest stringtest stringtest stringtest stri ng\".*"
149 } 146 }
150 147
151 gdb_exit 148 gdb_exit
152 149
153 set timeout $prev_timeout 150 set timeout $prev_timeout
154 151
OLDNEW
« no previous file with comments | « gdb/testsuite/gdb.base/call-signals.c ('k') | gdb/testsuite/gdb.base/callexit.exp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698