#include "cpu/static_inst.hh"
class ThreadContext;
+
+namespace AlphaISA {
+
class StackTrace;
class ProcessInfo
class StackTrace
{
- protected:
- typedef TheISA::MachInst MachInst;
private:
ThreadContext *tc;
std::vector<Addr> stack;
StackTrace(ThreadContext *tc, StaticInstPtr inst);
~StackTrace();
- void clear()
+ void
+ clear()
{
tc = 0;
stack.clear();
public:
const std::vector<Addr> &getstack() const { return stack; }
- static const int user = 1;
- static const int console = 2;
- static const int unknown = 3;
+ enum {
+ user = 1,
+ console = 2,
+ unknown = 3
+ };
#if TRACING_ON
private:
return true;
}
+} // namespace AlphaISA
+
#endif // __ARCH_ALPHA_STACKTRACE_HH__