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
|