Call Stack panel


This panel is used to display the call stack information for the function call (see "2.11.1 Display call stack information").

This panel appears only when connected to the debug tool.

Caution 1.

Nothing is displayed on this panel during execution of a program.
When the execution of a program is stopped, items in each area are displayed.

Caution 2.

When the selected microcontroller supports multi-core, this panel displays the value regarding a core (PE) by switching selection between the target cores (see "2.7 Select a Core (PE)").

Remark

This panel can be zoomed in and out by in the tool bar, or by moving the mouse wheel forward or backward while holding down the [Ctrl] key.

Figure A.24

Call Stack Panel

 

This section describes the following.

[How to open]

-

From the [View] menu, select [Call Stack].

[Description of each area]

(1)

[Depth] area

The depth of the call is displayed.

The line at the current PC position becomes 0 and incremented numbers from 1 is added to the calling function in the order.

(2)

[Call Stack] area

The current source position and the call stack information pushed on the stack (position of the calling function and arguments of a each function, etc.) are displayed.

The display format in this area differs depending on the selection condition of the / button on the toolbar, or of [Show Parameter]/[Show Module File Name] from the context menu.

Condition

Display Format

-

Display arguments

-

Display module file name

<Function>(<Argument>=<Argument ValueNote>, ...)[<Module file name>$<File name>#<Line number>] (default)

-

Display arguments

-

Do not display module file name

<Function>(<Argument>=<Argument valueNote>, ...)[<File Name>#<Line number>]

-

Do not display arguments

-

Display module file name

<Function>()[<Module file name>$<File name>#<Line number>]

-

Do not display arguments

-

Do not display module file name

<Function>()[<File name>#<Line number>]

Note

When the argument value is character string, up to 20 characters can be displayed.

Remark

Array arguments are passed as pointers rather than arrays (C language specification). For this reason, if the argument is an array, it is displayed as a pointer.

 

This area is provided with the following functions.

(a)

Jump to source line and disassemble

By selecting [Jump to Source] from the context menu, the Editor panel is opened with moving the caret to the source line corresponding to the calling function at the current caret position (if the Editor panel is already open, the screen will jump to the panel).

In addition, similarly by selecting [Jump to Disassemble], the Disassemble panel (Disasemmble1) is opened with moving the caret to the address corresponding to the calling function at the current caret position (if the Disassemble panel is already open, the screen will jump to the panel (Disassemble1)).

Remark

It is possible to jump to the target source line by double-clicking on that line as well.

(b)

Saving the contents of call stack information

By selecting the [File] menu >> [Save Call Stack Data As...], the Save As dialog box can be opened, and all the contents of this panel can be saved in a text file (*.txt) or CSV file (*.csv).

See "2.11.1.4 Save the contents of call stack information" for details on the method for saving the contents of call stack information.

[Toolbar]

 

Acquires the latest data from the debug tool, and updates the contents of this panel.

Notation

The following buttons to specify the notation of values are displayed.

 

AutoSelect

Displays values on this panel in the default notation according to the type of variable (default).

Hexadecimal

Displays values on this panel in hexadecimal number.

Decimal

Displays values on this panel in decimal number.

Octal

Displays values on this panel in octal number.

Binary

Displays values on this panel in binary number.

Encoding

The following buttons to specify the encoding of character variables are displayed.

 

ASCII

Displays character variables in ASCII code (default).

Shift_JIS

Displays character variables in Shift-JIS code.

EUC-JP

Displays character variables in EUC-JP code.

UTF-8

Displays character variables in UTF-8 code.

UTF-16

Displays character variables in UTF-16 code.

 

Displays the call stack information with the module file name (default).

 

Displays the call stack information with the parameters (arguments) of the function call (default).

[[File] menu (Call Stack panel-dedicated items)]

The following items are exclusive for the [File] menu in the Call Stack panel (other items are common to all the panels).

Note that all these items are disabled during execution of a program.

Save Call Stack Data

Overwrites the contents of this panel to the previously saved text file (*.txt)/CSV file (*.csv) (see "(b) Saving the contents of call stack information").

Note that when the file has never been saved or the file is write disabled, the same operation is applied as the selection in [Save Call Stack Data As...].

Save Call Stack Data As...

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

[[Edit] menu (Call Stack panel-dedicated items)]

The following items are exclusive for [Edit] menu in the Call Stack panel (all other items are disabled).

Copy

Copies the contents of the selected line to the clipboard.

Select All

Selects all the items of this panel.

Find...

Opens the Find and Replace dialog box with selecting the [Find in Files] tab.

Replace...

Opens the Find and Replace dialog box with selecting the [Replace in Files] tab.

[Context menu]

Copy

Copies the contents of the selected line to the clipboard.

Show Module File Name

Displays the call stack information with the module file name (default).

Show Parameter

Displays the call stack information with the parameters (arguments) of the function call (default).

Notation

The following cascade menus to specify the notation of values are displayed.

 

AutoSelect

Displays values on this panel in the default notation according to the type of variable (default).

Hexadecimal

Displays values on this panel in hexadecimal number.

Decimal

Displays values on this panel in decimal number.

Octal

Displays values on this panel in octal number.

Binary

Displays values on this panel in binary number.

Encoding

The following cascade menus to specify the encoding of character variables are displayed.

 

ASCII

Displays character variables in ASCII code (default).

Shift_JIS

Displays character variables in Shift-JIS code.

EUC-JP

Displays character variables in EUC-JP code.

UTF-8

Displays character variables in UTF-8 code.

UTF-16

Displays character variables in UTF-16 code.

Jump to Disassemble

Opens the Disassemble panel (Disassemble1) and jumps to the address corresponding to the calling function of the selected line in this panel.

Jump to Source

Opens the Editor panel and jumps to the source line corresponding to the calling function of the selected line in this panel.

Jump to Local Variable at This Time

Opens the Local Variables panel to display the local variable corresponding to the selected line.