class Backtrace
Defined at line 17 of file ../../zircon/kernel/lib/backtrace/include/lib/backtrace.h
Contains an array of return address values representing a thread's backtrace.
This class is not thread-safe.
Public Members
static const size_t kMaxSize
Public Methods
void Print (FILE * )
Pretty-prints this backtrace to |file|.
Defined at line 15 of file ../../zircon/kernel/lib/backtrace/backtrace.cc
void PrintWithoutVersion (FILE * )
Defined at line 20 of file ../../zircon/kernel/lib/backtrace/backtrace.cc
size_t size ()
Returns the number of elements in this backtrace.
Defined at line 25 of file ../../zircon/kernel/lib/backtrace/include/lib/backtrace.h
const vaddr_t * data ()
Returns a pointer to the underlying elements.
Defined at line 28 of file ../../zircon/kernel/lib/backtrace/include/lib/backtrace.h
void reset ()
Resets the size to 0.
Defined at line 31 of file ../../zircon/kernel/lib/backtrace/include/lib/backtrace.h
void push_back (vaddr_t addr)
Adds one element to the array. See also |set_first_frame_type|.
Defined at line 34 of file ../../zircon/kernel/lib/backtrace/include/lib/backtrace.h
void set_first_frame_type (FrameType type)
Defined at line 45 of file ../../zircon/kernel/lib/backtrace/include/lib/backtrace.h
Enumerations
enum FrameType
| Name | Value |
|---|---|
| ReturnAddress | 0 |
| PreciseLocation | 1 |
With the possible exception of the first frame, each address in the backtrace is a return
address. The first frame may be either a return address or a precise location (think PC). See
the "Presentation elements" section of //docs/reference/kernel/symbolizer_markup.md for
details. Unless specified, the first frame is assumed to be a return address.
Defined at line 44 of file ../../zircon/kernel/lib/backtrace/include/lib/backtrace.h