From 5ba9e7afe2006dc49dd8bf499059c1f239ee4cdc Mon Sep 17 00:00:00 2001 From: Umesh Bhaskar Date: Mon, 15 Jul 2013 11:08:34 -0400 Subject: [PATCH] debug : Fixes the issue wherein Debug symbols were not getting dumped into trace files for SE mode --- src/cpu/exetrace.cc | 5 +++-- 1 file 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; -- 2.30.2