arch,base,cpu,sim: Statically allocate debugSymbolTable.
[gem5.git] / src / cpu / base.cc
index a74e285cada6a854f4f94d07d491430c3fb5174d..dc3cbf051c826577ce907ff7562ce2610e45e064 100644 (file)
@@ -751,17 +751,17 @@ bool AddressMonitor::doMonitor(PacketPtr pkt) {
 void
 BaseCPU::traceFunctionsInternal(Addr pc)
 {
-    if (!Loader::debugSymbolTable)
+    if (Loader::debugSymbolTable.empty())
         return;
 
     // if pc enters different function, print new function symbol and
     // update saved range.  Otherwise do nothing.
     if (pc < currentFunctionStart || pc >= currentFunctionEnd) {
-        auto it = Loader::debugSymbolTable->findNearest(
+        auto it = Loader::debugSymbolTable.findNearest(
                 pc, currentFunctionEnd);
 
         string sym_str;
-        if (it == Loader::debugSymbolTable->end()) {
+        if (it == Loader::debugSymbolTable.end()) {
             // no symbol found: use addr as label
             sym_str = csprintf("%#x", pc);
             currentFunctionStart = pc;