8.7.8.123. OnPreDisconnect()ΒΆ
GEL callback function called before the target processor is disconnected.
Syntax
OnPreDisconnect();
Description
If defined in a loaded GEL file, OnPreDisconnect() will be called before the target is disconnected. The debugger will not disconnect the target until the callback is fully executed. Disconnection will occur regardless of the result of the callback, even if it throws an error.
The callback should not change the target's execution state.
Example
OnPreDisconnect()
{
GEL_TextOut("The target is about to be disconnected\n");
}