File: delete.right

package info (click to toggle)
zshdb 0.04%2Bgit20100102-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,924 kB
  • ctags: 241
  • sloc: sh: 5,097; lisp: 885; makefile: 306
file content (72 lines) | stat: -rw-r--r-- 1,705 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
(stepping.sh:3):
for ((i=0; i<3; i++)) do print 1st loop $i done
+# Make sure autostep is off for next text
+set force on
+############################### 
+# Invalid delete commands
+delete 0
** No breakpoint number 0.
+break 4
Breakpoint 1 set in file stepping.sh, line 4.
+delete 4
** No breakpoint number 4.
+info break
Num Type       Disp Enb What
1   breakpoint keep y   stepping.sh:4
+############################### 
+# Should work
+delete 1
Removed 1 breakpoint(s).
+info break
** No breakpoints have been set.
+############################### 
+# Should fail - already deleted
+delete 1
** No breakpoint number 1.
+break 5
Breakpoint 2 set in file stepping.sh, line 5.
+continue 
1st loop 0
1st loop 1
1st loop 2
2nd loop 0
2nd loop 1
2nd loop 2
Breakpoint 2 hit.
(stepping.sh:5):
for ((i=0; i<3; i++)) do print 3rd loop $i done
+# Should stop at line 5 not 4
+where 1
->0 in file `stepping.sh' at line 5
+info break
Num Type       Disp Enb What
2   breakpoint keep y   stepping.sh:5
    breakpoint already hit 1 time
+break 6
Breakpoint 3 set in file stepping.sh, line 6.
+############################### 
+# try deleting multiple breakpoints
+delete 2 3
Removed 2 breakpoint(s).
+info break
** No breakpoints have been set.
+############################### 
+# Should be able to set several brkpts on same line.
+break 7
Breakpoint 4 set in file stepping.sh, line 7.
+break 7
Breakpoint 5 set in file stepping.sh, line 7.
+continue 
3rd loop 0
3rd loop 1
3rd loop 2
4th loop 0
4th loop 1
4th loop 2
Breakpoint 4 hit.
(stepping.sh:7):
for ((i=0; i<3; i++)) do print 5th loop $i done
+# Should be at breakpoint but not one that's been deleted
+where 1
->0 in file `stepping.sh' at line 7
+quit