1 |
1181 |
sfurman |
# OBSOLETE # Copyright 1995, 1996, 1997 Free Software Foundation, Inc.
|
2 |
|
|
# OBSOLETE
|
3 |
|
|
# OBSOLETE # This program is free software; you can redistribute it and/or modify
|
4 |
|
|
# OBSOLETE # it under the terms of the GNU General Public License as published by
|
5 |
|
|
# OBSOLETE # the Free Software Foundation; either version 2 of the License, or
|
6 |
|
|
# OBSOLETE # (at your option) any later version.
|
7 |
|
|
# OBSOLETE #
|
8 |
|
|
# OBSOLETE # This program is distributed in the hope that it will be useful,
|
9 |
|
|
# OBSOLETE # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10 |
|
|
# OBSOLETE # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
11 |
|
|
# OBSOLETE # GNU General Public License for more details.
|
12 |
|
|
# OBSOLETE #
|
13 |
|
|
# OBSOLETE # You should have received a copy of the GNU General Public License
|
14 |
|
|
# OBSOLETE # along with this program; if not, write to the Free Software
|
15 |
|
|
# OBSOLETE # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
16 |
|
|
# OBSOLETE
|
17 |
|
|
# OBSOLETE # Please email any bugs, comments, and/or additions to this file to:
|
18 |
|
|
# OBSOLETE # bug-gdb@prep.ai.mit.edu
|
19 |
|
|
# OBSOLETE
|
20 |
|
|
# OBSOLETE # This file tests various Chill values, expressions, and types.
|
21 |
|
|
# OBSOLETE
|
22 |
|
|
# OBSOLETE if $tracelevel then {
|
23 |
|
|
# OBSOLETE strace $tracelevel
|
24 |
|
|
# OBSOLETE }
|
25 |
|
|
# OBSOLETE
|
26 |
|
|
# OBSOLETE if [skip_chill_tests] then { continue }
|
27 |
|
|
# OBSOLETE
|
28 |
|
|
# OBSOLETE set testfile "tests1"
|
29 |
|
|
# OBSOLETE set srcfile ${srcdir}/$subdir/${testfile}.ch
|
30 |
|
|
# OBSOLETE set binfile ${objdir}/${subdir}/${testfile}.exe
|
31 |
|
|
# OBSOLETE if { [compile "${srcfile} -g -w -o ${binfile} ${CHILL_RT0} ${CHILL_LIB}"] != "" } {
|
32 |
|
|
# OBSOLETE perror "Couldn't compile ${srcfile}"
|
33 |
|
|
# OBSOLETE return -1
|
34 |
|
|
# OBSOLETE }
|
35 |
|
|
# OBSOLETE
|
36 |
|
|
# OBSOLETE # Set the current language to chill. This counts as a test. If it
|
37 |
|
|
# OBSOLETE # fails, then we skip the other tests.
|
38 |
|
|
# OBSOLETE
|
39 |
|
|
# OBSOLETE proc set_lang_chill {} {
|
40 |
|
|
# OBSOLETE global gdb_prompt
|
41 |
|
|
# OBSOLETE global binfile objdir subdir
|
42 |
|
|
# OBSOLETE
|
43 |
|
|
# OBSOLETE verbose "loading file '$binfile'"
|
44 |
|
|
# OBSOLETE gdb_load $binfile
|
45 |
|
|
# OBSOLETE send_gdb "set language chill\n"
|
46 |
|
|
# OBSOLETE gdb_expect {
|
47 |
|
|
# OBSOLETE -re ".*$gdb_prompt $" {}
|
48 |
|
|
# OBSOLETE timeout { fail "set language chill (timeout)" ; return 0 }
|
49 |
|
|
# OBSOLETE }
|
50 |
|
|
# OBSOLETE
|
51 |
|
|
# OBSOLETE send_gdb "show language\n"
|
52 |
|
|
# OBSOLETE gdb_expect {
|
53 |
|
|
# OBSOLETE -re ".* source language is \"chill\".*$gdb_prompt $" {
|
54 |
|
|
# OBSOLETE pass "set language to \"chill\""
|
55 |
|
|
# OBSOLETE send_gdb "break dummyfunc\n"
|
56 |
|
|
# OBSOLETE gdb_expect {
|
57 |
|
|
# OBSOLETE -re ".*$gdb_prompt $" {
|
58 |
|
|
# OBSOLETE send_gdb "run\n"
|
59 |
|
|
# OBSOLETE gdb_expect -re ".*$gdb_prompt $" {}
|
60 |
|
|
# OBSOLETE return 1
|
61 |
|
|
# OBSOLETE }
|
62 |
|
|
# OBSOLETE timeout {
|
63 |
|
|
# OBSOLETE fail "can't set breakpoint (timeout)"
|
64 |
|
|
# OBSOLETE return 0
|
65 |
|
|
# OBSOLETE }
|
66 |
|
|
# OBSOLETE }
|
67 |
|
|
# OBSOLETE }
|
68 |
|
|
# OBSOLETE -re ".*$gdb_prompt $" {
|
69 |
|
|
# OBSOLETE fail "setting language to \"chill\""
|
70 |
|
|
# OBSOLETE return 0
|
71 |
|
|
# OBSOLETE }
|
72 |
|
|
# OBSOLETE timeout {
|
73 |
|
|
# OBSOLETE fail "can't show language (timeout)"
|
74 |
|
|
# OBSOLETE return 0
|
75 |
|
|
# OBSOLETE }
|
76 |
|
|
# OBSOLETE }
|
77 |
|
|
# OBSOLETE }
|
78 |
|
|
# OBSOLETE
|
79 |
|
|
# OBSOLETE # Testing printing of a specific value. Increment passcount for
|
80 |
|
|
# OBSOLETE # success or issue fail message for failure. In both cases, return
|
81 |
|
|
# OBSOLETE # a 1 to indicate that more tests can proceed. However a timeout
|
82 |
|
|
# OBSOLETE # is a serious error, generates a special fail message, and causes
|
83 |
|
|
# OBSOLETE # a 0 to be returned to indicate that more tests are likely to fail
|
84 |
|
|
# OBSOLETE # as well.
|
85 |
|
|
# OBSOLETE #
|
86 |
|
|
# OBSOLETE # Args are:
|
87 |
|
|
# OBSOLETE #
|
88 |
|
|
# OBSOLETE # First one is string to send_gdb to gdb
|
89 |
|
|
# OBSOLETE # Second one is string to match gdb result to
|
90 |
|
|
# OBSOLETE # Third one is an optional message to be printed
|
91 |
|
|
# OBSOLETE
|
92 |
|
|
# OBSOLETE proc test_print_accept { args } {
|
93 |
|
|
# OBSOLETE global gdb_prompt
|
94 |
|
|
# OBSOLETE global passcount
|
95 |
|
|
# OBSOLETE global verbose
|
96 |
|
|
# OBSOLETE
|
97 |
|
|
# OBSOLETE if [llength $args]==3 then {
|
98 |
|
|
# OBSOLETE set message [lindex $args 2]
|
99 |
|
|
# OBSOLETE } else {
|
100 |
|
|
# OBSOLETE set message [lindex $args 0]
|
101 |
|
|
# OBSOLETE }
|
102 |
|
|
# OBSOLETE set sendthis [lindex $args 0]
|
103 |
|
|
# OBSOLETE set expectthis [lindex $args 1]
|
104 |
|
|
# OBSOLETE set result [gdb_test $sendthis ".* = ${expectthis}" $message]
|
105 |
|
|
# OBSOLETE if $result==0 {incr passcount}
|
106 |
|
|
# OBSOLETE return $result
|
107 |
|
|
# OBSOLETE }
|
108 |
|
|
# OBSOLETE
|
109 |
|
|
# OBSOLETE # Testing printing of a specific value. Increment passcount for
|
110 |
|
|
# OBSOLETE # success or issue fail message for failure. In both cases, return
|
111 |
|
|
# OBSOLETE # a 1 to indicate that more tests can proceed. However a timeout
|
112 |
|
|
# OBSOLETE # is a serious error, generates a special fail message, and causes
|
113 |
|
|
# OBSOLETE # a 0 to be returned to indicate that more tests are likely to fail
|
114 |
|
|
# OBSOLETE # as well.
|
115 |
|
|
# OBSOLETE
|
116 |
|
|
# OBSOLETE # various tests if modes are treated correctly
|
117 |
|
|
# OBSOLETE # using ptype
|
118 |
|
|
# OBSOLETE proc test_modes {} {
|
119 |
|
|
# OBSOLETE global passcount
|
120 |
|
|
# OBSOLETE
|
121 |
|
|
# OBSOLETE verbose "testing chill modes"
|
122 |
|
|
# OBSOLETE set passcount 0
|
123 |
|
|
# OBSOLETE
|
124 |
|
|
# OBSOLETE # discrete modes
|
125 |
|
|
# OBSOLETE test_print_accept "ptype BYTE" "byte"
|
126 |
|
|
# OBSOLETE test_print_accept "ptype UBYTE" "ubyte"
|
127 |
|
|
# OBSOLETE test_print_accept "ptype INT" "int"
|
128 |
|
|
# OBSOLETE test_print_accept "ptype UINT" "uint"
|
129 |
|
|
# OBSOLETE test_print_accept "ptype LONG" "long"
|
130 |
|
|
# OBSOLETE test_print_accept "ptype ULONG" "ulong"
|
131 |
|
|
# OBSOLETE test_print_accept "ptype BOOL" "bool"
|
132 |
|
|
# OBSOLETE test_print_accept "ptype CHAR" "char"
|
133 |
|
|
# OBSOLETE
|
134 |
|
|
# OBSOLETE test_print_accept "ptype set1" "SET \[(\]aaa, bbb, ccc\[)\]" \
|
135 |
|
|
# OBSOLETE "print unnumbered set mode"
|
136 |
|
|
# OBSOLETE test_print_accept "ptype nset1" "SET \[(\]na = 1, nb = 34, nc = 20\[)\]" \
|
137 |
|
|
# OBSOLETE "print numbered set mode"
|
138 |
|
|
# OBSOLETE
|
139 |
|
|
# OBSOLETE # mp:
|
140 |
|
|
# OBSOLETE # display maybe in hex values ?
|
141 |
|
|
# OBSOLETE #
|
142 |
|
|
# OBSOLETE test_print_accept "ptype r11" "ubyte \\(0:255\\)" \
|
143 |
|
|
# OBSOLETE "print ubyte range mode"
|
144 |
|
|
# OBSOLETE test_print_accept "ptype r12" "uint \\(0:65535\\)" \
|
145 |
|
|
# OBSOLETE "print uint range mode"
|
146 |
|
|
# OBSOLETE # test_print_accept "ptype r13" "ulong \\(0:4294967295\\)" \
|
147 |
|
|
# OBSOLETE # "print ulong range mode"
|
148 |
|
|
# OBSOLETE test_print_accept "ptype r14" "byte \\(-128:127\\)" \
|
149 |
|
|
# OBSOLETE "print byte range mode"
|
150 |
|
|
# OBSOLETE test_print_accept "ptype r15" "int \\(-32768:32767\\)" \
|
151 |
|
|
# OBSOLETE "print int range mode"
|
152 |
|
|
# OBSOLETE test_print_accept "ptype r16" "long \\(-2147483648:2147483647\\)" \
|
153 |
|
|
# OBSOLETE "print long range mode"
|
154 |
|
|
# OBSOLETE
|
155 |
|
|
# OBSOLETE test_print_accept "ptype r2" "set1 \\(bbb:ccc\\)" \
|
156 |
|
|
# OBSOLETE "print unnumbered set range mode"
|
157 |
|
|
# OBSOLETE test_print_accept "ptype r3" "nset1 \\(na:na\\)" \
|
158 |
|
|
# OBSOLETE "print numbered set range mode"
|
159 |
|
|
# OBSOLETE # really this order ?
|
160 |
|
|
# OBSOLETE # I'm not sure what should happen for the next two tests.
|
161 |
|
|
# OBSOLETE setup_xfail "*-*-*"
|
162 |
|
|
# OBSOLETE test_print_accept "ptype r4" "nset1 \\(nb = 34:nc = 20\\)" \
|
163 |
|
|
# OBSOLETE "print numbered set range mode"
|
164 |
|
|
# OBSOLETE setup_xfail "*-*-*"
|
165 |
|
|
# OBSOLETE test_print_accept "ptype r5" "nset1 \\(na = 1, nb = 34, nc = 20\\)" \
|
166 |
|
|
# OBSOLETE "print numbered set range mode"
|
167 |
|
|
# OBSOLETE
|
168 |
|
|
# OBSOLETE # powerset modes
|
169 |
|
|
# OBSOLETE test_print_accept "ptype pm1" \
|
170 |
|
|
# OBSOLETE "POWERSET SET \[(\]p1, p2, p3, p4, p5, p6, p7, p8, p9, p10\[)\]" \
|
171 |
|
|
# OBSOLETE "print powerset mode 1"
|
172 |
|
|
# OBSOLETE test_print_accept "ptype pm2" "POWERSET byte \\(1:8\\)" \
|
173 |
|
|
# OBSOLETE "print powerset mode 2"
|
174 |
|
|
# OBSOLETE test_print_accept "ptype pm3" "POWERSET int \\(-32768:32767\\)" \
|
175 |
|
|
# OBSOLETE "print powerset mode 3"
|
176 |
|
|
# OBSOLETE test_print_accept "ptype pm4" "POWERSET long \\(-32768:32768\\)" \
|
177 |
|
|
# OBSOLETE "print powerset mode 4"
|
178 |
|
|
# OBSOLETE test_print_accept "ptype pm5" \
|
179 |
|
|
# OBSOLETE "POWERSET long \\(-2147483648:2147483647\\)" \
|
180 |
|
|
# OBSOLETE "print powerset mode 5"
|
181 |
|
|
# OBSOLETE
|
182 |
|
|
# OBSOLETE # reference modes
|
183 |
|
|
# OBSOLETE test_print_accept "ptype ref1" "REF pm1" \
|
184 |
|
|
# OBSOLETE "print reference to powerset mode"
|
185 |
|
|
# OBSOLETE test_print_accept "ptype ref2" "REF byte" \
|
186 |
|
|
# OBSOLETE "print reference to byte"
|
187 |
|
|
# OBSOLETE test_print_accept "ptype ref3" "PTR" \
|
188 |
|
|
# OBSOLETE "print free reference type"
|
189 |
|
|
# OBSOLETE
|
190 |
|
|
# OBSOLETE # procedure modes
|
191 |
|
|
# OBSOLETE # FIXME: we have to talk about this ...
|
192 |
|
|
# OBSOLETE test_print_accept "ptype prm1" \
|
193 |
|
|
# OBSOLETE "REF PROC \[(\]\[)\]" \
|
194 |
|
|
# OBSOLETE "print procedure mode 1"
|
195 |
|
|
# OBSOLETE setup_xfail "*-*-*"
|
196 |
|
|
# OBSOLETE test_print_accept "ptype prm2" \
|
197 |
|
|
# OBSOLETE "REF PROC \[(\]bool in, int out long inout\[)\] RETURNS \[(\]char\[)\]" \
|
198 |
|
|
# OBSOLETE "print procedure mode 2"
|
199 |
|
|
# OBSOLETE setup_xfail "*-*-*"
|
200 |
|
|
# OBSOLETE test_print_accept "ptype prm3" \
|
201 |
|
|
# OBSOLETE "REF PROC \[(\]pm1, ref loc\[)\] RETURNS \[(\]ref3\[)\]" \
|
202 |
|
|
# OBSOLETE "print procedure mode 3"
|
203 |
|
|
# OBSOLETE setup_xfail "*-*-*"
|
204 |
|
|
# OBSOLETE test_print_accept "ptype prm4" \
|
205 |
|
|
# OBSOLETE "\[(\] \[)\] EXCEPTIONS \[(\]ex1, ex2, ex3\[)\]" \
|
206 |
|
|
# OBSOLETE "print procedure mode 4"
|
207 |
|
|
# OBSOLETE setup_xfail "*-*-*"
|
208 |
|
|
# OBSOLETE test_print_accept "ptype prm5" \
|
209 |
|
|
# OBSOLETE "REF PROC \[(\]r11, r16 inout, r5 out\[)\] RETURNS \[(\]r2\[)\] EXCEPTIONS \[(\]ex1\[)\]" \
|
210 |
|
|
# OBSOLETE "print procedure mode 5"
|
211 |
|
|
# OBSOLETE
|
212 |
|
|
# OBSOLETE # synchronization modes
|
213 |
|
|
# OBSOLETE # FIXME: since gdb doesn't process events & buffers so far, this has be
|
214 |
|
|
# OBSOLETE # filled later...
|
215 |
|
|
# OBSOLETE xfail "synchronization mode handling"
|
216 |
|
|
# OBSOLETE
|
217 |
|
|
# OBSOLETE # timing modes
|
218 |
|
|
# OBSOLETE test_print_accept "ptype DURATION" "duration"
|
219 |
|
|
# OBSOLETE test_print_accept "ptype TIME" "time"
|
220 |
|
|
# OBSOLETE
|
221 |
|
|
# OBSOLETE # string modes
|
222 |
|
|
# OBSOLETE # some tests are done in chillvars.exp
|
223 |
|
|
# OBSOLETE test_print_accept "ptype strm1" "CHARS \\(5\\)" "print char string mode"
|
224 |
|
|
# OBSOLETE test_print_accept "ptype strm2" "CHARS \[(\]7\[)\] VARYING" \
|
225 |
|
|
# OBSOLETE "print varying char string mode"
|
226 |
|
|
# OBSOLETE test_print_accept "ptype bstr1" "BOOLS \\(20\\)" "print bit string mode"
|
227 |
|
|
# OBSOLETE
|
228 |
|
|
# OBSOLETE test_print_accept "ptype B'000'" "BOOLS \\(3\\)" "bit string literal"
|
229 |
|
|
# OBSOLETE test_print_accept "ptype B'11110000'" "BOOLS \\(8\\)" "bit string literal"
|
230 |
|
|
# OBSOLETE # FIXME: adjust error message
|
231 |
|
|
# OBSOLETE gdb_test "ptype B'00110211'" {.*Too-large digit.*[.]} \
|
232 |
|
|
# OBSOLETE "reject invalid bitstring"
|
233 |
|
|
# OBSOLETE
|
234 |
|
|
# OBSOLETE # array modes
|
235 |
|
|
# OBSOLETE # some tests are done in chillvars.exp
|
236 |
|
|
# OBSOLETE test_print_accept "ptype arr1m" "ARRAY \\(1:100\\) set1" \
|
237 |
|
|
# OBSOLETE "print array mode 1"
|
238 |
|
|
# OBSOLETE test_print_accept "ptype arr2m" "ARRAY \\(1:100\\) ARRAY \\(1:100\\) set1"\
|
239 |
|
|
# OBSOLETE "print array mode 2"
|
240 |
|
|
# OBSOLETE test_print_accept "ptype arr3m" "ARRAY \\(0:255\\) ARRAY \\(0:65535\\) ARRAY \\(-128:127\\) set1" \
|
241 |
|
|
# OBSOLETE "print array mode 3"
|
242 |
|
|
# OBSOLETE setup_xfail "*-*-*"
|
243 |
|
|
# OBSOLETE test_print_accept "ptype arr4m" "ARRAY \\(b:c\\) ARRAY \\(na = 1:na = 1\\) ARRAY \\(nc:nb\\) ARRAY \\(na = 1:nc = 20\\) POWERSET SET \[(\]p1, p2, p3, p4, p5, p6, p7, p8, p9, p10\[)\]" \
|
244 |
|
|
# OBSOLETE "print array mode 4"
|
245 |
|
|
# OBSOLETE
|
246 |
|
|
# OBSOLETE # structure modes
|
247 |
|
|
# OBSOLETE # some checks are in chillvars.exp
|
248 |
|
|
# OBSOLETE # setup_xfail "*-*-*"
|
249 |
|
|
# OBSOLETE test_print_accept "ptype stru1m" "STRUCT \\(.*a long,.*b long,.*CASE OF.*:.*ch1 CHARS \\(20\\).*:.*ch2 CHARS \\(10\\).*ELSE.*ch3 CHARS \\(1\\).*ESAC.*\\)" \
|
250 |
|
|
# OBSOLETE "print structure mode 1"
|
251 |
|
|
# OBSOLETE #setup_xfail "*-*-*"
|
252 |
|
|
# OBSOLETE test_print_accept "ptype stru2m" "STRUCT \\(.*f set1,.*CASE OF.*:.*ch1 CHARS \\(20\\).*:.*ch2 CHARS \\(10\\) VARYING.*ELSE.*ch3 CHARS \\(0\\) VARYING.*ESAC.*\\)" \
|
253 |
|
|
# OBSOLETE "print structure mode 2"
|
254 |
|
|
# OBSOLETE #setup_xfail "*-*-*"
|
255 |
|
|
# OBSOLETE test_print_accept "ptype stru3m" "STRUCT \\(.*f r3,.*CASE OF.*:.*ch1 CHARS \\(20\\).*ESAC.*\\)" \
|
256 |
|
|
# OBSOLETE "print structure mode 3"
|
257 |
|
|
# OBSOLETE # setup_xfail "*-*-*"
|
258 |
|
|
# OBSOLETE test_print_accept "ptype stru4m" "STRUCT \\(.*i long,.*CASE OF.*:.*i1 int,.*i11 int,.*b1 bool,.*c1 char.*:.*i2 long,.*i22 long,.*bs2 BOOLS \\(10\\).*:.*s3 STRUCT \\(.*i3 int,.*CASE OF.*:.*foo long.*ELSE.*bar char.*ESAC.*\\).*ELSE.*x stru2m.*ESAC,.*y stru3m.*\\)" \
|
259 |
|
|
# OBSOLETE "print structure mode 4"
|
260 |
|
|
# OBSOLETE
|
261 |
|
|
# OBSOLETE
|
262 |
|
|
# OBSOLETE if $passcount then {
|
263 |
|
|
# OBSOLETE pass "$passcount correct modes printed"
|
264 |
|
|
# OBSOLETE }
|
265 |
|
|
# OBSOLETE }
|
266 |
|
|
# OBSOLETE
|
267 |
|
|
# OBSOLETE # various tests if locations are treated correctly
|
268 |
|
|
# OBSOLETE # read access using ptype, print, whatis
|
269 |
|
|
# OBSOLETE proc test_locations {} {
|
270 |
|
|
# OBSOLETE global passcount
|
271 |
|
|
# OBSOLETE
|
272 |
|
|
# OBSOLETE set passcount 0
|
273 |
|
|
# OBSOLETE verbose "testing read access to locations"
|
274 |
|
|
# OBSOLETE # various location tests can be found in chillvars.exp
|
275 |
|
|
# OBSOLETE
|
276 |
|
|
# OBSOLETE # set locations
|
277 |
|
|
# OBSOLETE test_print_accept "ptype s1l" "SET \\(aaa, bbb, ccc\\)" \
|
278 |
|
|
# OBSOLETE "print mode of set location"
|
279 |
|
|
# OBSOLETE test_print_accept "whatis s1l" "set1" \
|
280 |
|
|
# OBSOLETE "print modename of set location"
|
281 |
|
|
# OBSOLETE test_print_accept "print s1l" "ccc" "print set location"
|
282 |
|
|
# OBSOLETE test_print_accept "ptype s2l" "SET \\(na = 1, nb = 34, nc = 20\\)" \
|
283 |
|
|
# OBSOLETE "print mode of numbered set location"
|
284 |
|
|
# OBSOLETE test_print_accept "whatis s2l" "nset1" \
|
285 |
|
|
# OBSOLETE "print mode name of numbered set location"
|
286 |
|
|
# OBSOLETE test_print_accept "print s2l" "nb" "print numberes set location"
|
287 |
|
|
# OBSOLETE
|
288 |
|
|
# OBSOLETE # range modes
|
289 |
|
|
# OBSOLETE test_print_accept "ptype rl1" "ubyte \\(0:255\\)" \
|
290 |
|
|
# OBSOLETE "print mode of range location"
|
291 |
|
|
# OBSOLETE test_print_accept "whatis rl1" "r11" \
|
292 |
|
|
# OBSOLETE "print mode name of range location"
|
293 |
|
|
# OBSOLETE test_print_accept "print rl1" "3" \
|
294 |
|
|
# OBSOLETE "print range location"
|
295 |
|
|
# OBSOLETE
|
296 |
|
|
# OBSOLETE test_print_accept "ptype rl2" "ubyte \\(0:255\\)" \
|
297 |
|
|
# OBSOLETE "print mode of range location"
|
298 |
|
|
# OBSOLETE test_print_accept "whatis rl2" "r11" \
|
299 |
|
|
# OBSOLETE "print mode name of range location"
|
300 |
|
|
# OBSOLETE test_print_accept "print rl2" "0" \
|
301 |
|
|
# OBSOLETE "print range location"
|
302 |
|
|
# OBSOLETE
|
303 |
|
|
# OBSOLETE test_print_accept "ptype rl3" "ubyte \\(0:255\\)" \
|
304 |
|
|
# OBSOLETE "print mode of range location"
|
305 |
|
|
# OBSOLETE test_print_accept "whatis rl3" "r11" \
|
306 |
|
|
# OBSOLETE "print mode name of range location"
|
307 |
|
|
# OBSOLETE test_print_accept "print rl3" "255" \
|
308 |
|
|
# OBSOLETE "print range location"
|
309 |
|
|
# OBSOLETE
|
310 |
|
|
# OBSOLETE test_print_accept "ptype rl5" "uint \\(0:65535\\)" \
|
311 |
|
|
# OBSOLETE "print mode of range location"
|
312 |
|
|
# OBSOLETE test_print_accept "whatis rl5" "r12" \
|
313 |
|
|
# OBSOLETE "print mode name of range location"
|
314 |
|
|
# OBSOLETE test_print_accept "print rl5" "65530" \
|
315 |
|
|
# OBSOLETE "print range location"
|
316 |
|
|
# OBSOLETE
|
317 |
|
|
# OBSOLETE test_print_accept "ptype rl6" "uint \\(0:65535\\)" \
|
318 |
|
|
# OBSOLETE "print mode of range location"
|
319 |
|
|
# OBSOLETE test_print_accept "whatis rl6" "r12" \
|
320 |
|
|
# OBSOLETE "print mode name of range location"
|
321 |
|
|
# OBSOLETE test_print_accept "print rl6" "0" \
|
322 |
|
|
# OBSOLETE "print range location"
|
323 |
|
|
# OBSOLETE
|
324 |
|
|
# OBSOLETE test_print_accept "ptype rl7" "uint \\(0:65535\\)" \
|
325 |
|
|
# OBSOLETE "print mode of range location"
|
326 |
|
|
# OBSOLETE test_print_accept "whatis rl7" "r12" \
|
327 |
|
|
# OBSOLETE "print mode name of range location"
|
328 |
|
|
# OBSOLETE test_print_accept "print rl7" "65535" \
|
329 |
|
|
# OBSOLETE "print range location"
|
330 |
|
|
# OBSOLETE
|
331 |
|
|
# OBSOLETE # test_print_accept "ptype rl9" "ulong \\(0:4294967295\\)" \
|
332 |
|
|
# OBSOLETE # "print mode of range location"
|
333 |
|
|
# OBSOLETE # test_print_accept "whatis rl9" "r13" \
|
334 |
|
|
# OBSOLETE # "print mode name of range location"
|
335 |
|
|
# OBSOLETE # test_print_accept "print rl9" "128" \
|
336 |
|
|
# OBSOLETE # "print range location"
|
337 |
|
|
# OBSOLETE
|
338 |
|
|
# OBSOLETE # test_print_accept "ptype rl10" "ulong \\(0:4294967295\\)" \
|
339 |
|
|
# OBSOLETE # "print mode of range location"
|
340 |
|
|
# OBSOLETE # test_print_accept "whatis rl10" "r13" \
|
341 |
|
|
# OBSOLETE # "print mode name of range location"
|
342 |
|
|
# OBSOLETE # test_print_accept "print rl10" "0" \
|
343 |
|
|
# OBSOLETE # "print range location"
|
344 |
|
|
# OBSOLETE
|
345 |
|
|
# OBSOLETE # test_print_accept "ptype rl11" "ulong \\(0:4294967295\\)" \
|
346 |
|
|
# OBSOLETE # "print mode of range location"
|
347 |
|
|
# OBSOLETE # test_print_accept "whatis rl11" "r13" \
|
348 |
|
|
# OBSOLETE # "print mode name of range location"
|
349 |
|
|
# OBSOLETE # test_print_accept "print rl11" "4294967295" \
|
350 |
|
|
# OBSOLETE # "print range location"
|
351 |
|
|
# OBSOLETE
|
352 |
|
|
# OBSOLETE test_print_accept "ptype rl13" "byte \\(-128:127\\)" \
|
353 |
|
|
# OBSOLETE "print mode of range location"
|
354 |
|
|
# OBSOLETE test_print_accept "whatis rl13" "r14" \
|
355 |
|
|
# OBSOLETE "print mode name of range location"
|
356 |
|
|
# OBSOLETE test_print_accept "print rl13" "-121" \
|
357 |
|
|
# OBSOLETE "print range location"
|
358 |
|
|
# OBSOLETE
|
359 |
|
|
# OBSOLETE test_print_accept "ptype rl14" "byte \\(-128:127\\)" \
|
360 |
|
|
# OBSOLETE "print mode of range location"
|
361 |
|
|
# OBSOLETE test_print_accept "whatis rl14" "r14" \
|
362 |
|
|
# OBSOLETE "print mode name of range location"
|
363 |
|
|
# OBSOLETE test_print_accept "print rl14" "-128" \
|
364 |
|
|
# OBSOLETE "print range location"
|
365 |
|
|
# OBSOLETE
|
366 |
|
|
# OBSOLETE test_print_accept "ptype rl15" "byte \\(-128:127\\)" \
|
367 |
|
|
# OBSOLETE "print mode of range location"
|
368 |
|
|
# OBSOLETE test_print_accept "whatis rl15" "r14" \
|
369 |
|
|
# OBSOLETE "print mode name of range location"
|
370 |
|
|
# OBSOLETE test_print_accept "print rl15" "127" \
|
371 |
|
|
# OBSOLETE "print range location"
|
372 |
|
|
# OBSOLETE
|
373 |
|
|
# OBSOLETE test_print_accept "ptype rl17" "int \\(-32768:32767\\)" \
|
374 |
|
|
# OBSOLETE "print mode of range location"
|
375 |
|
|
# OBSOLETE test_print_accept "whatis rl17" "r15" \
|
376 |
|
|
# OBSOLETE "print mode name of range location"
|
377 |
|
|
# OBSOLETE test_print_accept "print rl17" "-32720" \
|
378 |
|
|
# OBSOLETE "print range location"
|
379 |
|
|
# OBSOLETE
|
380 |
|
|
# OBSOLETE test_print_accept "ptype rl18" "int \\(-32768:32767\\)" \
|
381 |
|
|
# OBSOLETE "print mode of range location"
|
382 |
|
|
# OBSOLETE test_print_accept "whatis rl18" "r15" \
|
383 |
|
|
# OBSOLETE "print mode name of range location"
|
384 |
|
|
# OBSOLETE test_print_accept "print rl18" "-32768" \
|
385 |
|
|
# OBSOLETE "print range location"
|
386 |
|
|
# OBSOLETE
|
387 |
|
|
# OBSOLETE test_print_accept "ptype rl19" "int \\(-32768:32767\\)" \
|
388 |
|
|
# OBSOLETE "print mode of range location"
|
389 |
|
|
# OBSOLETE test_print_accept "whatis rl19" "r15" \
|
390 |
|
|
# OBSOLETE "print mode name of range location"
|
391 |
|
|
# OBSOLETE test_print_accept "print rl19" "32767" \
|
392 |
|
|
# OBSOLETE "print range location"
|
393 |
|
|
# OBSOLETE
|
394 |
|
|
# OBSOLETE test_print_accept "ptype rl21" "long \\(-2147483648:2147483647\\)" \
|
395 |
|
|
# OBSOLETE "print mode of range location"
|
396 |
|
|
# OBSOLETE test_print_accept "whatis rl21" "r16" \
|
397 |
|
|
# OBSOLETE "print mode name of range location"
|
398 |
|
|
# OBSOLETE test_print_accept "print rl21" "2147483643" \
|
399 |
|
|
# OBSOLETE "print range location"
|
400 |
|
|
# OBSOLETE
|
401 |
|
|
# OBSOLETE test_print_accept "ptype rl22" "long \\(-2147483648:2147483647\\)" \
|
402 |
|
|
# OBSOLETE "print mode of range location"
|
403 |
|
|
# OBSOLETE test_print_accept "whatis rl22" "r16" \
|
404 |
|
|
# OBSOLETE "print mode name of range location"
|
405 |
|
|
# OBSOLETE test_print_accept "print rl22" "-2147483648" \
|
406 |
|
|
# OBSOLETE "print range location"
|
407 |
|
|
# OBSOLETE
|
408 |
|
|
# OBSOLETE test_print_accept "ptype rl23" "long \\(-2147483648:2147483647\\)" \
|
409 |
|
|
# OBSOLETE "print mode of range location"
|
410 |
|
|
# OBSOLETE test_print_accept "whatis rl23" "r16" \
|
411 |
|
|
# OBSOLETE "print mode name of range location"
|
412 |
|
|
# OBSOLETE test_print_accept "print rl23" "2147483647" \
|
413 |
|
|
# OBSOLETE "print range location"
|
414 |
|
|
# OBSOLETE
|
415 |
|
|
# OBSOLETE # powerset locations
|
416 |
|
|
# OBSOLETE test_print_accept "ptype pl1" \
|
417 |
|
|
# OBSOLETE "POWERSET SET \\(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10\\)" \
|
418 |
|
|
# OBSOLETE "print mode of powerset location 1"
|
419 |
|
|
# OBSOLETE test_print_accept "whatis pl1" "pm1" \
|
420 |
|
|
# OBSOLETE "print mode mode name of powerset location"
|
421 |
|
|
# OBSOLETE test_print_accept "print pl1" \
|
422 |
|
|
# OBSOLETE "\[\[\]p1:p10\[\]\]" \
|
423 |
|
|
# OBSOLETE "print powerset location 1"
|
424 |
|
|
# OBSOLETE test_print_accept "print pl2" {\[\]} \
|
425 |
|
|
# OBSOLETE "print powerset location 2"
|
426 |
|
|
# OBSOLETE test_print_accept "print pl3" "\[\[\]p1, p10\[\]\]" \
|
427 |
|
|
# OBSOLETE "print powerset location 3"
|
428 |
|
|
# OBSOLETE test_print_accept "print pl4" {\[p1:p2, p4:p6, p8:p10\]} \
|
429 |
|
|
# OBSOLETE "print powerset location 4"
|
430 |
|
|
# OBSOLETE test_print_accept "print pl5" {\[p1:p4, p6, p8:p10\]} \
|
431 |
|
|
# OBSOLETE "print powerset location 5"
|
432 |
|
|
# OBSOLETE test_print_accept "print pl6" {\[p1, p3:p8, p10\]} \
|
433 |
|
|
# OBSOLETE "print powerset location 6"
|
434 |
|
|
# OBSOLETE
|
435 |
|
|
# OBSOLETE test_print_accept "ptype pl7" \
|
436 |
|
|
# OBSOLETE "POWERSET byte \\(1:8\\)" \
|
437 |
|
|
# OBSOLETE "print mode of byte powerset location"
|
438 |
|
|
# OBSOLETE test_print_accept "whatis pl7" "pm2" \
|
439 |
|
|
# OBSOLETE "print modename of byte powerset location"
|
440 |
|
|
# OBSOLETE test_print_accept "print pl7" {\[1:8\]} \
|
441 |
|
|
# OBSOLETE "print powerset location 7"
|
442 |
|
|
# OBSOLETE
|
443 |
|
|
# OBSOLETE test_print_accept "ptype pl8" \
|
444 |
|
|
# OBSOLETE "POWERSET int \\(-32768:32767\\)" \
|
445 |
|
|
# OBSOLETE "print mode of int powerset location"
|
446 |
|
|
# OBSOLETE test_print_accept "whatis pl8" "pm3" \
|
447 |
|
|
# OBSOLETE "print modename of int powerset location"
|
448 |
|
|
# OBSOLETE test_print_accept "print pl8" {\[-32768:32767\]} \
|
449 |
|
|
# OBSOLETE "print powerset location 8"
|
450 |
|
|
# OBSOLETE
|
451 |
|
|
# OBSOLETE # test_print_accept "ptype pl9" \
|
452 |
|
|
# OBSOLETE # "POWERSET long \\(-2147483648:2147483647\\)" \
|
453 |
|
|
# OBSOLETE # "print mode of long powerset location"
|
454 |
|
|
# OBSOLETE # test_print_accept "whatis pl9" "pm5" \
|
455 |
|
|
# OBSOLETE # "print modename of long powerset location"
|
456 |
|
|
# OBSOLETE # test_print_accept "print pl9" {\[-2147483648:2147483647\]} \
|
457 |
|
|
# OBSOLETE # "print powerset location 9"
|
458 |
|
|
# OBSOLETE
|
459 |
|
|
# OBSOLETE # reference modes
|
460 |
|
|
# OBSOLETE test_print_accept "ptype ref3l" "PTR" "print mode of reference location"
|
461 |
|
|
# OBSOLETE # setup_xfail "*-*-*"
|
462 |
|
|
# OBSOLETE test_print_accept "whatis ref3l" "ref3" \
|
463 |
|
|
# OBSOLETE "print modename of reference location"
|
464 |
|
|
# OBSOLETE # setup_xfail "*-*-*"
|
465 |
|
|
# OBSOLETE test_print_accept "print ref3l" "ref3\\(H'.*\\)" \
|
466 |
|
|
# OBSOLETE "print reference location"
|
467 |
|
|
# OBSOLETE test_print_accept "ptype ref4l" "PTR" "print mode of reference location"
|
468 |
|
|
# OBSOLETE # setup_xfail "*-*-*"
|
469 |
|
|
# OBSOLETE test_print_accept "whatis ref4l" "ref4" \
|
470 |
|
|
# OBSOLETE "print modename of reference location"
|
471 |
|
|
# OBSOLETE # setup_xfail "*-*-*"
|
472 |
|
|
# OBSOLETE test_print_accept "print ref4l" "ref4\\(H'.*\\)" \
|
473 |
|
|
# OBSOLETE "print reference location"
|
474 |
|
|
# OBSOLETE test_print_accept "ptype ref5l" "PTR" "print mode of reference location"
|
475 |
|
|
# OBSOLETE test_print_accept "whatis ref5l" "PTR" \
|
476 |
|
|
# OBSOLETE "print modename of reference location"
|
477 |
|
|
# OBSOLETE test_print_accept "print ref5l" "PTR\\(H'.*\\)" \
|
478 |
|
|
# OBSOLETE "print reference location"
|
479 |
|
|
# OBSOLETE
|
480 |
|
|
# OBSOLETE # dereference a little bit..
|
481 |
|
|
# OBSOLETE test_print_accept "print ref6l->syn_int" "42" \
|
482 |
|
|
# OBSOLETE "dereference reference to synmode location"
|
483 |
|
|
# OBSOLETE test_print_accept "print ref7l->int" "-42" \
|
484 |
|
|
# OBSOLETE "dereference reference to predefined mode location"
|
485 |
|
|
# OBSOLETE test_print_accept "print ref8l->pm1" \
|
486 |
|
|
# OBSOLETE "\[\[\]p1:p10\[\]\]" \
|
487 |
|
|
# OBSOLETE "dereference reference to newmode location"
|
488 |
|
|
# OBSOLETE
|
489 |
|
|
# OBSOLETE # synchronization mode locations
|
490 |
|
|
# OBSOLETE # FIXME: synchronization modes are not supported so far...
|
491 |
|
|
# OBSOLETE xfail "no synchronization mode location support, not implemented yet"
|
492 |
|
|
# OBSOLETE
|
493 |
|
|
# OBSOLETE # timing mode locations
|
494 |
|
|
# OBSOLETE # FIXME: callbacks to abstime, inttime not implemented
|
495 |
|
|
# OBSOLETE xfail "timing modes not implemented properly yet"
|
496 |
|
|
# OBSOLETE
|
497 |
|
|
# OBSOLETE # char string locations
|
498 |
|
|
# OBSOLETE # some tests are don in chillvars.exp
|
499 |
|
|
# OBSOLETE test_print_accept "ptype strl1" \
|
500 |
|
|
# OBSOLETE "CHARS \\(7\\) VARYING" \
|
501 |
|
|
# OBSOLETE "print varying string location"
|
502 |
|
|
# OBSOLETE test_print_accept "whatis strl1" "strm2" \
|
503 |
|
|
# OBSOLETE "print string locationa mode name"
|
504 |
|
|
# OBSOLETE test_print_accept "print strl1" \
|
505 |
|
|
# OBSOLETE {\"hansi\^\(0\)\"} \
|
506 |
|
|
# OBSOLETE "print string location"
|
507 |
|
|
# OBSOLETE # string elements
|
508 |
|
|
# OBSOLETE test_print_accept "print strl1(0)" "\'h\'" \
|
509 |
|
|
# OBSOLETE "print string element 1"
|
510 |
|
|
# OBSOLETE test_print_accept "print strl1(5)" {'\^[(]0[)]'} \
|
511 |
|
|
# OBSOLETE "print string element 2"
|
512 |
|
|
# OBSOLETE test_print_accept "print strl1(3)" "\'s\'" \
|
513 |
|
|
# OBSOLETE "print string element 3"
|
514 |
|
|
# OBSOLETE test_print_accept "ptype strl1(0)" "char" \
|
515 |
|
|
# OBSOLETE "print mode of string element"
|
516 |
|
|
# OBSOLETE # slices
|
517 |
|
|
# OBSOLETE test_print_accept "print strl1(3:4)" "\"si\"" \
|
518 |
|
|
# OBSOLETE "print string slice 1"
|
519 |
|
|
# OBSOLETE test_print_accept "print strl1(0:5)" \
|
520 |
|
|
# OBSOLETE {\"hansi\^\(0\)\"} \
|
521 |
|
|
# OBSOLETE "print string slice 2"
|
522 |
|
|
# OBSOLETE test_print_accept "print strl1(0:0)" "\"h\"" \
|
523 |
|
|
# OBSOLETE "print string slice 3"
|
524 |
|
|
# OBSOLETE test_print_accept "print strl1(0 up 6)" \
|
525 |
|
|
# OBSOLETE {\"hansi\^\(0\)\"} \
|
526 |
|
|
# OBSOLETE "print string slice 4"
|
527 |
|
|
# OBSOLETE # FIXME: adjust error message, when implented
|
528 |
|
|
# OBSOLETE gdb_test "print strl1(6 up 1)" \
|
529 |
|
|
# OBSOLETE ".*slice.*out of range.*" \
|
530 |
|
|
# OBSOLETE "print invalid string slice length"
|
531 |
|
|
# OBSOLETE gdb_test "print strl1(-1 up 5)" \
|
532 |
|
|
# OBSOLETE ".*slice.*out of range.*" \
|
533 |
|
|
# OBSOLETE "print invalid string slice length"
|
534 |
|
|
# OBSOLETE gdb_test "print strl1(-1:5)" \
|
535 |
|
|
# OBSOLETE ".*slice.*out of range.*" \
|
536 |
|
|
# OBSOLETE "print invalid string slice"
|
537 |
|
|
# OBSOLETE gdb_test "print strl1(-1:7)" \
|
538 |
|
|
# OBSOLETE ".*slice.*out of range.*" \
|
539 |
|
|
# OBSOLETE "print invalid string slice"
|
540 |
|
|
# OBSOLETE gdb_test "print strl1(0 up -1)" \
|
541 |
|
|
# OBSOLETE ".*slice.*out of range.*" \
|
542 |
|
|
# OBSOLETE "print invalid string slice length"
|
543 |
|
|
# OBSOLETE gdb_test "print strl1(0 up 0)" {""}
|
544 |
|
|
# OBSOLETE
|
545 |
|
|
# OBSOLETE # bitstring locations
|
546 |
|
|
# OBSOLETE test_print_accept "ptype bstr1" \
|
547 |
|
|
# OBSOLETE "BOOLS \\(20\\)" \
|
548 |
|
|
# OBSOLETE "print mode of bitstring location"
|
549 |
|
|
# OBSOLETE test_print_accept "whatis bstrl1" "bstr1" \
|
550 |
|
|
# OBSOLETE "print mode name of bitstring location"
|
551 |
|
|
# OBSOLETE test_print_accept "print bstrl1" \
|
552 |
|
|
# OBSOLETE "B'10101010101010101010'" \
|
553 |
|
|
# OBSOLETE "print bitstring location"
|
554 |
|
|
# OBSOLETE
|
555 |
|
|
# OBSOLETE test_print_accept "ptype bstrl1(0)" "bool|BOOL" \
|
556 |
|
|
# OBSOLETE "print mode of bitstring element"
|
557 |
|
|
# OBSOLETE test_print_accept "print bstrl1(0)" "TRUE" \
|
558 |
|
|
# OBSOLETE "print bitstring element 1"
|
559 |
|
|
# OBSOLETE test_print_accept "print bstrl1(19)" "FALSE" \
|
560 |
|
|
# OBSOLETE "print bitstring element 2"
|
561 |
|
|
# OBSOLETE test_print_accept "print bstrl1(10)" "TRUE" \
|
562 |
|
|
# OBSOLETE "print bitstring element 3"
|
563 |
|
|
# OBSOLETE
|
564 |
|
|
# OBSOLETE test_print_accept "print bstrl1(0:19)" \
|
565 |
|
|
# OBSOLETE "B'10101010101010101010'" \
|
566 |
|
|
# OBSOLETE "print bitstring location slice 1"
|
567 |
|
|
# OBSOLETE test_print_accept "print bstrl1(0:0)" \
|
568 |
|
|
# OBSOLETE "B'1'" \
|
569 |
|
|
# OBSOLETE "print bitstring location slice 2"
|
570 |
|
|
# OBSOLETE test_print_accept "print bstrl1(3:9)" \
|
571 |
|
|
# OBSOLETE "B'0101010'" \
|
572 |
|
|
# OBSOLETE "print bitstring location slice 3"
|
573 |
|
|
# OBSOLETE test_print_accept "print bstrl1(0 up 20)" \
|
574 |
|
|
# OBSOLETE "B'10101010101010101010'" \
|
575 |
|
|
# OBSOLETE "print bitstring location slice 4"
|
576 |
|
|
# OBSOLETE test_print_accept "print bstrl1(19 up 1)" \
|
577 |
|
|
# OBSOLETE "B'0'" \
|
578 |
|
|
# OBSOLETE "print bitstring location slice 5"
|
579 |
|
|
# OBSOLETE gdb_test "print bstrl1(20 up 1)" \
|
580 |
|
|
# OBSOLETE ".*slice out of range.*" \
|
581 |
|
|
# OBSOLETE "print invalid bitstring slice (20 up 1)"
|
582 |
|
|
# OBSOLETE gdb_test "print bstrl1(-4:5)" \
|
583 |
|
|
# OBSOLETE ".*slice out of range.*" \
|
584 |
|
|
# OBSOLETE "print invalid bitstring slice (-4:5)"
|
585 |
|
|
# OBSOLETE gdb_test "print bstrl1(-1:up 1)" \
|
586 |
|
|
# OBSOLETE ".*invalid expression syntax.*" \
|
587 |
|
|
# OBSOLETE "print invalid bitstring slice (-1:ip 1)"
|
588 |
|
|
# OBSOLETE gdb_test "print bstrl1(-1:20)" \
|
589 |
|
|
# OBSOLETE ".*slice out of range.*" \
|
590 |
|
|
# OBSOLETE "print invalid bitstring slice (-1:20)"
|
591 |
|
|
# OBSOLETE gdb_test "print bstrl1(0 up -1)" \
|
592 |
|
|
# OBSOLETE ".*slice out of range.*" \
|
593 |
|
|
# OBSOLETE "print invalid bitstring slice (0 up -1)"
|
594 |
|
|
# OBSOLETE test_print_accept "print bstrl1(4 up 0)" "B''"
|
595 |
|
|
# OBSOLETE
|
596 |
|
|
# OBSOLETE # array mode locations
|
597 |
|
|
# OBSOLETE gdb_test_exact "ptype arrl1" \
|
598 |
|
|
# OBSOLETE "ARRAY (1:100) set1" \
|
599 |
|
|
# OBSOLETE "print mode of array location"
|
600 |
|
|
# OBSOLETE gdb_test "whatis arrl1" "arr1m" \
|
601 |
|
|
# OBSOLETE "print mode name of array location"
|
602 |
|
|
# OBSOLETE gdb_test_exact "print arrl1" {[(1:100): aaa]} \
|
603 |
|
|
# OBSOLETE "print array location"
|
604 |
|
|
# OBSOLETE test_print_accept "ptype arrl1(1)" \
|
605 |
|
|
# OBSOLETE "SET \\(aaa, bbb, ccc\\)" \
|
606 |
|
|
# OBSOLETE "print mode of array element"
|
607 |
|
|
# OBSOLETE gdb_test_exact "print arrl3" \
|
608 |
|
|
# OBSOLETE {[(1:5): [(1:3): [(1:2): -2147483648]]]} \
|
609 |
|
|
# OBSOLETE "print array location 2"
|
610 |
|
|
# OBSOLETE gdb_test_exact "print arrl3(1)" \
|
611 |
|
|
# OBSOLETE {[(1:3): [(1:2): -2147483648]]} \
|
612 |
|
|
# OBSOLETE "print array location 3"
|
613 |
|
|
# OBSOLETE gdb_test_exact "ptype arrl3(1)" \
|
614 |
|
|
# OBSOLETE {ARRAY (1:3) ARRAY (1:2) long} \
|
615 |
|
|
# OBSOLETE "print mode of array element"
|
616 |
|
|
# OBSOLETE test_print_accept "print arrl3(5)" \
|
617 |
|
|
# OBSOLETE {\[\(1:3\): \[\(1:2\): -2147483648\]\]} \
|
618 |
|
|
# OBSOLETE "print array location 4"
|
619 |
|
|
# OBSOLETE test_print_accept "print arrl3(1,1)" \
|
620 |
|
|
# OBSOLETE {\[\(1:2\): -2147483648\]} \
|
621 |
|
|
# OBSOLETE "print array location 5"
|
622 |
|
|
# OBSOLETE test_print_accept "ptype arrl3(1,1)" \
|
623 |
|
|
# OBSOLETE {ARRAY \(1:2\) long} \
|
624 |
|
|
# OBSOLETE "print mode of array element"
|
625 |
|
|
# OBSOLETE test_print_accept "print arrl3(5,3)" \
|
626 |
|
|
# OBSOLETE {\[\(1:2\): -2147483648\]} \
|
627 |
|
|
# OBSOLETE "print array location 6"
|
628 |
|
|
# OBSOLETE test_print_accept "print arrl3(1,1,1)" \
|
629 |
|
|
# OBSOLETE "-2147483648" \
|
630 |
|
|
# OBSOLETE "print array location 7"
|
631 |
|
|
# OBSOLETE test_print_accept "print arrl3(5,3,2)" \
|
632 |
|
|
# OBSOLETE "-2147483648" \
|
633 |
|
|
# OBSOLETE "print array location 8"
|
634 |
|
|
# OBSOLETE test_print_accept "print arrl3(1)(3)(2)" \
|
635 |
|
|
# OBSOLETE "-2147483648" \
|
636 |
|
|
# OBSOLETE "print array location 9"
|
637 |
|
|
# OBSOLETE
|
638 |
|
|
# OBSOLETE # reject the following range fails
|
639 |
|
|
# OBSOLETE # FIXME: adjust error messages
|
640 |
|
|
# OBSOLETE gdb_test "print arrl3(-1)" \
|
641 |
|
|
# OBSOLETE ".*out of range.*" \
|
642 |
|
|
# OBSOLETE "check invalid array indices 1"
|
643 |
|
|
# OBSOLETE gdb_test "print arrl3(6)" \
|
644 |
|
|
# OBSOLETE ".*out of range.*" \
|
645 |
|
|
# OBSOLETE "check invalid array indices 2"
|
646 |
|
|
# OBSOLETE gdb_test "print arrl3(0,0)" \
|
647 |
|
|
# OBSOLETE ".*out of range.*" \
|
648 |
|
|
# OBSOLETE "check invalid array indices 3"
|
649 |
|
|
# OBSOLETE gdb_test "print arrl3(1,0)" \
|
650 |
|
|
# OBSOLETE ".*out of range.*" \
|
651 |
|
|
# OBSOLETE "check invalid array indices 4"
|
652 |
|
|
# OBSOLETE gdb_test "print arrl3(1,4)" \
|
653 |
|
|
# OBSOLETE ".*out of range.*" \
|
654 |
|
|
# OBSOLETE "check invalid array indices 5"
|
655 |
|
|
# OBSOLETE gdb_test "print arrl3(6,4)" \
|
656 |
|
|
# OBSOLETE ".*out of range.*" \
|
657 |
|
|
# OBSOLETE "check invalid array indices 6"
|
658 |
|
|
# OBSOLETE gdb_test "print arrl3(1,1,0)" \
|
659 |
|
|
# OBSOLETE ".*out of range.*" \
|
660 |
|
|
# OBSOLETE "check invalid array indices 7"
|
661 |
|
|
# OBSOLETE gdb_test "print arrl3(6,4,0)" \
|
662 |
|
|
# OBSOLETE ".*out of range.*" \
|
663 |
|
|
# OBSOLETE "check invalid array indices 8"
|
664 |
|
|
# OBSOLETE gdb_test "print arrl3(1,1,3)" \
|
665 |
|
|
# OBSOLETE ".*out of range.*" \
|
666 |
|
|
# OBSOLETE "check invalid array indices 9"
|
667 |
|
|
# OBSOLETE
|
668 |
|
|
# OBSOLETE gdb_test "print arrl3(0)(0)" \
|
669 |
|
|
# OBSOLETE ".* array or string index out of range.*" \
|
670 |
|
|
# OBSOLETE "check invalid array indices 10"
|
671 |
|
|
# OBSOLETE gdb_test "print arrl3(1)(0)" \
|
672 |
|
|
# OBSOLETE ".* array or string index out of range.*" \
|
673 |
|
|
# OBSOLETE "check invalid array indices 11"
|
674 |
|
|
# OBSOLETE gdb_test "print arrl3(1)(4)" \
|
675 |
|
|
# OBSOLETE ".* array or string index out of range.*" \
|
676 |
|
|
# OBSOLETE "check invalid array indices 12"
|
677 |
|
|
# OBSOLETE gdb_test "print arrl3(6)(4)" \
|
678 |
|
|
# OBSOLETE ".* array or string index out of range.*" \
|
679 |
|
|
# OBSOLETE "check invalid array indices 13"
|
680 |
|
|
# OBSOLETE gdb_test "print arrl3(1)(1)(0)" \
|
681 |
|
|
# OBSOLETE ".* array or string index out of range.*" \
|
682 |
|
|
# OBSOLETE "check invalid array indices 14"
|
683 |
|
|
# OBSOLETE gdb_test "print arrl3(6)(4)(0)" \
|
684 |
|
|
# OBSOLETE ".* array or string index out of range.*" \
|
685 |
|
|
# OBSOLETE "check invalid array indices 15"
|
686 |
|
|
# OBSOLETE gdb_test "print arrl3(1)(1)(3)" \
|
687 |
|
|
# OBSOLETE ".* array or string index out of range.*" \
|
688 |
|
|
# OBSOLETE "check invalid array indices 16"
|
689 |
|
|
# OBSOLETE
|
690 |
|
|
# OBSOLETE # slices
|
691 |
|
|
# OBSOLETE test_print_accept "print arrl4(1:3)" \
|
692 |
|
|
# OBSOLETE {\[\(1:2\): \[\(1:3\): \[\(1:2\): -2147483648\]\], \(3\): \[\(1:3\): \[\(1:2\): 100\]\]\]} \
|
693 |
|
|
# OBSOLETE "print array slice 1"
|
694 |
|
|
# OBSOLETE test_print_accept "ptype arrl4(1:3)" \
|
695 |
|
|
# OBSOLETE {ARRAY \(1:3\) ARRAY \(1:3\) ARRAY \(1:2\) long} \
|
696 |
|
|
# OBSOLETE "print mode of array slice"
|
697 |
|
|
# OBSOLETE # The next one is bogus:
|
698 |
|
|
# OBSOLETE # test_print_accept "print arrl4(5, 2:3, 1)" \
|
699 |
|
|
# OBSOLETE # # FIXME: maybe the '(1): ' in the inner tupel should be omitted ? \
|
700 |
|
|
# OBSOLETE # {\[(2): \[\(1\): 100\], \(3\):\[\(1\): 100\]\]} \
|
701 |
|
|
# OBSOLETE # "print array slice 2"
|
702 |
|
|
# OBSOLETE test_print_accept "print arrl4(1 up 4)" \
|
703 |
|
|
# OBSOLETE {\[\(1:2\): \[\(1:3\): \[\(1:2\): -2147483648\]\], \(3\): \[\(1:3\): \[\(1:2\): 100\]\], \(4\): \[\(1:3\): \[\(1:2\): -2147483648\]\]\]} \
|
704 |
|
|
# OBSOLETE "print array slice 3"
|
705 |
|
|
# OBSOLETE # The next two are bogus:
|
706 |
|
|
# OBSOLETE # test_print_accept "print arrl4(3, 2 up 1)" \
|
707 |
|
|
# OBSOLETE # {\[\(2:3\): \[\(1:2\): 100\]\]} \
|
708 |
|
|
# OBSOLETE # "print array slice 4"
|
709 |
|
|
# OBSOLETE # test_print_accept "print arrl4(1:2, 1 up 1, 2)" \
|
710 |
|
|
# OBSOLETE # {\[\(1\): \[\(1\): \[\(2\): -2147483648\], \(2\): \[\(2\): -2147483648\]\], \(2\): \[\(1\): \[\(2\): -2147483648\], \(2\): \[\(2\): -2147483648\]\]\]} \
|
711 |
|
|
# OBSOLETE # "print array slice 4"
|
712 |
|
|
# OBSOLETE # reject invalid slices
|
713 |
|
|
# OBSOLETE # FIXME: adjust error messages
|
714 |
|
|
# OBSOLETE gdb_test "print arrl4(5:6)" \
|
715 |
|
|
# OBSOLETE ".*slice out of range.*" \
|
716 |
|
|
# OBSOLETE "check invalid range 1"
|
717 |
|
|
# OBSOLETE gdb_test "print arrl4(0:1)" \
|
718 |
|
|
# OBSOLETE ".*slice out of range.*" \
|
719 |
|
|
# OBSOLETE "check invalid range 2"
|
720 |
|
|
# OBSOLETE gdb_test "print arrl4(0:6)" \
|
721 |
|
|
# OBSOLETE ".*slice out of range.*" \
|
722 |
|
|
# OBSOLETE "check invalid range 3"
|
723 |
|
|
# OBSOLETE gdb_test "print arrl4(3:2)" \
|
724 |
|
|
# OBSOLETE ".*slice out of range.*" \
|
725 |
|
|
# OBSOLETE "check invalid range 4"
|
726 |
|
|
# OBSOLETE gdb_test "print arrl4(1,3:4)" \
|
727 |
|
|
# OBSOLETE ".*syntax error.*" \
|
728 |
|
|
# OBSOLETE "check invalid range 5"
|
729 |
|
|
# OBSOLETE gdb_test "print arrl4(1,0:1)" \
|
730 |
|
|
# OBSOLETE ".*syntax error.*" \
|
731 |
|
|
# OBSOLETE "check invalid range 6"
|
732 |
|
|
# OBSOLETE gdb_test "print arrl4(1,0:4)" \
|
733 |
|
|
# OBSOLETE ".*syntax error.*" \
|
734 |
|
|
# OBSOLETE "check invalid range 7"
|
735 |
|
|
# OBSOLETE gdb_test "print arrl4(1,3:2)" \
|
736 |
|
|
# OBSOLETE ".*syntax error.*" \
|
737 |
|
|
# OBSOLETE "check invalid range 8"
|
738 |
|
|
# OBSOLETE gdb_test "print arrl4(5 up 2)" \
|
739 |
|
|
# OBSOLETE ".*slice out of range.*" \
|
740 |
|
|
# OBSOLETE "check invalid range 9"
|
741 |
|
|
# OBSOLETE gdb_test "print arrl4(-1 up 1)" \
|
742 |
|
|
# OBSOLETE ".*slice out of range.*" \
|
743 |
|
|
# OBSOLETE "check invalid range 10"
|
744 |
|
|
# OBSOLETE gdb_test "print arrl4(-1 up 7)" \
|
745 |
|
|
# OBSOLETE ".*slice out of range.*" \
|
746 |
|
|
# OBSOLETE "check invalid range 11"
|
747 |
|
|
# OBSOLETE gdb_test "print arrl4(1 up 0)" \
|
748 |
|
|
# OBSOLETE ".*slice out of range.*" \
|
749 |
|
|
# OBSOLETE "check invalid range 12"
|
750 |
|
|
# OBSOLETE gdb_test "print arrl4(1,3 up 1)" \
|
751 |
|
|
# OBSOLETE ".*syntax error.*" \
|
752 |
|
|
# OBSOLETE "check invalid range 13"
|
753 |
|
|
# OBSOLETE gdb_test "print arrl4(1,-1 up 1)" \
|
754 |
|
|
# OBSOLETE ".*syntax error.*" \
|
755 |
|
|
# OBSOLETE "check invalid range 14"
|
756 |
|
|
# OBSOLETE gdb_test "print arrl4(1,-1 up 5)" \
|
757 |
|
|
# OBSOLETE ".*syntax error.*" \
|
758 |
|
|
# OBSOLETE "check invalid range 15"
|
759 |
|
|
# OBSOLETE gdb_test "print arrl4(1,2 up 0)" \
|
760 |
|
|
# OBSOLETE ".*syntax error.*" \
|
761 |
|
|
# OBSOLETE "check invalid range 16"
|
762 |
|
|
# OBSOLETE
|
763 |
|
|
# OBSOLETE # structure modes
|
764 |
|
|
# OBSOLETE # some tests are in chillvars.exp
|
765 |
|
|
# OBSOLETE # FIXME: no tag processing implemented do maybe adjust these tests
|
766 |
|
|
# OBSOLETE setup_xfail "*-*-*"
|
767 |
|
|
# OBSOLETE test_print_accept "ptype stru1m" \
|
768 |
|
|
# OBSOLETE "STRUCT \\(.*a long,.*b long,.*CASE b OF.*\\(42\\):.*ch1 CHARS\\(20\\),.*\\(52\\):.*ch2 CHARS\\(10\\).*ELSE.*ch3 CHARS\\(1\\).*ESAC.*\\)" \
|
769 |
|
|
# OBSOLETE "print mode of structure location 1"
|
770 |
|
|
# OBSOLETE test_print_accept "whatis strul1" "stru1m" \
|
771 |
|
|
# OBSOLETE "print mode name of structure location 1"
|
772 |
|
|
# OBSOLETE setup_xfail "*-*-*"
|
773 |
|
|
# OBSOLETE test_print_accept "print strul1" \
|
774 |
|
|
# OBSOLETE {\[\.a: -2147483648, \.b: 42, \.\(b\): \{\(42\) = \[\.ch1: \"12345678900987654321\"\], \(52\) = \[\.ch2: \"1234567890\"\], (else) = \[\.ch3: \"1\"\]\}\]} \
|
775 |
|
|
# OBSOLETE "print structure location 1"
|
776 |
|
|
# OBSOLETE test_print_accept "print strul1.a" \
|
777 |
|
|
# OBSOLETE "-2147483648" \
|
778 |
|
|
# OBSOLETE "print field of structure location 1"
|
779 |
|
|
# OBSOLETE test_print_accept "print strul1.b" "42" \
|
780 |
|
|
# OBSOLETE "print field of structure location 1"
|
781 |
|
|
# OBSOLETE test_print_accept "print strul1.ch1" \
|
782 |
|
|
# OBSOLETE "\"12345678900987654321\"" \
|
783 |
|
|
# OBSOLETE "print field of structure location 1"
|
784 |
|
|
# OBSOLETE # setup_xfail "*-*-*"
|
785 |
|
|
# OBSOLETE test_print_accept "print strul1.ch2" \
|
786 |
|
|
# OBSOLETE "\"1234567890\"" \
|
787 |
|
|
# OBSOLETE "print field of structure location 1"
|
788 |
|
|
# OBSOLETE # setup_xfail "*-*-*"
|
789 |
|
|
# OBSOLETE test_print_accept "print strul1.ch3" \
|
790 |
|
|
# OBSOLETE "\"1\"" \
|
791 |
|
|
# OBSOLETE "print field of structure location 1"
|
792 |
|
|
# OBSOLETE
|
793 |
|
|
# OBSOLETE if $passcount then {
|
794 |
|
|
# OBSOLETE pass "$passcount correct locations printed"
|
795 |
|
|
# OBSOLETE }
|
796 |
|
|
# OBSOLETE }
|
797 |
|
|
# OBSOLETE
|
798 |
|
|
# OBSOLETE # This is chill/9434
|
799 |
|
|
# OBSOLETE
|
800 |
|
|
# OBSOLETE proc test_9434 {} {
|
801 |
|
|
# OBSOLETE global passcount
|
802 |
|
|
# OBSOLETE
|
803 |
|
|
# OBSOLETE verbose "testing pr-9434"
|
804 |
|
|
# OBSOLETE
|
805 |
|
|
# OBSOLETE test_print_accept "ptype m_xyzmode" "STRUCT \\(.*next REF m_xyzmode,.*i long.*\\)"
|
806 |
|
|
# OBSOLETE }
|
807 |
|
|
# OBSOLETE
|
808 |
|
|
# OBSOLETE # Start with a fresh gdb.
|
809 |
|
|
# OBSOLETE
|
810 |
|
|
# OBSOLETE gdb_exit
|
811 |
|
|
# OBSOLETE gdb_start
|
812 |
|
|
# OBSOLETE gdb_reinitialize_dir $srcdir/$subdir
|
813 |
|
|
# OBSOLETE
|
814 |
|
|
# OBSOLETE gdb_test "set print sevenbit-strings" ".*"
|
815 |
|
|
# OBSOLETE
|
816 |
|
|
# OBSOLETE if [set_lang_chill] then {
|
817 |
|
|
# OBSOLETE test_modes
|
818 |
|
|
# OBSOLETE test_locations
|
819 |
|
|
# OBSOLETE test_9434
|
820 |
|
|
# OBSOLETE } else {
|
821 |
|
|
# OBSOLETE warning "$test_name tests suppressed."
|
822 |
|
|
# OBSOLETE }
|