Call Stack panel


This panel displays call stack information for function calls (see “2.12.1 Display call stack information").

This panel can only be opened when CS+ is connected with the debug tool.

Caution

This panel is left blank while the program is in execution.
The contents of each area on this panel are displayed at the time the program has stopped running.

Figure A.34

Call Stack Panel

 

Here, the following items are explained.

[How to open]

-

Choose [Call Stack] from the [View] menu.

[Description of each area]

(1)

[Depth] area

Displays the depth of calls.

The callers of functions are assigned numbers in order starting from 1, with the line showing the current PC position assigned a 0.

(2)

[Call Stack] area

Displays the current source position and call stack information about the calls placed on the stack (e.g., function caller position and parameters to each function).

The form in which information is displayed in this area differs depending on the status of which toolbar button, or , is selected, and which item from the context menu, [Show Parameter] or [Show Module File Name], is selected, as shown below.

Condition

Display Format

-

Show parameters

-

Show module file names

<function>(<parameter>=<parameter valueNote>, ...)[<module file name>$<file name>#<line number>] (default)

-

Show parameters

-

Do not show module file names

<function>(<parameter>=<parameter valueNote>, ...)[<file Name>#<line number>]

-

Do not show parameters

-

Show module file names

<function>()[<module file name>$<file name>#<line number>]

-

Do not show parameters

-

Do not show module file names

<function>()[<file name>#<line number>]

Note

If the parameter value is a character string, up to 20 characters are displayed.

Remark

An array of parameters are passed as a pointer, not as an array (C language specifications). Therefore, if parameters are comprised of an array, they are handled as pointer when displayed.

 

This area has the following features:

(a)

Jump to the source line/ disassemble line

Selecting [Jump to Source] from the context menu will open the Editor panel, with the caret moved to the source line from which the function at the current caret position is called. (The view will jump to the Editor panel if it is already open.)

Similarly, selecting [Jump to Disassemble] will open the Disassemble panel (Disassemble1), with the caret moved to the disassemble line indicating the address from which the function at the current caret position is called. (The view will jump to the Disassemble panel (Disassemble1) if it is already open.)

Remark

Double-clicking a line will also make you jump to the corresponding source line.

(b)

Saving the call stack information

Selecting [Save Call Stack Data As ...] from the [File] menu will open the Save As dialog box in which you can save all contents of this panel to a text file (*.txt) or CSV file (*.csv).

For details on how to save call stack information, see "2.12.1.4 Saving the displayed contents of call stack information".

(c)

Zoom in or out on a view

To zoom in and out of the Call Stack panel view, change the zoom ratio by using the drop-down list on the toolbar of the Main window while the focus is placed in the Call Stack panel.

You can also change the zoom ratio by using the [Ctrl] key + mouse-wheel combination.

-

Using the [Ctrl] key + mouse-wheel forward will zoom into the view, making the contents larger and easier to see (max. 300%).

-

Using the [Ctrl] key + mouse-wheel backward will zoom out of the view, making the contents smaller (min. 50%).

 

If the panel is closed after the zoom ratio is changed, the changed zoom ratio is retained (next time, the panel will open at the changed zoom ratio).

[Toolbar]

Each button in the toolbar are disabled during program execution.

 

Obtains latest information from the debug tool and updates display.

Notation

Shows the following buttons that change the form in which values are displayed.

 

AutoSelect

Displays values on this panel in per-variable predetermined notation (default).

Hexadecimal

Displays values on this panel in hexadecimal.

Decimal

Displays values on this panel in decimal.

Octal

Displays values on this panel in octal.

Binary

Displays values on this panel in binary.

Encoding

Shows the following buttons that change the character code in which string variables are displayed.

 

ASCII

Displays string variables in ASCII code (default).

Shift_JIS

Displays string variables in Shift_JIS code.

EUC-JP

Displays string variables in EUC-JP code.

UTF-8

Displays string variables in UTF-8 code.

UTF-16

Displays string variables in UTF-16 code.

 

Adds a module file name to the information displayed (default).

 

Adds function call parameters to the information displayed (default).

[[File] Menu (Call Stack Panel-Only Items)]

The [File] menu used exclusively for the Call Stack panel is as follows. (The other items are shared.)

However, all of these items are disabled during program execution.

Save Call Stack Data

Saves the contents of this panel to a text file (*.txt) or CSV file (*.csv) that has been saved previously (see "(b) Saving the call stack information").

If this item is selected for the first time after startup, the same operation as [Save Call Stack Data As …] would have been selected is performed.

Save Call Stack Data As...

Opens the Save As dialog box in order to save the contents of this panel to a specified text file (*.txt) or CSV file (*.csv) (see "(b) Saving the call stack information").

[[Edit] Menu (Call Stack Panel-Only Items)]

The [Edit] menu used exclusively for the Call Stack panel is as follows. (All other items are disabled.)

Copy

Copies the content of a selected line as character string to the clipboard.

Select All

Puts the item into all selected state.

Find...

Opens the Find and Replace dialog box, with its [Find in Files] tab selected.

Replace...

Opens the Find and Replace dialog box, with its [Replace in Files] tab selected.

[Context menu]

Each item on the context menu are disabled during program execution.

Copy

Copies the content of a selected line as character string to the clipboard.

Show Module File Name

Adds a module file name to the line when it is displayed (default).

Show Parameter

Adds function call parameters to the line when it is displayed (default)

Notation

Shows the following cascaded menu to specify the form in which values are displayed.

 

AutoSelect

Displays values on this panel in per-variable predetermined notation (default).

Hexadecimal

Displays values on this panel in hexadecimal.

Decimal

Displays values on this panel in decimal.

Octal

Displays values on this panel in octal.

Binary

Displays values on this panel in binary.

Encoding

Shows the following cascaded menu to specify character code.

 

ASCII

Displays string variables in ASCII code (default).

Shift_JIS

Displays string variables in Shift_JIS code.

EUC-JP

Displays string variables in EUC-JP code.

UTF-8

Displays string variables in UTF-8 code.

UTF-16

Displays string variables in UTF-16 code.

Jump to Disassemble

Opens the Disassemble panel (Disassemble1), with the caret on it moved to the address from which the function indicated by a selected line is called.

Jump to Source

Opens the Editor panel, with the caret on it moved to the source line from which the function indicated by a selected line is called.

Jump to Local Variable at This Time

Opens the Local Variables panel that displays local variables for the function indicated by a selected line.