11.8 Stack view

Use the Stack view to display stack information for the currently active connection in the Debug Control view. You can view stack information for cores, threads, or processes depending on the selected execution context.

To view stack information:

  1. In the Debug Control view, right-click the core, thread, or process that you want stack information for, and select Show in Stack. This displays the stack information for the selected execution context.
    Figure 11-9 Show in Stack option
    Show in Stack


  2. Stack information is gathered when the system is stopped.
    Figure 11-10 Stack view showing information for a selected core
    Stack view showing information for a selected core


    Some of the views in the DS-5 Debug perspective are associated with the currently selected stack frame. Each associated view is synchronized accordingly.

You can also:

Lock Stack view information display to a specific execution context
You can restrict Stack view information display to a specific execution context in your current active connection. In the Stack view, click Linked: context and select the execution context to lock. For example, in the below figure, Stack view is locked to the selected thread.
Figure 11-11 Stack view locked to a selected context
Stack view locked to a selected context


Show or hide the Local Variables panel
Click Local variables panel button to show or hide the Local Variables panel. You can interact with local variables as you would in the Variables view. See 11.28 Variables view for more information about working with variables.
Set function prototype display options
Click Function prototype display option to set the function prototype display options. You can choose to show or hide function parameter types or values.

Note:

Displaying a large number of function parameter values might slow the debugger performance.
View more stack frames
To see more stack frames, click Fetch More Stack Frames button Fetch More Stack Frames to view the next set of stack frames.

By default, the Stack view displays five stack frames, and each additional fetch displays the next five available frames.

To increase the default depth of the stack frames to view, on the Stack view menu, click Stack Depth button and select the required stack depth. If you need more depth than the listed options, click Other and enter the depth you require.

Note:

Increasing the number of displayed stack frames might slow the debugger performance.
Refresh the view
To refresh or update the values in the view, click Refresh button.
Show in Disassembly

Right-click a stack frame and select Show in Disassembly to open the Disassembly view and locate the current instruction for that stack frame.

Show in Memory

Right-click a stack frame and select Show in Memory to open the Memory view and display the memory location used to store that stack frame.

Step Out to This Frame
Right-click a stack frame and select Step Out to This Frame to run to the current instruction at the selected stack frame.

Toolbar options

The following View Menu options are available:

New Stack View

Displays a new instance of the Stack view.

Freeze Data

Freezes data to the currently selected execution context. This works as a toggle.

Update View When Hidden

Updates the view when it is hidden behind other views. By default, this view does not update when hidden.

Non-ConfidentialPDF file icon PDF versionARM 100953_0527_00_en
Copyright © 2010–2017 ARM Limited or its affiliates. All rights reserved.