If you made changes to a function presently on the stack, but not the stopped in function, the changed code will not be used for the present call of that function. When the stopped in function returns, the old versions of the function on the stack execute.
There are several ways to solve this problem:
pop the stack until all changed functions are removed from the stack. You need to know your code to be sure that there are no ill effects.
Use the cont at linenum command to continue from another line.
Manually repair data structures (use the assign command) before continuing.
Rerun the program using start.
If there are breakpoints in modified functions on the stack, the breakpoints are moved to the new versions of the functions. If the old versions are executed, the program does not stop in those functions.