Adding support for expression cond break exp would be great.
It will allow to let program break at the breaklocation only if expevaluates true :
(gdb) break gdbprog.cc:35
Breakpoint 4 at 0x23c0: file gdbprog.cc, line
35.
(gdb) cond 4 (i == 6)
(gdb) run
Starting program: gdbprog
operation result is 45
0
1
2
3
4
5
Breakpoint 4, PrintArray () at gdbprog.cc:36
36 if (iArray[i] == 6)
(gdb) step
37 cout << "This is an error\n";
(gdb) next
This is an error
40 }
Adding support for expression
cond break exp
would be great. It will allow to let program break at thebreak
location only ifexp
evaluates true :