summaryrefslogtreecommitdiff
path: root/cpu/exetrace.cc
diff options
context:
space:
mode:
authorAli Saidi <saidi@eecs.umich.edu>2004-06-01 15:43:27 -0400
committerAli Saidi <saidi@eecs.umich.edu>2004-06-01 15:43:27 -0400
commit59cb44385a6a222af83cfaede6d84703ef621f3a (patch)
treea0591644254858aa19937ae3b83483574da94d21 /cpu/exetrace.cc
parentebd4aa6548a68d3711756cdfc47136c0880e4f46 (diff)
downloadgem5-59cb44385a6a222af83cfaede6d84703ef621f3a.tar.xz
Added ability to specify system type/revision in config file. This
way a Tru64 system can be either Tlaser (by default) or Tsunami. Added debugSymbolTable to Tru64 for symbol printing in InstExec Trace cpu/exetrace.cc: Fixed bug if debugSymbolTable doesn't exist, we shouldn't try to look something up in it. kern/tru64/tru64_system.hh: Added ability to specify system type/revision in config file. This way a Tru64 system can be either Tlaser (by default) or Tsunami. --HG-- extra : convert_revision : c69a7411f0aa118ca5a766e43b7ceb7a5bb04cdf
Diffstat (limited to 'cpu/exetrace.cc')
-rw-r--r--cpu/exetrace.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpu/exetrace.cc b/cpu/exetrace.cc
index 0dd1d74d6..a4aaa19db 100644
--- a/cpu/exetrace.cc
+++ b/cpu/exetrace.cc
@@ -67,7 +67,7 @@ Trace::InstRecord::dump(ostream &outs)
std::string str;
- if (debugSymbolTable->findNearestSymbol(PC, str))
+ if ((debugSymbolTable) && (debugSymbolTable->findNearestSymbol(PC, str)))
outs << "@" << setw(17) << str << " : ";
else
outs << "0x" << hex << PC << " : ";