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 |
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 62 of file stacktrace.hh.
X86ISA::StackTrace::StackTrace | ( | ) |
Definition at line 120 of file stacktrace.cc.
X86ISA::StackTrace::StackTrace | ( | ThreadContext * | tc, |
const StaticInstPtr & | inst | ||
) |
Definition at line 125 of file stacktrace.cc.
References trace().
X86ISA::StackTrace::~StackTrace | ( | ) |
Definition at line 131 of file stacktrace.cc.
|
inline |
|
private |
Definition at line 166 of file stacktrace.cc.
References CopyOut(), decodeSave(), decodeStack(), X86ISA::pc, X86ISA::reg, X86ISA::ReturnAddressReg, and tc.
|
private |
Definition at line 154 of file stacktrace.cc.
Referenced by decodePrologue().
|
private |
Definition at line 147 of file stacktrace.cc.
Referenced by decodePrologue().
|
inline |
Definition at line 105 of file stacktrace.hh.
|
inline |
Definition at line 91 of file stacktrace.hh.
References stack.
|
private |
Definition at line 141 of file stacktrace.cc.
|
private |
Definition at line 136 of file stacktrace.cc.
Referenced by StackTrace(), and trace().
|
inline |
Definition at line 110 of file stacktrace.hh.
References clear(), StaticInst::isCall(), StaticInst::isReturn(), trace(), and valid().
|
inline |
|
static |
Definition at line 94 of file stacktrace.hh.
|
private |
Definition at line 66 of file stacktrace.hh.
Referenced by clear(), and getstack().
|
private |
Definition at line 65 of file stacktrace.hh.
Referenced by clear(), decodePrologue(), and valid().
|
static |
Definition at line 95 of file stacktrace.hh.
|
static |
Definition at line 93 of file stacktrace.hh.