Calling a C++ function from z/OS® Debugger

You can start a library function (such as strlen) or one of the programs functions interactively by calling it on the command line. You can also start C linkage functions such as read_token. However, you cannot call C++ linkage functions interactively. 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

In the example below, we call read_token interactively.
AT CALL read_token;
GO;
read_token(word);
The calculator produces different results than before because of the additional token removed from input.