stacktrace.hh (7706:a7cb52c76262) | stacktrace.hh (7741:340b6f01d69b) |
---|---|
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; --- 25 unchanged lines hidden (view full) --- 34#include <vector> 35 36#include "base/types.hh" 37#include "cpu/static_inst.hh" 38 39class ThreadContext; 40namespace SparcISA 41{ | 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; --- 25 unchanged lines hidden (view full) --- 34#include <vector> 35 36#include "base/types.hh" 37#include "cpu/static_inst.hh" 38 39class ThreadContext; 40namespace SparcISA 41{ |
42 class StackTrace | 42 43class StackTrace 44{ 45 private: 46 std::vector<Addr> stack; 47 48 public: 49 bool 50 trace(ThreadContext *tc, StaticInstPtr inst) |
43 { | 51 { |
44 private: 45 std::vector<Addr> stack; | 52 panic("StackTrace::trace not implemented for SPARC.\n"); 53 return false; 54 } |
46 | 55 |
47 public: 48 bool trace(ThreadContext *tc, StaticInstPtr inst) 49 { 50 panic("StackTrace::trace not implemented for SPARC.\n"); 51 return false; 52 } | 56 const std::vector<Addr> &getstack() const { return stack; } |
53 | 57 |
54 const std::vector<Addr> &getstack() const { return stack; } | 58 public: 59 void dprintf() {} 60}; |
55 | 61 |
56 public: 57 void dprintf() {} 58 }; | |
59} 60 61#endif // __ARCH_SPARC_STACKTRACE_HH__ | 62} 63 64#endif // __ARCH_SPARC_STACKTRACE_HH__ |