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 () |
Protected Types | |
typedef ArmISA::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 63 of file stacktrace.hh.
|
protected |
Definition at line 66 of file stacktrace.hh.
ArmISA::StackTrace::StackTrace | ( | ) |
Definition at line 120 of file stacktrace.cc.
ArmISA::StackTrace::StackTrace | ( | ThreadContext * | tc, |
const StaticInstPtr & | inst | ||
) |
Definition at line 125 of file stacktrace.cc.
References trace().
ArmISA::StackTrace::~StackTrace | ( | ) |
Definition at line 131 of file stacktrace.cc.
|
inline |
|
private |
Definition at line 163 of file stacktrace.cc.
|
private |
Definition at line 153 of file stacktrace.cc.
|
private |
Definition at line 147 of file stacktrace.cc.
|
inline |
Definition at line 104 of file stacktrace.hh.
|
inline |
Definition at line 94 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 109 of file stacktrace.hh.
References clear(), StaticInst::isCall(), StaticInst::isReturn(), trace(), and valid().
|
inline |
|
private |
Definition at line 69 of file stacktrace.hh.
Referenced by clear(), and getstack().
|
private |
Definition at line 68 of file stacktrace.hh.