OLD | NEW |
1 # Copyright 2006-2012 Free Software Foundation, Inc. | 1 # Copyright 2006-2013 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 gdb_exit | 16 gdb_exit |
17 gdb_start | 17 gdb_start |
18 gdb_reinitialize_dir $srcdir/$subdir | 18 gdb_reinitialize_dir $srcdir/$subdir |
19 | 19 |
20 # Do a bunch of testing of the set/unset/show substitute-path | 20 # Do a bunch of testing of the set/unset/show substitute-path |
21 # commands that do not require the presence of an executable. | 21 # commands that do not require the presence of an executable. |
22 | 22 |
23 gdb_test_no_output "set confirm off" \ | 23 gdb_test_no_output "set confirm off" \ |
24 "deactivate GDB's confirmation interface" | 24 "deactivate GDB's confirmation interface" |
25 | 25 |
| 26 # Clear any substitution rules that are available by default due |
| 27 # to GDB being configured with --with-relocated-sources. |
| 28 |
| 29 gdb_test_no_output "unset substitute-path" \ |
| 30 "remove default substitution rules" |
| 31 |
26 gdb_test "show substitute-path" \ | 32 gdb_test "show substitute-path" \ |
27 "List of all source path substitution rules:" \ | 33 "List of all source path substitution rules:" \ |
28 "show substitute-path, no rule entered yet" | 34 "show substitute-path, no rule entered yet" |
29 | 35 |
30 gdb_test "show substitute-path from" \ | 36 gdb_test "show substitute-path from" \ |
31 "Source path substitution rule matching `from':" \ | 37 "Source path substitution rule matching `from':" \ |
32 "show substitute-path from, no rule entered yet" | 38 "show substitute-path from, no rule entered yet" |
33 | 39 |
34 gdb_test "show substitute-path too many" \ | 40 gdb_test "show substitute-path too many" \ |
35 "Too many arguments in command" \ | 41 "Too many arguments in command" \ |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 "show substitute-path after empty rule removed" | 129 "show substitute-path after empty rule removed" |
124 | 130 |
125 gdb_test_no_output "unset substitute-path" \ | 131 gdb_test_no_output "unset substitute-path" \ |
126 "remove all remaining substitution rules" | 132 "remove all remaining substitution rules" |
127 | 133 |
128 gdb_test "show substitute-path" \ | 134 gdb_test "show substitute-path" \ |
129 "List of all source path substitution rules:" \ | 135 "List of all source path substitution rules:" \ |
130 "show substitute-path after all remaining rules removed" | 136 "show substitute-path after all remaining rules removed" |
131 | 137 |
132 | 138 |
OLD | NEW |