Minor fixes for pc sampling profile.
cpu/exetrace.cc: Fix dumb mistake. --HG-- extra : convert_revision : 9d5d0d09775133d1a60cf459f1bd47afa8480663
This commit is contained in:
parent
e904ef3763
commit
26c666b4f3
1 changed files with 2 additions and 2 deletions
|
@ -69,8 +69,8 @@ Trace::InstRecord::dump(ostream &outs)
|
|||
if (debugSymbolTable
|
||||
&& debugSymbolTable->findNearestSymbol(PC, sym_str, sym_addr)) {
|
||||
if (PC != sym_addr)
|
||||
sym_str += csprintf("+%d", addr - sym_addr);
|
||||
outs << "@" << setw(17) << sym_str << " : ";
|
||||
sym_str += csprintf("+%d", PC - sym_addr);
|
||||
outs << "@" << sym_str << " : ";
|
||||
}
|
||||
else {
|
||||
outs << "0x" << hex << PC << " : ";
|
||||
|
|
Loading…
Reference in a new issue