File: condition.right

package info (click to toggle)
zshdb 0.05%2Bgit20101031-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 2,104 kB
  • sloc: sh: 5,563; makefile: 337
file content (40 lines) | stat: -rw-r--r-- 1,212 bytes parent folder | download | duplicates (3)
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
(dbg-test1.sh:4):
fn1 () { echo "fn1 here" x=5 fn3 }
+# 
+# Test of condition handling (on breakpoints)
+############################################################### 
+break 23 if x==0
Breakpoint 1 set in file dbg-test1.sh, line 23.
+break 24 y > 25
Breakpoint 2 set in file dbg-test1.sh, line 24.
+info break
Num Type       Disp Enb What
1   breakpoint keep y   dbg-test1.sh:23
	stop only if x==0
2   breakpoint keep y   dbg-test1.sh:24
	stop only if y
+condition 23
** condition: Breakpoint entry 23 is not set. Condition not changed.
+condition 
** condition: Argument required (breakpoint number).
+info break
Num Type       Disp Enb What
1   breakpoint keep y   dbg-test1.sh:23
	stop only if x==0
2   breakpoint keep y   dbg-test1.sh:24
	stop only if y
+condition x==1
** condition: Bad breakpoint number: x==1
+condition 4 x==1
** condition: Breakpoint entry 4 is not set. Condition not changed.
+condition bad
** condition: Bad breakpoint number: bad
+condition 30 y==1
** condition: Breakpoint entry 30 is not set. Condition not changed.
+info break
Num Type       Disp Enb What
1   breakpoint keep y   dbg-test1.sh:23
	stop only if x==0
2   breakpoint keep y   dbg-test1.sh:24
	stop only if y
+quit