OLD | NEW |
1 # Copyright 2002-2003, 2007-2012 Free Software Foundation, Inc. | 1 # Copyright 2002-2003, 2007-2012 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 |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 set count [expr {$count + 2}] | 135 set count [expr {$count + 2}] |
136 } | 136 } |
137 | 137 |
138 # Match the prompt so the next test starts at the right place. | 138 # Match the prompt so the next test starts at the right place. |
139 gdb_test "" ".*" "$name - final prompt" | 139 gdb_test "" ".*" "$name - final prompt" |
140 | 140 |
141 return 1 | 141 return 1 |
142 } | 142 } |
143 | 143 |
144 | 144 |
145 if $tracelevel { | |
146 strace $tracelevel | |
147 } | |
148 | |
149 gdb_start | 145 gdb_start |
150 gdb_reinitialize_dir $srcdir/$subdir | 146 gdb_reinitialize_dir $srcdir/$subdir |
151 | 147 |
152 set oldtimeout1 $timeout | 148 set oldtimeout1 $timeout |
153 set timeout 30 | 149 set timeout 30 |
154 | 150 |
155 | 151 |
156 # A simple test of operate-and-get-next. | 152 # A simple test of operate-and-get-next. |
157 operate_and_get_next "Simple operate-and-get-next" \ | 153 operate_and_get_next "Simple operate-and-get-next" \ |
158 "p 1" ".* = 1" \ | 154 "p 1" ".* = 1" \ |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 unset env(GDBHISTFILE) | 203 unset env(GDBHISTFILE) |
208 } | 204 } |
209 if [info exists old_histsize] { | 205 if [info exists old_histsize] { |
210 set env(HISTSIZE) $old_histsize | 206 set env(HISTSIZE) $old_histsize |
211 } else { | 207 } else { |
212 unset env(HISTSIZE) | 208 unset env(HISTSIZE) |
213 } | 209 } |
214 set timeout $oldtimeout1 | 210 set timeout $oldtimeout1 |
215 | 211 |
216 return 0 | 212 return 0 |
OLD | NEW |