diff options
Diffstat (limited to 'cpu/exetrace.cc')
-rw-r--r-- | cpu/exetrace.cc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/cpu/exetrace.cc b/cpu/exetrace.cc index 4d3a70f37..0dd1d74d6 100644 --- a/cpu/exetrace.cc +++ b/cpu/exetrace.cc @@ -67,12 +67,8 @@ Trace::InstRecord::dump(ostream &outs) std::string str; - if(debugSymbolTable->findSymbol(PC, str)) + if (debugSymbolTable->findNearestSymbol(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 << " : "; |