diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/cpu/exetrace.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cpu/exetrace.cc b/src/cpu/exetrace.cc index fdefcc980..2877db187 100644 --- a/src/cpu/exetrace.cc +++ b/src/cpu/exetrace.cc @@ -83,8 +83,9 @@ Trace::ExeTracerRecord::traceInst(StaticInstPtr inst, bool ran) std::string sym_str; Addr sym_addr; Addr cur_pc = pc.instAddr(); - if (debugSymbolTable && Debug::ExecSymbol && !inUserMode(thread) - && debugSymbolTable->findNearestSymbol(cur_pc, sym_str, sym_addr)) { + if (debugSymbolTable && Debug::ExecSymbol && + (!FullSystem || !inUserMode(thread)) && + debugSymbolTable->findNearestSymbol(cur_pc, sym_str, sym_addr)) { if (cur_pc != sym_addr) sym_str += csprintf("+%d",cur_pc - sym_addr); outs << "@" << sym_str; |