From: Umesh Bhaskar Date: Mon, 15 Jul 2013 15:08:34 +0000 (-0400) Subject: debug : Fixes the issue wherein Debug symbols were not getting dumped into trace... X-Git-Tag: stable_2014_02_15~194 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5ba9e7afe2006dc49dd8bf499059c1f239ee4cdc;p=gem5.git debug : Fixes the issue wherein Debug symbols were not getting dumped into trace files for SE mode --- 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;