Linked programs can be debugged with the dialog debugger AID, provided the required debugging information (LSD) has been generated by the compiler by specifying the -g
option (see "Debug option").
Note
When the -g
option is used, the objects created may be much larger under some circumstances due to the LSD information!
The AID debugger is activated with the POSIX debug
programname command. When this command is input, the BS2000 environment becomes the current environment. This is indicated by the %xxxxyyyy/ prompt, where xxxxyyyy stands for the PID of the process started using debug
. The debugging commands as described in the manual “AID Debugging of C/C++ Programs” [11] can then be input. Once the program is terminated, the POSIX shell then becomes the current environment again.
The debug
command is described with all operands in the manual “POSIX Commands” [3].