bt - 2024.1 English

Vitis Unified Software Platform Documentation: Embedded Software Development (UG1400)

Document ID
UG1400
Release Date
2024-05-30
Version
2024.1 English

Stack back trace.

Syntax

backtrace [options] Return stack trace for current target. Target must be stopped. Use debug information for best result. The alias for backtrace is 'bt' and can be used interchangeably.

Options

Option Description
-maxframes <num> Maximum number of frames in stack trace. The default value is 10. The actual number of frames could be less depending on program state. To read all the available frames, use -1.

Returns

Stack trace, if successful. Error string, if stack trace cannot be read from the target.

Examples

bt

Return top 10 frames from stack trace.

bt -maxframes 5

Return top 5 frames from stack trace.

bt -maxframes -1

Return all the available frames from stack trace.