User manual

DVP and EMU2 (HDS2) emulator features UM0036
254/385 Doc ID 7705 Rev 11
Figure 190. Trace filtering event schematics
8.6 Stack control window (DVP emulators)
The Stack Control window command allows you to set a specific stack address as either
the stack overflow point or the stack underflow point. This means that if, during the course of
debugging, the current SP value exceeds or falls beneath this address, the application is
halted (provided that you check the Enable stop box in the Stack Control window).
Figure 191. Stack Control window
This effectively allows you to specify a breakpoint at the SP address level.
Setting the stack control
1. Open the Stack Control window either by clicking on (the Stack Control Window
icon) on the Tools toolbar, or by selecting Tools>Stack Control...from the main menu.
2. To enable a break in the running of the application when the specified conditions are
met, check the Enable stop box.
3. If you want to specify a new stack overflow point, type the overflow address in the
SP Overflow field.
4. To view/change the configuration settings, click on the Conf... button. Here you can
enable or disable the stack pointer control: