1 Conditional breakpoints
2=========================
3conditional breakpoints are implemented in the following way:
4
5- when a breakpoint is hit, the condition is run as a normal command
6- if the command returns a value different from zero, execution continue,
7- otherwise, execution is stopped at the breakpoint
8
9 Examples of conditional breakpoints
10======================================
11
121. ignore breakpoint at address `0x4000ce` for five times:
13
14       f times=5
15       (dec_times,f times=`?vi times-1`,?= times)
16       db 0x4000ce
17       dbC 0x4000ce .(dec_times)
18       dc
19
202. execute until rax==0x31c0 at address `0x4000ce`
21
22       e cmd.hitinfo=0
23       (break_rax,f reg_rax=`dr rax`,f test=`?vi reg_rax-0x31c0`,?= test)
24       db 0x4000ce
25       dbC 0x4000ce .(break_rax)
26       dc
27
283. perform a register tracing dump at address `0x4000ce`
29
30       e cmd.hitinfo=0
31       (trace_rax,dr rax,?= 1)
32       db 0x4000ce
33       dbC 0x4000ce .(trace_rax)
34       dc > trace.txt
35