OLD | NEW |
1 # This testcase is part of GDB, the GNU debugger. | 1 # This testcase is part of GDB, the GNU debugger. |
2 | 2 |
3 # Copyright 1997-2004, 2007-2012 Free Software Foundation, Inc. | 3 # Copyright 1997-2004, 2007-2012 Free Software Foundation, Inc. |
4 | 4 |
5 # This program is free software; you can redistribute it and/or modify | 5 # This program is free software; you can redistribute it and/or modify |
6 # it under the terms of the GNU General Public License as published by | 6 # it under the terms of the GNU General Public License as published by |
7 # the Free Software Foundation; either version 3 of the License, or | 7 # the Free Software Foundation; either version 3 of the License, or |
8 # (at your option) any later version. | 8 # (at your option) any later version. |
9 # | 9 # |
10 # This program is distributed in the hope that it will be useful, | 10 # This program is distributed in the hope that it will be useful, |
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 # GNU General Public License for more details. | 13 # GNU General Public License for more details. |
14 # | 14 # |
15 # You should have received a copy of the GNU General Public License | 15 # You should have received a copy of the GNU General Public License |
16 # along with this program. If not, see <http://www.gnu.org/licenses/>. */ | 16 # along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
17 | 17 |
18 # long_long.exp Test printing of 64-bit things in 32-bit gdb. | 18 # long_long.exp Test printing of 64-bit things in 32-bit gdb. |
19 # Also test differnet kinds of formats. | 19 # Also test differnet kinds of formats. |
20 # | 20 # |
21 if $tracelevel then { | |
22 strace $tracelevel | |
23 } | |
24 | |
25 if [target_info exists no_long_long] { | 21 if [target_info exists no_long_long] { |
26 return 0 | 22 return 0 |
27 } | 23 } |
28 | 24 |
29 set testfile long_long | 25 set testfile long_long |
30 set srcfile ${testfile}.c | 26 set srcfile ${testfile}.c |
31 set binfile ${objdir}/${subdir}/${testfile} | 27 set binfile ${objdir}/${subdir}/${testfile} |
32 | 28 |
33 # What compiler are we using? | 29 # What compiler are we using? |
34 # | 30 # |
35 if [get_compiler_info ${binfile}] { | 31 if [get_compiler_info] { |
36 return -1 | 32 return -1 |
37 } | 33 } |
38 | 34 |
39 if {$hp_cc_compiler} { | 35 if {$hp_cc_compiler} { |
40 set flag "+e" | 36 set flag "+e" |
41 } else { | 37 } else { |
42 set flag "" | 38 set flag "" |
43 } | 39 } |
44 | 40 |
45 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [con
cat debug additional_flags=$flag nowarnings]] != "" } { | 41 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [con
cat debug additional_flags=$flag nowarnings]] != "" } { |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 gdb_test "x/2gd g" "81985529216486895.*-6399925985474168457" | 286 gdb_test "x/2gd g" "81985529216486895.*-6399925985474168457" |
291 gdb_test "x/2gu g" "81985529216486895.*12046818088235383159" | 287 gdb_test "x/2gu g" "81985529216486895.*12046818088235383159" |
292 gdb_test "x/2go g" "04432126361152746757.*01234567123456701234567" | 288 gdb_test "x/2go g" "04432126361152746757.*01234567123456701234567" |
293 gdb_test "x/2gt g" "000000010010001101000101011001111000100110101011110011011110
1111.*1010011100101110111001010011100101110111000001010011100101110111" | 289 gdb_test "x/2gt g" "000000010010001101000101011001111000100110101011110011011110
1111.*1010011100101110111001010011100101110111000001010011100101110111" |
294 gdb_test_ptr "x/2ga g" "" "" "0x89abcdef.*0x77053977" "0x123456789abcdef.*0xa72e
e53977053977" | 290 gdb_test_ptr "x/2ga g" "" "" "0x89abcdef.*0x77053977" "0x123456789abcdef.*0xa72e
e53977053977" |
295 gdb_test "x/2gc g" "-17 '.\[0-9\]*'.*119 'w'" | 291 gdb_test "x/2gc g" "-17 '.\[0-9\]*'.*119 'w'" |
296 gdb_test "x/2gf g" "3.5127005640885037e-303.*-5.9822653797615723e-120" | 292 gdb_test "x/2gf g" "3.5127005640885037e-303.*-5.9822653797615723e-120" |
297 | 293 |
298 gdb_exit | 294 gdb_exit |
299 return 0 | 295 return 0 |
OLD | NEW |