stacktrace.hh (5569:baeee670d4ce) | stacktrace.hh (6227:a17798f2a52c) |
---|---|
1/* 2 * Copyright (c) 2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 77 unchanged lines hidden (view full) --- 86 } 87 88 bool valid() const { return tc != NULL; } 89 bool trace(ThreadContext *tc, StaticInstPtr inst); 90 91 public: 92 const std::vector<Addr> &getstack() const { return stack; } 93 | 1/* 2 * Copyright (c) 2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 77 unchanged lines hidden (view full) --- 86 } 87 88 bool valid() const { return tc != NULL; } 89 bool trace(ThreadContext *tc, StaticInstPtr inst); 90 91 public: 92 const std::vector<Addr> &getstack() const { return stack; } 93 |
94 static const int user = 1; 95 static const int console = 2; 96 static const int unknown = 3; | 94 enum { 95 user = 1, 96 console = 2, 97 unknown = 3 98 }; |
97 98#if TRACING_ON 99 private: 100 void dump(); 101 102 public: 103 void dprintf() { if (DTRACE(Stack)) dump(); } 104#else --- 21 unchanged lines hidden --- | 99 100#if TRACING_ON 101 private: 102 void dump(); 103 104 public: 105 void dprintf() { if (DTRACE(Stack)) dump(); } 106#else --- 21 unchanged lines hidden --- |