debugSymbolTable is a global variable and only needs to be created once, not once...
authorAli Saidi <saidi@eecs.umich.edu>
Thu, 2 Aug 2007 18:32:20 +0000 (14:32 -0400)
committerAli Saidi <saidi@eecs.umich.edu>
Thu, 2 Aug 2007 18:32:20 +0000 (14:32 -0400)
--HG--
extra : convert_revision : 43cbfd1a58d7d728898cbfae0d7f7d9960eba178

src/sim/system.cc

index 3c4746e935b586659f86e8765d88e5eabf7bc234..eb0655aa55a3b612ac99c466696badb27e99954d 100644 (file)
@@ -72,7 +72,8 @@ System::System(Params *p)
 
 #if FULL_SYSTEM
     kernelSymtab = new SymbolTable;
-    debugSymbolTable = new SymbolTable;
+    if (!debugSymbolTable)
+        debugSymbolTable = new SymbolTable;
 
 
     /**