1 # Copyright 1988, 1990, 1991, 1992, 1994, 1995, 1997, 1998, 1999, 2000,
2 # 2001, 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
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
6 # the Free Software Foundation; either version 3 of the License, or
7 # (at your option) any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
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/>.
22 # test special commands (if, while, etc)
28 set srcfile ${testfile}.c
29 set binfile ${objdir}/${subdir}/commands
30 if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-DFAKEARGV}] != "" } {
38 gdb_reinitialize_dir $srcdir/$subdir
41 proc gdbvar_simple_if_test {} {
44 gdb_test "set \$foo = 0" "" "set foo in gdbvar_simple_if_test"
45 # All this test should do is print 0xdeadbeef once.
46 gdb_test "if \$foo == 1\np/x 0xfeedface\nelse\np/x 0xdeadbeef\nend" \
47 "\\\$\[0-9\]* = 0xdeadbeef" "gdbvar_simple_if_test #1"
48 # All this test should do is print 0xfeedface once.
49 gdb_test "if \$foo == 0\np/x 0xfeedface\nelse\np/x 0xdeadbeef\nend" \
50 "\\\$\[0-9\]* = 0xfeedface" "gdbvar_simple_if_test #2"
53 proc gdbvar_simple_while_test {} {
56 gdb_test "set \$foo = 5" "" "set foo in gdbvar_simple_while_test"
57 # This test should print 0xfeedface five times.
58 gdb_test "while \$foo > 0\np/x 0xfeedface\nset \$foo -= 1\nend" \
59 "\\\$\[0-9\]* = 0xfeedface\[^\n\]*\n\\\$\[0-9\]* = 0xfeedface\[^\n\]*\n\\\$\[0-9\]* = 0xfeedface\[^\n\]*\n\\\$\[0-9\]* = 0xfeedface\[^\n\]*\n\\\$\[0-9\]* = 0xfeedface" \
60 "gdbvar_simple_while_test #1"
63 proc gdbvar_complex_if_while_test {} {
66 gdb_test "set \$foo = 4" "" "set foo in gdbvar complex_if_while_test"
67 # This test should alternate between 0xdeadbeef and 0xfeedface two times.
68 gdb_test "while \$foo > 0\nset \$foo -= 1\nif \(\$foo % 2\) == 1\np/x 0xdeadbeef\nelse\np/x 0xfeedface\nend\nend" \
69 "\\\$\[0-9\]* = 0xdeadbeef\[^\n\]*\n\\\$\[0-9\]* = 0xfeedface\[^\n\]*\n\\\$\[0-9\]* = 0xdeadbeef\[^\n\]*\n\\\$\[0-9\]* = 0xfeedface" \
70 "gdbvar_complex_if_while_test #1"
73 proc progvar_simple_if_test {} {
76 if [target_info exists noargs] {
77 verbose "Skipping progvar_simple_if_test because of noargs."
81 if { ![runto factorial] } then { gdb_suppress_tests; }
82 # Don't depend upon argument passing, since most simulators don't
83 # currently support it. Bash value variable to be what we want.
84 gdb_test "p value=5" "" "set value to 5 in progvar_simple_if_test #1"
85 # All this test should do is print 0xdeadbeef once.
86 gdb_test "if value == 1\np/x 0xfeedface\nelse\np/x 0xdeadbeef\nend" \
87 "\\\$\[0-9\]* = 0xdeadbeef" \
88 "progvar_simple_if_test #1"
89 # All this test should do is print 0xfeedface once.
90 gdb_test "if value == 5\np/x 0xfeedface\nelse\np/x 0xdeadbeef\nend" \
91 "\\\$\[0-9\]* = 0xfeedface" \
92 "progvar_simple_if_test #2"
93 gdb_stop_suppressing_tests;
96 proc progvar_simple_while_test {} {
99 if [target_info exists noargs] {
100 verbose "Skipping progvar_simple_while_test because of noargs."
104 gdb_test "set args 5" "" "set args in progvar_simple_while_test"
105 if { ![runto factorial] } then { gdb_suppress_tests }
106 # Don't depend upon argument passing, since most simulators don't
107 # currently support it. Bash value variable to be what we want.
108 gdb_test "p value=5" "" "set value to 5 in progvar_simple_if_test #2"
109 # This test should print 0xfeedface five times.
110 gdb_test "while value > 0\np/x 0xfeedface\nset value -= 1\nend" \
111 "\\\$\[0-9\]* = 0xfeedface\[^\n\]*\n\\\$\[0-9\]* = 0xfeedface\[^\n\]*\n\\\$\[0-9\]* = 0xfeedface\[^\n\]*\n\\\$\[0-9\]* = 0xfeedface\[^\n\]*\n\\\$\[0-9\]* = 0xfeedface" \
112 "progvar_simple_while_test #1"
113 gdb_stop_suppressing_tests;
116 proc progvar_complex_if_while_test {} {
119 if [target_info exists noargs] {
120 verbose "Skipping progvar_simple_if_while_test because of noargs."
124 gdb_test "set args 4" "" "set args in progvar_complex_if_while_test"
125 if { ![runto factorial] } then { gdb_suppress_tests }
126 # Don't depend upon argument passing, since most simulators don't
127 # currently support it. Bash value variable to be what we want.
128 gdb_test "p value=4" "" "set value to 4 in progvar_simple_if_test"
129 # This test should alternate between 0xdeadbeef and 0xfeedface two times.
130 gdb_test "while value > 0\nset value -= 1\nif \(value % 2\) == 1\np/x 0xdeadbeef\nelse\np/x 0xfeedface\nend\nend" \
131 "\\\$\[0-9\]* = 0xdeadbeef\[^\n\]*\n\\\$\[0-9\]* = 0xfeedface\[^\n\]*\n\\\$\[0-9\]* = 0xdeadbeef\[^\n\]*\n\\\$\[0-9\]* = 0xfeedface" \
132 "progvar_complex_if_while_test #1"
133 gdb_stop_suppressing_tests;
136 proc if_while_breakpoint_command_test {} {
137 if [target_info exists noargs] {
138 verbose "Skipping if_while_breakpoint_command_test because of noargs."
142 gdb_test "set args 5" "" "set args in if_while_breakpoint_command_test"
143 if { ![runto factorial] } then { gdb_suppress_tests }
144 # Don't depend upon argument passing, since most simulators don't
145 # currently support it. Bash value variable to be what we want.
146 gdb_test "p value=5" "" "set value to 5 in progvar_simple_if_test"
148 gdb_test "break factorial" "Breakpoint.*at.*" "break factorial #1"
150 send_gdb "commands\n"
153 pass "commands in if_while_breakpoint_command_test"
156 fail "(timeout or eof) commands in if_while_breakpoint_command_test"
159 # This test should alternate between 0xdeadbeef and 0xfeedface two times.
160 gdb_test "while value > 0\nset value -= 1\nif \(value % 2\) == 1\np/x 0xdeadbeef\nelse\np/x 0xfeedface\nend\nend\nend" \
162 "commands part 2 in if_while_breakpoint_command_test"
163 gdb_test "continue" \
164 "\\\$\[0-9\]* = 0xdeadbeef\[^\n\]*\n\\\$\[0-9\]* = 0xfeedface\[^\n\]*\n\\\$\[0-9\]* = 0xdeadbeef\[^\n\]*\n\\\$\[0-9\]* = 0xfeedface" \
165 "if_while_breakpoint_command_test #1"
166 gdb_test "info break" \
167 "while.*set.*if.*p/x.*else.*p/x.*end.*" \
168 "info break in if_while_breakpoint_command_test"
169 gdb_stop_suppressing_tests;
172 # Test that we can run the inferior from breakpoint commands.
174 # The expected behavior is that all commands after the first "step"
175 # shall be ignored. See the gdb manual, "Break Commands",
176 # subsection "Breakpoint command lists".
178 proc infrun_breakpoint_command_test {} {
179 if [target_info exists noargs] {
180 verbose "Skipping infrun_breakpoint_command_test because of noargs."
184 gdb_test "set args 6" "" "set args in infrun_breakpoint_command_test"
185 if { ![runto factorial] } then { gdb_suppress_tests }
186 # Don't depend upon argument passing, since most simulators don't
187 # currently support it. Bash value variable to be what we want.
188 gdb_test "p value=6" "" "set value to 6 in progvar_simple_if_test #1"
190 gdb_test "break factorial if value == 5" "Breakpoint.*at.*"
192 # infrun_breakpoint_command_test - This test was broken into two parts
193 # to get around a synchronization problem in expect.
194 # part1: issue the gdb command "commands"
195 # part2: send the list of commands
196 send_gdb "commands\n"
199 pass "commands in infrun_breakpoint_command_test #1"
202 fail "(timeout or eof) commands in infrun_breakpoint_command_test"
205 gdb_test "step\nstep\nstep\nstep\nend" "" \
206 "commands in infrun_breakpoint_command_test #2"
208 gdb_test "continue" \
209 "Continuing.*.*.*Breakpoint \[0-9\]*, factorial \\(value=5\\).*at.*\[0-9\]*\[ \]*if \\(value > 1\\) \{.*\[0-9\]*\[ \]*value \\*= factorial \\(value - 1\\);.*" \
210 "continue in infrun_breakpoint_command_test"
212 gdb_stop_suppressing_tests;
215 proc breakpoint_command_test {} {
216 if [target_info exists noargs] {
217 verbose "Skipping breakpoint_command_test because of noargs."
221 gdb_test "set args 6" "" "set args in breakpoint_command_test"
222 if { ![runto factorial] } then { gdb_suppress_tests; }
223 # Don't depend upon argument passing, since most simulators don't
224 # currently support it. Bash value variable to be what we want.
225 gdb_test "p value=6" "" "set value to 6 in progvar_simple_if_test #2"
227 gdb_test "break factorial" "Breakpoint.*at.*" "break factorial #2"
228 gdb_test "commands\nprintf \"Now the value is %d\\n\", value\nend" \
229 "End with.*" "commands in breakpoint_command_test"
230 gdb_test "continue" \
231 "Breakpoint \[0-9\]*, factorial.*Now the value is 5" \
232 "continue in breakpoint_command_test"
233 gdb_test "print value" " = 5" "print value in breakpoint_command_test"
234 gdb_stop_suppressing_tests;
237 # Test a simple user defined command (with arguments)
238 proc user_defined_command_test {} {
241 gdb_test "set \$foo = 4" "" "set foo in user_defined_command_test"
243 send_gdb "define mycommand\n"
246 pass "define mycommand in user_defined_command_test"
249 fail "(timeout or eof) define mycommand in user_defined_command_test"
252 # This test should alternate between 0xdeadbeef and 0xfeedface two times.
253 gdb_test "while \$arg0 > 0\nset \$arg0 -= 1\nif \(\$arg0 % 2\) == 1\np/x 0xdeadbeef\nelse\np/x 0xfeedface\nend\nend\nend" \
255 "enter commands in user_defined_command_test"
257 gdb_test "mycommand \$foo" \
258 "\\\$\[0-9\]* = 0xdeadbeef\[^\n\]*\n\\\$\[0-9\]* = 0xfeedface\[^\n\]*\n\\\$\[0-9\]* = 0xdeadbeef\[^\n\]*\n\\\$\[0-9\]* = 0xfeedface" \
259 "execute user defined command in user_defined_command_test"
260 gdb_test "show user mycommand" \
261 " while \\\$arg0.*set.* if \\\(\\\$arg0.*p/x.* else\[^\n\].*p/x.* end\[^\n\].* end\[^\n\].*" \
262 "display user command in user_defined_command_test"
265 proc watchpoint_command_test {} {
269 if [target_info exists noargs] {
270 verbose "Skipping watchpoint_command_test because of noargs."
274 # Disable hardware watchpoints if necessary.
275 if [target_info exists gdb,no_hardware_watchpoints] {
276 gdb_test "set can-use-hw-watchpoints 0" "" ""
279 gdb_test "set args 6" "" "set args in watchpoint_command_test"
280 if { ![runto factorial] } then { return }
283 # Verify that we can create a watchpoint, and give it a commands
284 # list that continues the inferior. We set the watchpoint on a
285 # local variable, too, so that it self-deletes when the watched
286 # data goes out of scope.
288 # What should happen is: Each time the watchpoint triggers, it
289 # continues the inferior. Eventually, the watchpoint will self-
290 # delete, when the watched variable is out of scope. But by that
291 # time, the inferior should have exited. GDB shouldn't crash or
292 # anything untoward as a result of this.
296 send_gdb "watch local_var\n"
298 -re ".*\[Ww\]atchpoint (\[0-9\]*): local_var.*$gdb_prompt $" {
299 set wp_id $expect_out(1,string)
300 pass "watch local_var"
303 {fail "watch local_var"}
304 timeout {fail "(timeout) watch local_var"}
307 if {$wp_id == -1} {return}
309 send_gdb "commands $wp_id\n"
311 -re "Type commands for when breakpoint $wp_id is hit, one per line.*>" {
312 pass "begin commands on watch"
314 -re "$gdb_prompt $" {fail "begin commands on watch"}
315 timeout {fail "(timeout) begin commands on watch"}
317 send_gdb "print value\n"
319 -re ">" {pass "add print command to watch"}
320 -re "$gdb_prompt $" {fail "add print command to watch"}
321 timeout {fail "(timeout) add print command to watch"}
323 send_gdb "continue\n"
325 -re ">" {pass "add continue command to watch"}
326 -re "$gdb_prompt $" {fail "add continue command to watch"}
327 timeout {fail "(timeout) add continue command to watch"}
331 -re "$gdb_prompt $" {pass "end commands on watch"}
332 timeout {fail "(timeout) end commands on watch"}
334 send_gdb "continue\n"
336 -re "Continuing.*\[Ww\]atchpoint $wp_id deleted because the program has left the block in.*which its expression is valid.*run.c:(57|82).*$gdb_prompt $" {
337 pass "continue with watch"
339 -re "$gdb_prompt $" {fail "continue with watch"}
340 timeout {fail "(timeout) continue with watch"}
344 proc test_command_prompt_position {} {
347 if [target_info exists noargs] {
348 verbose "Skipping test_command_prompt_position because of noargs."
352 if { ![runto factorial] } then { gdb_suppress_tests; }
353 # Don't depend upon argument passing, since most simulators don't
354 # currently support it. Bash value variable to be what we want.
356 gdb_test "break factorial" "Breakpoint.*at.*" "break factorial #3"
357 gdb_test "p value=5" "" "set value to 5 in test_command_prompt_position"
358 # All this test should do is print 0xdeadbeef once.
359 gdb_test "if value == 1\np/x 0xfeedface\nelse\np/x 0xdeadbeef\nend" \
360 "\\\$\[0-9\]* = 0xdeadbeef" \
361 "if test in test_command_prompt_position"
363 # Now let's test for the correct position of the '>' in gdb's
364 # prompt for commands. It should be at the beginning of the line,
365 # and not after one space.
367 send_gdb "commands\n"
369 -re "Type commands.*End with.*\[\r\n\]>$" {
370 send_gdb "printf \"Now the value is %d\\n\", value\n"
372 -re "^printf.*value\r\n>$" {
375 -re "^end\r\n$gdb_prompt $" {
376 pass "> OK in test_command_prompt_position"
378 -re ".*$gdb_prompt $" {
379 fail "some other message in test_command_prompt_position"
382 fail "(timeout) 1 in test_command_prompt_position"
386 -re "^ >$" { fail "> not OK in test_command_prompt_position" }
387 -re ".*$gdb_prompt $" {
388 fail "wrong message in test_command_prompt_position"
391 fail "(timeout) 2 in test_command_prompt_position "
395 -re "Type commands.*End with.*\[\r\n\] >$" {
396 fail "prompt not OK in test_command_prompt_position"
398 -re ".*$gdb_prompt $" {
399 fail "commands in test_command_prompt_position"
401 timeout { fail "(timeout) 3 commands in test_command_prompt_position" }
404 gdb_stop_suppressing_tests;
409 proc deprecated_command_test {} {
410 gdb_test "maintenance deprecate blah" "Can't find command.*" \
411 "tried to deprecate non-existing command"
413 gdb_test "maintenance deprecate p \"new_p\"" "" "maintenance deprecate p \"new_p\" /1/"
415 "Warning: 'p', an alias for the command 'print' is deprecated.*Use 'new_p'.*" \
416 "p deprecated warning, with replacement"
417 gdb_test "p 5" ".\[0-9\]* = 5.*" "Deprecated warning goes away /1/"
419 gdb_test "maintenance deprecate p \"new_p\"" "" "maintenance deprecate p \"new_p\" /2/"
420 gdb_test "maintenance deprecate print \"new_print\"" ""
422 "Warning: command 'print' \\(p\\) is deprecated.*Use 'new_print'.*" \
423 "both alias and command are deprecated"
424 gdb_test "p 5" ".\[0-9\]* = 5.*" "Deprecated warning goes away /2/"
426 gdb_test "maintenance deprecate set remote memory-read-packet-size \"srm\" " \
428 "deprecate long command /1/"
429 gdb_test "set remote memory-read-packet-size" \
430 "Warning: command 'set remote memory-read-packet-size' is deprecated.*Use 'srm'.*" \
431 "long command deprecated /1/"
433 gdb_test "maintenance deprecate set remote memory-read-packet-size" \
435 "deprecate long command /2/"
436 gdb_test "set remote memory-read-packet-size" \
437 "Warning: command 'set remote memory-read-packet-size' is deprecated.*No alternative known.*" \
438 "long command deprecated with no alternative /2/"
440 gdb_test "maintenance deprecate" \
441 "\"maintenance deprecate\".*" \
442 "deprecate with no arguments"
445 proc bp_deleted_in_command_test {} {
448 if [target_info exists noargs] {
449 verbose "Skipping bp_deleted_in_command_test because of noargs."
453 gdb_test "set args 1" "" "set args in bp_deleted_in_command_test"
456 # Create a breakpoint, and associate a command-list to it, with
457 # one command that deletes this breakpoint.
458 gdb_test "break factorial" \
459 "Breakpoint \[0-9\]+ at .*: file .*/run.c, line \[0-9\]+\." \
460 "breakpoint in bp_deleted_in_command_test"
462 send_gdb "commands\n"
464 -re "Type commands for when breakpoint .* is hit, one per line.*>" {
465 pass "begin commands in bp_deleted_in_command_test"
467 -re "$gdb_prompt $" {fail "begin commands in bp_deleted_in_command_test"}
468 timeout {fail "(timeout) begin commands bp_deleted_in_command_test"}
472 -re ">" {pass "add silent command"}
473 -re "$gdb_prompt $" {fail "add silent command"}
474 timeout {fail "(timeout) add silent command"}
476 send_gdb "clear factorial\n"
478 -re ">" {pass "add clear command"}
479 -re "$gdb_prompt $" {fail "add clear command"}
480 timeout {fail "(timeout) add clear command"} }
481 send_gdb "printf \"factorial command-list executed\\n\"\n"
483 -re ">" {pass "add printf command"}
484 -re "$gdb_prompt $" {fail "add printf command"}
485 timeout {fail "(timeout) add printf command"}
489 -re ">" {pass "add cont command"}
490 -re "$gdb_prompt $" {fail "add cont command"}
491 timeout {fail "(timeout) add cont command"} }
494 -re "$gdb_prompt $" {pass "end commands"}
495 timeout {fail "(timeout) end commands"}
500 -re ".*factorial command-list executed.*1.*$gdb_prompt $" {
501 pass "run factorial until breakpoint"
503 -re ".*$gdb_prompt $" {
504 fail "run factorial until breakpoint"
506 default { fail "(timeout) run factorial until breakpoint" }
507 timeout { fail "(timeout) run factorial until breakpoint" }
511 proc temporary_breakpoint_commands {} {
514 if [target_info exists noargs] {
515 verbose "Skipping temporary_breakpoint_commands because of noargs."
519 gdb_test "set args 1" "" "set args in temporary_breakpoint_commands"
522 # Create a temporary breakpoint, and associate a commands list to it.
523 # This test will verify that this commands list is executed when the
525 gdb_test "tbreak factorial" \
526 "Temporary breakpoint \[0-9\]+ at .*: file .*/run.c, line \[0-9\]+\." \
527 "breakpoint in temporary_breakpoint_commands"
529 send_gdb "commands\n"
531 -re "Type commands for when breakpoint .* is hit, one per line.*>" {
532 pass "begin commands in bp_deleted_in_command_test"
534 -re "$gdb_prompt $" {fail "begin commands in bp_deleted_in_command_test"}
535 timeout {fail "(timeout) begin commands bp_deleted_in_command_test"}
539 -re ">" {pass "add silent tbreak command"}
540 -re "$gdb_prompt $" {fail "add silent tbreak command"}
541 timeout {fail "(timeout) add silent tbreak command"}
543 send_gdb "printf \"factorial tbreak commands executed\\n\"\n"
545 -re ">" {pass "add printf tbreak command"}
546 -re "$gdb_prompt $" {fail "add printf tbreak command"}
547 timeout {fail "(timeout) add printf tbreak command"}
551 -re ">" {pass "add cont tbreak command"}
552 -re "$gdb_prompt $" {fail "add cont tbreak command"}
553 timeout {fail "(timeout) add cont tbreak command"} }
556 -re "$gdb_prompt $" {pass "end tbreak commands"}
557 timeout {fail "(timeout) end tbreak commands"}
562 -re ".*factorial tbreak commands executed.*1.*$gdb_prompt $" {
563 pass "run factorial until temporary breakpoint"
565 timeout { fail "(timeout) run factorial until temporary breakpoint" }
569 # Test that GDB can handle $arg0 outside of user functions without
571 proc stray_arg0_test { } {
572 gdb_test "print \$arg0" \
573 "\\\$\[0-9\]* = void" \
576 gdb_test "if 1 == 1\nprint \$arg0\nend" \
577 "\\\$\[0-9\]* = void" \
580 gdb_test "print \$arg0 = 1" \
584 gdb_test "print \$arg0" \
589 # Test that GDB can handle arguments when sourcing files recursively.
590 # If the arguments are overwritten with ####### then the test has failed.
591 proc recursive_source_test {} {
592 set fd [open "file1" w]
598 set fd [open "file2" w]
601 echo 1: <<<$arg0>>>\n
603 echo 2: <<<$arg0>>>\n
607 set fd [open "file3" w]
610 #################################################################"
613 gdb_test "source file1" \
614 "1: <<<qwerty>>>\[\r\n]+in file3\[\r\n]+2: <<<qwerty>>>" \
615 "recursive source test"
622 proc gdb_test_no_prompt { command result msg } {
625 set msg "$command - $msg"
626 set result "^[string_to_regexp $command]\r\n$result$"
627 gdb_test_multiple $command $msg {
640 proc if_commands_test {} {
643 gdb_test "set \$tem = 1" "" "set \$tem in if_commands_test"
645 set test "if_commands_test 1"
646 gdb_test_no_prompt "if \$tem == 2" { >} $test
647 gdb_test_no_prompt "break main" { >} $test
648 gdb_test_no_prompt "else" { >} $test
649 gdb_test_no_prompt "break factorial" { >} $test
650 gdb_test_no_prompt "commands" { >} $test
651 gdb_test_no_prompt "silent" { >} $test
652 gdb_test_no_prompt "set \$tem = 3" { >} $test
653 gdb_test_no_prompt "continue" { >} $test
654 gdb_test_multiple "end" "first end - $test" {
656 pass "first end - $test"
659 fail "first end - $test"
662 gdb_test_multiple "end" "second end - $test" {
663 -re "Breakpoint \[0-9\]+ at .*: file .*/run.c, line \[0-9\]+\.\r\n$gdb_prompt $" {
664 pass "second end - $test"
666 -re "Undefined command: \"silent\".*$gdb_prompt $" {
667 fail "second end - $test"
671 set test "if_commands_test 2"
672 gdb_test_no_prompt "if \$tem == 1" { >} $test
673 gdb_test_no_prompt "break main" { >} $test
674 gdb_test_no_prompt "else" { >} $test
675 gdb_test_no_prompt "break factorial" { >} $test
676 gdb_test_no_prompt "commands" { >} $test
677 gdb_test_no_prompt "silent" { >} $test
678 gdb_test_no_prompt "set \$tem = 3" { >} $test
679 gdb_test_no_prompt "continue" { >} $test
680 gdb_test_multiple "end" "first end - $test" {
682 pass "first end - $test"
685 fail "first end - $test"
688 gdb_test_multiple "end" "second end - $test" {
689 -re "Breakpoint \[0-9\]+ at .*: file .*/run.c, line \[0-9\]+\.\r\n$gdb_prompt $" {
690 pass "second end - $test"
695 gdbvar_simple_if_test
696 gdbvar_simple_while_test
697 gdbvar_complex_if_while_test
698 progvar_simple_if_test
699 progvar_simple_while_test
700 progvar_complex_if_while_test
701 if_while_breakpoint_command_test
702 infrun_breakpoint_command_test
703 breakpoint_command_test
704 user_defined_command_test
705 watchpoint_command_test
706 test_command_prompt_position
707 deprecated_command_test
708 bp_deleted_in_command_test
709 temporary_breakpoint_commands
711 recursive_source_test