additional cbreak command
as discussed before: -fgen-c-labels
generates C labels that may be used to set a breakpoint.
So far the names of those labels must be known to the programmer do set those.
Examples:
break PROG1_:SECTION_MY__EXIT # from: section my-exit in currently not active PROG1
break SECTION_MY__EXIT # from: section my-exit in currently active PROG1 (shortcut)
break ENTRY_PROG1 # from: (in this case implied main) entry 'PROG1'
The issue here: the programmer must specify the correct name, the translation may be done by the constant "ENTRY_" or "SECTION_" concatenated with cob_encode_program_id(user_given_name, buffer, buff_size, 1)
.
It would be nice to have a wrapper function in the GDB extension to be able to:
cbreak section PROG1:my-exit
--> I assume an abbreviation like cb s PROG1:my-exit
may work "out of the box"
cbreak section my-exit
cbreak PROG1
--> should be resolved to break PROG1_:ENTRY_PROG1