debug : Fixes the issue wherein Debug symbols were not getting dumped into trace files for SE mode
This commit is contained in:
parent
1f43e244bd
commit
5ba9e7afe2
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue