1 # Copyright (C) 1992, 1994, 1995 Free Software Foundation, Inc.
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
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
17 # Please email any bugs, comments, and/or additions to this file to:
18 # bug-gdb@prep.ai.mit.edu
20 # This file was written by Fred Fish. (fnf@cygnus.com)
30 set srcfile $binfile.c
32 if ![file exists $objdir/$subdir/$binfile] then {
33 perror "$objdir/$subdir/$binfile does not exist."
38 # Local utility proc just to set and verify listsize
39 # Return 1 if success, 0 if fail.
42 proc set_listsize { arg } {
45 send "set listsize $arg\n"
47 -re "set listsize $arg\[\r\n\]+$prompt $" {}
48 -re ".*$prompt $" { fail "setting listsize to $arg" ; return 0 }
49 timeout { fail "set listsize to $arg (timeout)" ; return 0 }
52 send "show listsize\n"
54 -re "Number of source lines .* is $arg.\r\n.*$prompt $" {}
55 -re ".*$prompt $" { fail "listsize not set to $arg" ; return 0 }
56 timeout { fail "show listsize (timeout)" ; return 0 }
62 # Test display of listsize lines around a given line number.
65 proc test_listsize {} {
70 send "show listsize\n"
72 -re "Number of source lines gdb will list by default is 10.*$prompt $" {
73 pass "show default list size"
76 fail "show default listsize (10)"
79 fail "show listsize (timeout)"
83 # Show the default lines
84 # The second case is for optimized code, it is still correct.
86 # This doesn't work for COFF targets.
87 setup_xfail "a29k-*-udi"
90 -re "1\[ \t\]+#include \"list0.h\".*10\[ \t\]+x = 0;\r\n$prompt $" {
91 pass "list default lines around main"
93 -re "2.*11\[ \t\]+foo .x\[+)\]+;\r\n$prompt $" {
94 pass "list default lines around main"
97 fail "list default lines around main"
100 fail "list default lines around main (timeout)"
104 # Ensure we can limit printouts to one line
106 if [ set_listsize 1 ] then {
110 -re "1\[ \t\]+#include \"list0.h\"\r\n$prompt $" {
111 pass "list line 1 with listsize 1"
113 -re "list 1\r\n$prompt $" {
114 fail "list line 1 with listsize 1"
117 fail "list line 1 with listsize 1"
120 fail "list line 1 with listsize 1 (timeout)"
127 -re "2\[ \t\]+\r\n$prompt $" {
128 pass "list line 2 with listsize 1"
130 -re "list 2\r\n$prompt $" {
131 fail "list line 2 with listsize 1"
134 fail "list line 2 with listsize 1"
137 fail "list line 2 with listsize 1 (timeout)"
144 if [ set_listsize 2 ] then {
147 -re "1\[ \t\]+#include \"list0.h\"\r\n$prompt $" {
148 pass "list line 1 with listsize 2"
151 fail "list line 1 with listsize 2"
154 fail "list line 1 with listsize 2 (timeout)"
160 -re "1\[ \t\]+#include \"list0.h\"\r\n2\[ \t\]+\r\n$prompt $" {
161 pass "list line 2 with listsize 2"
164 fail "list line 2 with listsize 2"
167 fail "list line 2 with listsize 2 (timeout)"
173 -re "2\[ \t\]+\r\n3\[ \t\]+main \[)(\]+\r\n$prompt $" {
174 pass "list line 3 with listsize 2"
177 fail "list line 3 with listsize 2"
180 fail "list line 3 with listsize 2 (timeout)"
185 # Try small listsize > 1 that is an odd number
187 if [ set_listsize 3 ] then {
191 -re "1\[ \t\]+#include \"list0.h\"2\[ \t\]+\r\n$prompt $" {
192 pass "list line 1 with listsize 3"
194 -re "1\[ \t\]+#include \"list0.h\"\r\n$prompt $" {
195 fail "list line 1 with listsize 3"
198 fail "list line 1 with listsize 3"
201 fail "list line 1 with listsize 3 (timeout)"
208 -re "1\[ \t\]+#include \"list0.h\".*3\[ \t\]+main \[)(\]+\r\n$prompt $" {
209 pass "list line 2 with listsize 3"
211 -re "1\[ \t\]+#include \"list0.h\"\r\n2\[ \t\]+\r\n$prompt $" {
212 fail "list line 2 with listsize 3"
215 fail "list line 2 with listsize 3"
218 fail "list line 2 with listsize 3 (timeout)"
225 -re "2\[ \t\]+\r\n3\[ \t\]+main \[(\]+\[)\]+\r\n4\[ \t\]+\{\r\n$prompt $" {
226 pass "list line 3 with listsize 3"
228 -re "2\[ \t\]+\r\n3\[ \t\]+main \[)(\]+\r\n$prompt $" {
229 fail "list line 3 with listsize 3"
232 fail "list line 3 with listsize 3"
235 fail "list line 3 with listsize 3 (timeout)"
240 # Try small listsize > 2 that is an even number.
242 if [ set_listsize 4 ] then {
245 -re "1\[ \t\]+#include \"list0.h\"\r\n2\[ \t\]+\r\n$prompt $" {
246 pass "list line 1 with listsize 4"
249 fail "list line 1 with listsize 4"
252 fail "list line 1 with listsize 4 (timeout)"
258 -re "1\[ \t\]+#include \"list0.h\".*3\[ \t\]+main \[)(\]+\r\n$prompt $" {
259 pass "list line 2 with listsize 4"
262 fail "list line 2 with listsize 4"
265 fail "list line 2 with listsize 4 (timeout)"
271 -re "1\[ \t\]+#include \"list0.h\".*4\[ \t\]+\{\r\n$prompt $" {
272 pass "list line 3 with listsize 4"
275 fail "list line 3 with listsize 4"
278 fail "list line 3 with listsize 4 (timeout)"
284 -re "2\[ \t\]+\r\n.*5\[ \t\]+int x;\r\n$prompt $" {
285 pass "list line 4 with listsize 4"
288 fail "list line 4 with listsize 4"
291 fail "list line 4 with listsize 4 (timeout)"
296 # Try a size larger than the entire file.
298 if [ set_listsize 100 ] then {
301 -re "1\[ \t\]+#include \"list0.h\".*\r\n42\[ \t\]+\}\r\n$prompt $" {
302 pass "list line 1 with listsize 100"
305 fail "list line 1 with listsize 100"
311 -re "1\[ \t\]+#include \"list0.h\".*\r\n42\[ \t\]+\}\r\n$prompt $" {
312 pass "list line 10 with listsize 100"
315 fail "list line 10 with listsize 100"
320 # Try listsize of 0 which suppresses printing.
322 send "set listsize 0\n"
324 -re "set listsize 0\[\r\n\]+$prompt $" {
326 send "show listsize\n"
328 -re "Number of source lines .* is 0.\r\n.*$prompt $" {
329 pass "listsize of 0 displays as 0"
331 -re "Number of source lines .* is unlimited.\r\n.*$prompt $" {
332 fail "listsize of 0 displays as unlimited"
335 fail "listsize not set to unlimited (0)"
338 fail "show listsize (timeout)"
343 -re "list 1\[\r\n\]+$prompt $" {
344 pass "listsize of 0 suppresses output"
347 fail "listsize of 0 should suppress output"
350 fail "listsize of 0 suppresses output (timeout)"
355 fail "setting listsize to 0"
358 fail "set listsize to 0 (timeout)"
362 # Try listsize of -1 which is special, and means unlimited.
364 send "set listsize -1\n"
366 -re "set listsize -1\[\r\n\]+$prompt $" {
367 send "show listsize\n"
369 -re "Number of source lines .* is unlimited.\r\n.*$prompt $" {
370 pass "listsize of -1 displays as unlimited"
373 fail "listsize not set to unlimited (-1)"
376 fail "show listsize (timeout)"
382 -re "1\[ \t\]+#include .*\r\n39\[ \t\]+\}\r\n$prompt $" {
383 pass "list line 1 with unlimited listsize"
385 -re "list 1\[\r\n\]+$prompt $" {
386 fail "listsize of -1 (unlimited) suppresses output"
389 fail "list line 1 with unlimited listsize"
394 fail "setting listsize to -1"
397 fail "set listsize to -1 (timeout)"
403 # Test "list filename:number" for C include file
406 proc test_list_include_file {} {
409 # FIXME This fails on DWARF.
410 setup_xfail "*-*-sysv4*"
411 # FIXME Fails for COFF as well, I think.
412 setup_xfail "a29k-*-udi"
413 send "list list0.h:1\n"
415 -re "1\[ \t\]+/\[*\]+ An include file .*5\[ \t\]+foo \[(\]+x\[)\]+\r\n$prompt $" {
416 pass "list line 1 in include file"
418 -re "No source file named list0.h.\r\n$prompt $" {
419 fail "list line 1 in include file"
422 fail "list line 1 in include file"
425 fail "list line 1 in include file (timeout)"
429 # FIXME fails on DWARF
430 setup_xfail "*-*-sysv4*"
431 # FIXME Fails for COFF as well, I think.
432 setup_xfail "a29k-*-udi"
433 send "list list0.h:100\n"
435 -re "Line number 95 out of range; .*list0.h has 36 lines.\r\n$prompt $" {
436 pass "list message for lines past EOF"
438 -re "No source file named list0.h.\r\n$prompt $" {
439 fail "list message for lines past EOF"
442 fail "list message for lines past EOF"
445 fail "list message for lines past EOF (timeout)"
451 # Test "list filename:number" for C source file
454 proc test_list_filename_and_number {} {
459 send "list list0.c:1\n"
461 -re "1\[ \t\]+#include \"list0.h\".*5\[ \t\]+int x;\r\n$prompt $" {
464 -re ".*$prompt $" { fail "list list0.c:1" ; return }
465 timeout { fail "list list0.c:1" ; return }
467 send "list list0.c:10\n"
469 -re "5\[ \t\]+int x;.*14\[ \t\]+foo .x\[+)\]+;\r\n$prompt $" {
472 -re ".*$prompt $" { fail "list list.c:10" ; return }
473 timeout { fail "list list.c:10" ; return }
475 send "list list1.c:1\n"
477 -re "1\[ \t\]+void.*5\[ \t\]+printf \[(\]+.*\[)\]+;\r\n$prompt $" {
480 -re ".*$prompt $" { fail "list list1.c:1" ; return }
481 timeout { fail "list list1.c:1" ; return }
483 send "list list1.c:12\n"
485 -re "7\[ \t\]+long_line \[(\]+.*\[)\]+;.*14\[ \t\]+\}\r\n.*$prompt $" {
488 -re ".*$prompt $" { fail "list list1.c:12" ; return }
489 timeout { fail "list list1.c:12" ; return }
491 pass "list filename:number ($testcnt tests)"
495 # Test "list function" for C source file
498 proc test_list_function {} {
501 # gcc appears to generate incorrect debugging information for code
502 # in include files, which breaks this test.
503 # SunPRO cc is the second case below, it's also correct.
504 setup_xfail "rs6000-*-*" 1804
505 setup_xfail "a29k-*-udi"
508 -re "1\[ \t\]+#include .*8\[ \t\]+breakpoint\[(\]\[)\]+;\r\n$prompt $" {
509 pass "list function in source file 1"
511 -re "5\[ \t\]+int x;.*14\[ \t\]+foo \[(\]+.*\[)\]+;\r\n$prompt $" {
512 pass "list function in source file 1"
514 -re ".*$prompt $" { fail "list main" ; return }
515 timeout { fail "list main" ; return }
518 # Ultrix gdb takes the second case below; it's also correct.
519 # SunPRO cc is the third case.
522 -re "1\[ \t\]+void.*8\[ \t\]+\}\r\n$prompt $" {
523 pass "list function in source file 2"
525 -re "1\[ \t\]+void.*7\[ \t\]*long_line ..;\r\n$prompt $" {
526 pass "list function in source file 2"
528 -re "1\[ \t\]+void.*7\[ \t\]*long_line ..;.*9\[ \t\]*\r\n$prompt $" {
529 pass "list function in source file 2"
531 -re ".*$prompt $" { fail "list bar" ; return }
532 timeout { fail "list bar" ; return }
535 # Test "list function" for C include file
536 # Ultrix gdb is the second case, still correct.
537 # SunPRO cc is the third case.
538 # FIXME This fails on DWARF
539 setup_xfail "*-*-sysv4*"
540 setup_xfail "powerpc-*-*"
543 -re "2\[ \t\]+including file.*11\[ \t\]+bar \[(\]+.*\[)\]+;\r\n$prompt $" {
544 pass "list function in include file"
546 -re "1\[ \t\]+/. An include file.*10\[ \t\]+bar \[(\]+.*\[)\]+;\r\n$prompt $" {
547 pass "list function in include file"
549 -re "3\[ \t\]+.*12\[ \t\]+bar \[(\]+.*\[)\]+;\r\n$prompt $" {
550 pass "list function in include file"
552 -re ".*main \[)(\]+.*$prompt $" {
553 fail "list function in include file"
555 -re ".*$prompt $" { fail "list foo (in include file)" ; return }
556 timeout { fail "list foo (timeout)" ; return }
560 proc test_list_forward {} {
565 send "list list0.c:10\n"
567 -re "5\[ \t\]+int x;.*14\[ \t\]+foo \[(\]+.*\[)\]+;\r\n$prompt $" { incr testcnt }
568 -re ".*$prompt $" { fail "list list0.c:10" ; return }
569 timeout { fail "list list0.c:10" ; return }
574 -re "15\[ \t\]+foo \[(\]+.*\[)\]+;.*24\[ \t\]+foo \[(\]+.*\[)\]+;\r\n$prompt $" { incr testcnt }
575 -re ".*$prompt $" { fail "list 15-24" ; return }
576 timeout { fail "list 15-24 (timeout)" ; return }
581 -re "25\[ \t\]+foo \[(\]+.*\[)\]+;.*34\[ \t\]+foo \[(\]+.*\[)\]+;\r\n$prompt $" { incr testcnt }
582 -re ".*$prompt $" { fail "list 25-34" ; return }
583 timeout { fail "list 25-34 (timeout)" ; return }
588 -re "35\[ \t\]+foo \[(\]+.*\[)\]+;.*42\[ \t\]+\}\r\n$prompt $" { incr testcnt }
589 -re ".*$prompt $" { fail "list 35-42" ; return }
590 timeout { fail "list 35-42 (timeout)" ; return }
593 pass "successive list commands to page forward ($testcnt tests)"
596 proc test_list_backwards {} {
601 send "list list0.c:33\n"
603 -re "28\[ \t\]+foo \[(\]+.*\[)\]+;.*37\[ \t\]+\r\n$prompt $" { incr testcnt }
604 -re ".*$prompt $" { fail "list list0.c:33" ; return }
605 timeout { fail "list list0.c:33" ; return }
610 -re "18\[ \t\]+foo \[(\]+.*\[)\]+;.*27\[ \t\]+foo \[(\]+.*\[)\]+;\r\n$prompt $" { incr testcnt }
611 -re ".*$prompt $" { fail "list 18-27" ; return }
612 timeout { fail "list 18-27 (timeout)" ; return }
617 -re "8\[ \t\]+breakpoint\[(\]\[)\];.*17\[ \t\]+foo \[(\]+.*\[)\]+;\r\n$prompt $" { incr testcnt }
618 -re ".*$prompt $" { fail "list 8-17" ; return }
619 timeout { fail "list 8-17 (timeout)" ; return }
624 -re "1\[ \t\]+#include .*7\[ \t\]+set_debug_traps\[(\]\[)\]+;\r\n$prompt $" { incr testcnt }
625 -re ".*$prompt $" { fail "list 1-7" ; return }
626 timeout { fail "list 1-7 (timeout)" ; return }
629 pass "$testcnt successive \"list -\" commands to page backwards"
633 # Test "list first,last"
636 proc test_list_range {} {
639 send "list list0.c:2,list0.c:5\n"
641 -re "2\[ \t\]+\r\n3\[ \t\]+main \[)(\]+.*5\[ \t\]+int x;\r\n$prompt $" {
642 pass "list range; filename:line1,filename:line2"
644 -re ".*$prompt $" { fail "list list0.c:2,list0.c:5" }
645 timeout { fail "list list0.c:2,list0.c:5" }
650 -re "2\[ \t\]+\r\n3\[ \t\]+main \[)(\]+.*5\[ \t\]+int x;\r\n$prompt $" {
651 pass "list range; line1,line2"
653 -re ".*$prompt $" { fail "list 2,5" }
654 timeout { fail "list 2,5" }
659 #-re "Line number 0 out of range; .*list0.c has 39 lines.\r\n$prompt $" {
660 #pass "list range; lower bound negative"
662 #-re ".*$prompt $" { fail "list -1,6" }
663 #timeout { fail "list -1,6" }
666 #send "list -100,-40\n"
668 #-re "Line number -60 out of range; .*list0.c has 39 lines.\r\n$prompt $" {
669 #pass "list range; both bounds negative"
671 #-re ".*$prompt $" { fail "-100,-40" }
672 #timeout { fail "-100,-40" }
677 -re "30\[ \t\]+foo \[(\]+.*\[)\]+;.*42\[ \t\]+\}\r\n$prompt $" {
678 pass "list range; upper bound past EOF"
680 -re ".*$prompt $" { fail "list 30,43" }
681 timeout { fail "list 30,43" }
686 -re "Line number 43 out of range; .*list0.c has 42 lines.\r\n$prompt $" {
687 pass "list range; both bounds past EOF"
689 -re ".*$prompt $" { fail "43,100" }
690 timeout { fail "43,100" }
693 send "list list0.c:2,list1.c:17\n"
695 -re "Specified start and end are in different files.\r\n$prompt $" {
696 pass "list range, must be same files"
698 -re ".*$prompt $" { fail "list0.c:2,list1.c:17" }
699 timeout { fail "list0.c:2,list1.c:17" }
704 # Test "list filename:function"
707 proc test_list_filename_and_function {} {
712 # gcc appears to generate incorrect debugging information for code
713 # in include files, which breaks this test.
714 # SunPRO cc is the second case below, it's also correct.
715 setup_xfail "rs6000-*-*" 1804
716 setup_xfail "a29k-*-udi"
717 send "list list0.c:main\n"
719 -re "1\[ \t\]+#include .*8\[ \t\]+breakpoint\[(\]\[)\]+;\r\n$prompt $" {
722 -re "5\[ \t\]+int x;.*14\[ \t\]+foo \[(\]+.*\[)\]+;\r\n$prompt $" {
723 pass "list function in source file 1"
725 -re ".*$prompt $" { fail "list list0.c:main" }
726 timeout { fail "list list0.c:main (timeout)" }
729 # The i960 and a29k-amd-udi are the second case
731 # Not sure what the point of having this function be unused is.
732 # AIX is legitimately removing it.
733 setup_xfail "rs6000-*-aix*"
734 send "list list0.c:unused\n"
736 -re "36\[ \t\]+\}.*42\[ \t\]+\}\r\n$prompt $" {
739 -re "37.*42\[ \t\]+\}\r\n$prompt $" {
742 -re ".*$prompt $" { fail "list list0.c:unused" }
743 timeout { fail "list list0.c:unused (timeout)" }
745 clear_xfail "rs6000-*-aix*"
747 # gcc appears to generate incorrect debugging information for code
748 # in include files, which breaks this test.
749 # Ultrix gdb is the second case, one line different but still correct.
750 # SunPRO cc is the third case.
751 # FIXME This fails on DWARF
752 setup_xfail "rs6000-*-*" 1804
753 setup_xfail "powerpc-*-*" 1804
754 setup_xfail "*-*-sysv4*"
755 # FIXME Fails for COFF as well, I think.
756 setup_xfail "a29k-*-udi"
757 send "list list0.h:foo\n"
759 -re "2\[ \t\]+including file. This.*11\[ \t\]+bar \[(\]+.*\[)\]+;\r\n$prompt $" {
762 -re "1\[ \t\]+/. An include file.*10\[ \t\]+bar \[(\]+.*\[)\]+;\r\n$prompt $" {
765 -re "3\[ \t\]+.*12\[ \t\]+bar \[(\]+.*\[)\]+;\r\n$prompt $" {
768 -re "No source file named list0.h.\r\n$prompt $" {
769 fail "list list0.h:foo"
771 -re ".*$prompt $" { fail "list list0.h:foo" }
772 timeout { fail "list list0.h:foo (timeout)" }
775 # Ultrix gdb is the second case.
776 # a29k-amd-udi is the third case.
777 send "list list1.c:bar\n"
779 -re "1\[ \t\]+void.*8\[ \t\]+\}\r\n$prompt $" {
782 -re "1\[ \t\]+void.*7\[ \t\]*long_line ..;\r\n$prompt $" {
785 -re "1\[ \t\]+void.*9\[ \t\]*\r\n$prompt $" {
788 -re ".*$prompt $" { fail "list list1.c:bar" }
789 timeout { fail "list list1.c:bar (timeout)" }
792 # The i960 and a29k-amd-udi are the second case
794 # Not sure what the point of having this function be unused is.
795 # AIX is legitimately removing it.
796 setup_xfail "rs6000-*-aix*"
797 send "list list1.c:unused\n"
799 -re "7\[ \t\]+long_line \[(\]\[)\];.*14\[ \t\]+\}\r\n.*$prompt $" {
802 -re "9.*14\[ \t\]+\}\r\n.*$prompt $" {
805 -re ".*$prompt $" { fail "list list1.c:unused" }
806 timeout { fail "list list1.c:unused (timeout)" }
808 clear_xfail "rs6000-*-aix*"
810 pass "list filename:function ($testcnt tests)"
812 # Test some invalid specs
813 # The following test takes the FIXME result on most systems using
814 # DWARF. It fails to notice that main() is not in the file requested.
818 # Does this actually work ANYWHERE? I believe not, as this is an `aspect' of
819 # lookup_symbol(), where, when it is given a specific symtab which does not
820 # contain the requested symbol, it will subsequently search all of the symtabs
821 # for the requested symbol.
823 send "list list0.c:foo\n"
825 -re "Function \"foo\" not defined in .*list0.c\r\n$prompt $" {
826 pass "list filename:function; wrong filename rejected"
828 -re "2\[ \t\]+including file.*11\[ \t\]+bar \[(\]+.*\[)\]+;\r\n$prompt $" {
829 fail "list filename:function; wrong filename not rejected"
831 -re ".*main \[)(\]+.*$prompt $" {
832 fail "list filename:function; wrong filename not rejected"
835 fail "list filename:function; wrong filename not rejected"
838 fail "list filename:function; wrong filename (timeout)"
842 send "list foobar.c:main\n"
844 -re "No source file named foobar.c.\r\n$prompt $" {
845 pass "list filename:function; nonexistant file"
848 fail "list filename:function; nonexistant file"
851 fail "list filename:function; nonexistant file (timeout)"
855 # The following test takes the FIXME result on most systems using
856 # DWARF. It doesn't know how to find functions in include files.
858 setup_xfail "*-*-sysv4*"
859 send "list list0.h:foobar\n"
861 -re "Function \"foobar\" not defined.\r\n$prompt $" {
862 pass "list filename:function; nonexistant function"
864 -re "No source file named list0.h.\r\n$prompt $" {
865 fail "list filename:function; nonexistant function"
868 fail "list filename:function; nonexistant function"
871 fail "list filename:function; nonexistant function (timeout)"
877 proc test_forward_search {} {
879 gdb_test "set listsize 4" ""
880 # On SunOS4, this gives us lines 19-22. On AIX, it gives us
881 # lines 20-23. This depends on whether the line number of a function
882 # is considered to be the openbrace or the first statement--either one
884 gdb_test "list long_line" "20\[ \t\]+long_line .*"
886 gdb_test "search 4321" " not found"
888 gdb_test "search 6789" "24\[ \t\]+oof .6789.;"
890 # We could look at the result of this, but dejagnu seems to
891 # fail, perhaps because expect's buffers are too small.
892 # In any case, we just want GDB to not crash if the line
893 # being searched is extremely long.
896 gdb_test "search 1234" ""
899 # Start with a fresh gdb.
903 gdb_reinitialize_dir $srcdir/$subdir
904 gdb_load $objdir/$subdir/$binfile
908 # if use stubs step out of the breakpoint() function.
910 -re "main.* at .*$prompt $" {}
911 timeout { fail "single step at breakpoint() (timeout)" ; return 0 }
916 expect -re "$prompt $"
919 if [ set_listsize 10 ] then {
920 test_list_include_file
921 test_list_filename_and_number
926 test_list_filename_and_function