Calling a C function from z/OS® Debugger
You can start a library function (such as strlen
)
or one of the program functions interactively by calling it on the
command line. The functions must comply with the following
requirements:
- The functions cannot be in XPLINK applications.
- The functions must have debug information available.
Example: sample C program for debugging
Below, we call
push()
interactively to push one
more value on the stack just before a value is popped off. AT CALL pop ;
GO ;
push(77);
GO ;
The calculator produces different results than before
because of the additional value pushed on the stack.