implement ccondition (cbreak "addon")
cbreak
is totally cool and works fine. When testing the vsix we can see that it reasonably uses the GDB/MI command break-condition
to post-set the conditions for a variable (which cannot work as GDB does not know of the COBOL symbols).
To enable switching that to something COBOL-aware to remove the need to remove and then add the breakpoint again as outlined in cbl-gdb-vsextension#15 and to also be able to use that on the command line, too the matching GDB command condition
needs a COBOL-aware version.
So this issue is about implementing ccondition bnum cobol-expression, which should mostly be
- check that the breakpoint exists (
condition
says "No breakpoint number 55." if that isn't the case) - resolve the expression as done for
cbreak
, then internally set that using the MI commandbreakpoint-condition
.
@sjaak Please feel free to reassign that issue to me if you don't want to do that.