summaryrefslogtreecommitdiff
path: root/cpu
diff options
context:
space:
mode:
Diffstat (limited to 'cpu')
-rw-r--r--cpu/exetrace.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/cpu/exetrace.cc b/cpu/exetrace.cc
index a72242232..4d3a70f37 100644
--- a/cpu/exetrace.cc
+++ b/cpu/exetrace.cc
@@ -67,8 +67,12 @@ Trace::InstRecord::dump(ostream &outs)
std::string str;
- if(debugSymbolTable->findSymbol(data.as_int, str))
+ if(debugSymbolTable->findSymbol(PC, str))
outs << "@" << setw(17) << str << " : ";
+ else if(debugSymbolTable->findSymbol(PC - 4, str))
+ outs << "@" << setw(15) << str << "+4 : ";
+ else if(debugSymbolTable->findSymbol(PC - 8, str))
+ outs << "@" << setw(15) << str << "+8 : ";
else
outs << "0x" << hex << PC << " : ";