| OLD | NEW |
| 1 # This testcase is part of GDB, the GNU debugger. | 1 # This testcase is part of GDB, the GNU debugger. |
| 2 # Copyright 1993, 1997, 2004, 2007-2012 Free Software Foundation, Inc. | 2 # Copyright 1993, 1997, 2004, 2007-2012 Free Software Foundation, 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 # And rewritten by Michael Chastain (mec.gnu@mindspring.com) | 18 # And rewritten by Michael Chastain (mec.gnu@mindspring.com) |
| 19 | 19 |
| 20 if $tracelevel then { | |
| 21 strace $tracelevel | |
| 22 } | |
| 23 | |
| 24 | 20 |
| 25 # Start with a fresh gdb. | 21 # Start with a fresh gdb. |
| 26 | 22 |
| 27 gdb_exit | 23 gdb_exit |
| 28 gdb_start | 24 gdb_start |
| 29 | 25 |
| 30 # Test input radices. | 26 # Test input radices. |
| 31 | 27 |
| 32 proc test_one_input { iradix input output } { | 28 proc test_one_input { iradix input output } { |
| 33 gdb_test "print $input" "$output" \ | 29 gdb_test "print $input" "$output" \ |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 gdb_test "show output-radix" \ | 182 gdb_test "show output-radix" \ |
| 187 "Default output radix for printing of values is 10\\." \ | 183 "Default output radix for printing of values is 10\\." \ |
| 188 "Output radix unchanged after rejecting 1" | 184 "Output radix unchanged after rejecting 1" |
| 189 | 185 |
| 190 gdb_test "set radix 7" \ | 186 gdb_test "set radix 7" \ |
| 191 "Unsupported output radix ``decimal 7''; output radix unchanged\\." \ | 187 "Unsupported output radix ``decimal 7''; output radix unchanged\\." \ |
| 192 "set radix 7 rejected" | 188 "set radix 7 rejected" |
| 193 gdb_test "show output-radix" \ | 189 gdb_test "show output-radix" \ |
| 194 "Default output radix for printing of values is 10\\." \ | 190 "Default output radix for printing of values is 10\\." \ |
| 195 "Output radix unchanged after rejection through set radix command" | 191 "Output radix unchanged after rejection through set radix command" |
| OLD | NEW |