From 26c666b4f3e8a96503d3742632b278fe781263d9 Mon Sep 17 00:00:00 2001 From: Steve Reinhardt Date: Mon, 15 Nov 2004 19:57:11 -0500 Subject: [PATCH] Minor fixes for pc sampling profile. cpu/exetrace.cc: Fix dumb mistake. --HG-- extra : convert_revision : 9d5d0d09775133d1a60cf459f1bd47afa8480663 --- cpu/exetrace.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpu/exetrace.cc b/cpu/exetrace.cc index 58fb7d668..ff7e90c9e 100644 --- a/cpu/exetrace.cc +++ b/cpu/exetrace.cc @@ -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 << " : ";