gem5
|
#include <stacktrace.hh>
Public Member Functions | |
StackTrace () | |
StackTrace (ThreadContext *tc, const StaticInstPtr &inst) | |
~StackTrace () | |
void | clear () |
bool | valid () const |
bool | trace (ThreadContext *tc, const StaticInstPtr &inst) |
const std::vector< Addr > & | getstack () const |
void | dprintf () |
Static Public Attributes | |
static const int | user = 1 |
static const int | console = 2 |
static const int | unknown = 3 |
Protected Types | |
typedef TheISA::MachInst | MachInst |
Private Member Functions | |
bool | isEntry (Addr addr) |
bool | decodePrologue (Addr sp, Addr callpc, Addr func, int &size, Addr &ra) |
bool | decodeSave (MachInst inst, int ®, int &disp) |
bool | decodeStack (MachInst inst, int &disp) |
void | trace (ThreadContext *tc, bool is_call) |
Private Attributes | |
ThreadContext * | tc |
std::vector< Addr > | stack |
Definition at line 58 of file stacktrace.hh.
|
protected |
Definition at line 61 of file stacktrace.hh.
RiscvISA::StackTrace::StackTrace | ( | ) |
Definition at line 66 of file stacktrace.cc.
References panic.
RiscvISA::StackTrace::StackTrace | ( | ThreadContext * | tc, |
const StaticInstPtr & | inst | ||
) |
Definition at line 72 of file stacktrace.cc.
References panic.
RiscvISA::StackTrace::~StackTrace | ( | ) |
Definition at line 78 of file stacktrace.cc.
References panic.
|
inline |
|
private |
Definition at line 115 of file stacktrace.cc.
References panic.
|
private |
Definition at line 104 of file stacktrace.cc.
References panic.
|
private |
Definition at line 97 of file stacktrace.cc.
References panic.
|
inline |
Definition at line 119 of file stacktrace.hh.
|
inline |
Definition at line 96 of file stacktrace.hh.
References stack.
|
private |
Definition at line 90 of file stacktrace.cc.
References panic.
|
private |
|
inline |
Definition at line 126 of file stacktrace.hh.
References clear(), StaticInst::isCall(), StaticInst::isReturn(), trace(), and valid().
|
inline |
|
static |
Definition at line 102 of file stacktrace.hh.
|
private |
Definition at line 64 of file stacktrace.hh.
Referenced by clear(), and getstack().
|
private |
Definition at line 63 of file stacktrace.hh.
|
static |
Definition at line 103 of file stacktrace.hh.
|
static |
Definition at line 101 of file stacktrace.hh.