Backtrace

From SEGGER Wiki
Revision as of 09:48, 22 September 2022 by Nino (talk | contribs)
Jump to: navigation, search

The so called backtrace is a list of all addresses that have been executed on the target device. That list is generated from the incoming instruction trace stream from the device and displayed once the target device is halted. This allows the debugger to display all executed instructions in a list which is comparable to a prolonged and more detailed callstack.

Instruction Trace window in Ozone showing the backtrace data

With that information it is possible to exactly follow the execution of the target application prior to the current PC like in a "time-machine". The backtrace data is also linked with the source code (if available) so when highlighting an instruction in the instruction trace window the debugger will display the corresponding source code line.

Further this information is displayed in a timeline to show the exact call history of the application.

Timeline window in Ozone showing the backtrace data