Rate This Document
Findability
Accuracy
Completeness
Readability

stack

Command Function

Displays the stack information and sets stack frames.

Syntax

Displays the stack information:

1
stack info [-h | --help] [-r RANK_ID | --rank RANK_ID] [-t THREAD_INDEX | --thread THREAD_INDEX]

Switches between stack frames:

1
 stack select [-h | --help] {-f FRAME_INDEX | --frame FRAME_INDEX} [-r RANK_ID | --rank RANK_ID] [-t THREAD_INDEX | --thread THREAD_INDEX]

The stack command can be abbreviated as s or stk.

Parameter Description

Table 1 info command parameters

Parameter

Description

-h/--help

Obtains help information. This parameter is optional.

-r/--rank

Rank ID. This parameter is optional.

-t/--thread

Thread index. This parameter is optional.

Table 2 select command parameters

Parameter

Description

-h/--help

Obtains help information. This parameter is optional.

-f/--frame

Stack frame index. This parameter is mandatory.

-r/--rank

Rank ID. This parameter is optional.

-t/--thread

Thread index. This parameter is optional.

Example

Display the information about stack functions:

1
stack -h

Command output:

1
2
3
4
The most commonly used stack(s/stk) sub commands are:
    info          Displays the stack information of the specified thread.
    select        Switches between stack frames of the specified thread.
See 'stack(s/stk) COMMAND -h/--help' for more information on a specific command.