stacktrace.cc (5499:8bfc7650c344) stacktrace.cc (5567:8fc3b004b0df)
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;

--- 145 unchanged lines hidden (view full) ---

154 }
155
156 if (!kernel) {
157 stack.push_back(console);
158 return;
159 }
160
161 SymbolTable *symtab = tc->getSystemPtr()->kernelSymtab;
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;

--- 145 unchanged lines hidden (view full) ---

154 }
155
156 if (!kernel) {
157 stack.push_back(console);
158 return;
159 }
160
161 SymbolTable *symtab = tc->getSystemPtr()->kernelSymtab;
162 Addr ksp = tc->readIntReg(TheISA::StackPointerReg);
162 Addr ksp = tc->readIntReg(AlphaISA::StackPointerReg);
163 Addr bottom = ksp & ~0x3fff;
164 Addr addr;
165
166 if (is_call) {
167 if (!symtab->findNearestAddr(pc, addr))
168 panic("could not find address %#x", pc);
169
170 stack.push_back(addr);

--- 196 unchanged lines hidden ---
163 Addr bottom = ksp & ~0x3fff;
164 Addr addr;
165
166 if (is_call) {
167 if (!symtab->findNearestAddr(pc, addr))
168 panic("could not find address %#x", pc);
169
170 stack.push_back(addr);

--- 196 unchanged lines hidden ---