Halting when certain functions are called in C

This topic describes how to halt just before or just after a routine is called by using the AT CALL and AT ENTRY commands. The Example: sample C program for debugging is used to describe these commands.

To use the AT CALL command, you must compile the calling program with the TEST compiler option.

To halt just before read_token is called, enter the following command:

AT CALL read_token ;

To use the AT ENTRY command, you must compile the called program with the TEST compiler option.

To halt just after read_token is called, enter the following command:

AT ENTRY read_token ;

To halt just after push is called and only when num equals 16, enter the following command:

AT ENTRY push WHEN num=16;