OLD | NEW |
1 # Copyright 1992, 1994-1995, 1997, 2007-2012 Free Software Foundation, | 1 # Copyright 1992, 1994-1995, 1997, 2007-2012 Free Software Foundation, |
2 # Inc. | 2 # 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 Fred Fish. (fnf@cygnus.com) | 17 # This file was written by Fred Fish. (fnf@cygnus.com) |
18 | 18 |
19 if $tracelevel then { | |
20 strace $tracelevel | |
21 } | |
22 | |
23 | 19 |
24 set testfile "bitfields" | 20 set testfile "bitfields" |
25 set srcfile ${testfile}.c | 21 set srcfile ${testfile}.c |
26 set binfile ${objdir}/${subdir}/${testfile} | 22 set binfile ${objdir}/${subdir}/${testfile} |
27 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
ug}] != "" } { | 23 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
ug}] != "" } { |
28 untested bitfields.exp | 24 untested bitfields.exp |
29 return -1 | 25 return -1 |
30 } | 26 } |
31 | 27 |
32 # | 28 # |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 gdb_test "print container.two.u3" ".* = 3" | 246 gdb_test "print container.two.u3" ".* = 3" |
251 } | 247 } |
252 | 248 |
253 gdb_start | 249 gdb_start |
254 gdb_reinitialize_dir $srcdir/$subdir | 250 gdb_reinitialize_dir $srcdir/$subdir |
255 gdb_load ${binfile} | 251 gdb_load ${binfile} |
256 | 252 |
257 gdb_test_no_output "set print sevenbit-strings" | 253 gdb_test_no_output "set print sevenbit-strings" |
258 | 254 |
259 bitfield_uniqueness | 255 bitfield_uniqueness |
260 if [istarget "mips-idt-*"] then { | |
261 # Restart because IDT/SIM runs out of file descriptors. | |
262 gdb_exit | |
263 gdb_start | |
264 gdb_reinitialize_dir $srcdir/$subdir | |
265 gdb_load ${binfile} | |
266 } | |
267 bitfield_containment | 256 bitfield_containment |
268 if [istarget "mips-idt-*"] then { | |
269 # Restart because IDT/SIM runs out of file descriptors. | |
270 gdb_exit | |
271 gdb_start | |
272 gdb_reinitialize_dir $srcdir/$subdir | |
273 gdb_load ${binfile} | |
274 } | |
275 bitfield_unsignedness | 257 bitfield_unsignedness |
276 if [istarget "mips-idt-*"] then { | |
277 # Restart because IDT/SIM runs out of file descriptors. | |
278 gdb_exit | |
279 gdb_start | |
280 gdb_reinitialize_dir $srcdir/$subdir | |
281 gdb_load ${binfile} | |
282 } | |
283 bitfield_signedness | 258 bitfield_signedness |
284 | |
285 bitfield_at_offset | 259 bitfield_at_offset |
OLD | NEW |