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.
PowerISA::StackTrace::StackTrace | ( | ) |
Definition at line 67 of file stacktrace.cc.
References panic.
PowerISA::StackTrace::StackTrace | ( | ThreadContext * | tc, |
const StaticInstPtr & | inst | ||
) |
Definition at line 73 of file stacktrace.cc.
References panic.
PowerISA::StackTrace::~StackTrace | ( | ) |
Definition at line 79 of file stacktrace.cc.
References panic.
|
inline |
|
private |
Definition at line 116 of file stacktrace.cc.
References panic.
|
private |
Definition at line 105 of file stacktrace.cc.
References panic.
|
private |
Definition at line 98 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 91 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.