exetrace.cc (8300:eb279d6e08a2) exetrace.cc (8793:5f25086326ac)
1/*
2 * Copyright (c) 2001-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;

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

78 outs << "A" << dec << TheISA::getExecutingAsid(thread) << " ";
79
80 if (Debug::ExecThread)
81 outs << "T" << thread->threadId() << " : ";
82
83 std::string sym_str;
84 Addr sym_addr;
85 Addr cur_pc = pc.instAddr();
1/*
2 * Copyright (c) 2001-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;

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

78 outs << "A" << dec << TheISA::getExecutingAsid(thread) << " ";
79
80 if (Debug::ExecThread)
81 outs << "T" << thread->threadId() << " : ";
82
83 std::string sym_str;
84 Addr sym_addr;
85 Addr cur_pc = pc.instAddr();
86 if (debugSymbolTable && Debug::ExecSymbol
87#if FULL_SYSTEM
88 && !inUserMode(thread)
89#endif
86 if (debugSymbolTable && Debug::ExecSymbol && !inUserMode(thread)
90 && debugSymbolTable->findNearestSymbol(cur_pc, sym_str, sym_addr)) {
91 if (cur_pc != sym_addr)
92 sym_str += csprintf("+%d",cur_pc - sym_addr);
93 outs << "@" << sym_str;
94 } else {
95 outs << "0x" << hex << cur_pc;
96 }
97

--- 80 unchanged lines hidden ---
87 && debugSymbolTable->findNearestSymbol(cur_pc, sym_str, sym_addr)) {
88 if (cur_pc != sym_addr)
89 sym_str += csprintf("+%d",cur_pc - sym_addr);
90 outs << "@" << sym_str;
91 } else {
92 outs << "0x" << hex << cur_pc;
93 }
94

--- 80 unchanged lines hidden ---