stacktrace.hh (5254:c555f8b07345) | stacktrace.hh (5567:8fc3b004b0df) |
---|---|
1/* 2 * Copyright (c) 2004-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; --- 47 unchanged lines hidden (view full) --- 56 Addr task(Addr ksp) const; 57 int pid(Addr ksp) const; 58 std::string name(Addr ksp) const; 59}; 60 61class StackTrace 62{ 63 protected: | 1/* 2 * Copyright (c) 2004-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; --- 47 unchanged lines hidden (view full) --- 56 Addr task(Addr ksp) const; 57 int pid(Addr ksp) const; 58 std::string name(Addr ksp) const; 59}; 60 61class StackTrace 62{ 63 protected: |
64 typedef TheISA::MachInst MachInst; | 64 typedef MipsISA::MachInst MachInst; |
65 private: 66 ThreadContext *tc; 67 std::vector<Addr> stack; 68 69 private: 70 bool isEntry(Addr addr); 71 bool decodePrologue(Addr sp, Addr callpc, Addr func, int &size, Addr &ra); 72 bool decodeSave(MachInst inst, int ®, int &disp); --- 53 unchanged lines hidden --- | 65 private: 66 ThreadContext *tc; 67 std::vector<Addr> stack; 68 69 private: 70 bool isEntry(Addr addr); 71 bool decodePrologue(Addr sp, Addr callpc, Addr func, int &size, Addr &ra); 72 bool decodeSave(MachInst inst, int ®, int &disp); --- 53 unchanged lines hidden --- |