From 970261f9ceeded02162760365ce08c8d1fd4b506 Mon Sep 17 00:00:00 2001 From: Ali Saidi Date: Thu, 2 Aug 2007 14:32:20 -0400 Subject: [PATCH] debugSymbolTable is a global variable and only needs to be created once, not once per system --HG-- extra : convert_revision : 43cbfd1a58d7d728898cbfae0d7f7d9960eba178 --- src/sim/system.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sim/system.cc b/src/sim/system.cc index 3c4746e93..eb0655aa5 100644 --- a/src/sim/system.cc +++ b/src/sim/system.cc @@ -72,7 +72,8 @@ System::System(Params *p) #if FULL_SYSTEM kernelSymtab = new SymbolTable; - debugSymbolTable = new SymbolTable; + if (!debugSymbolTable) + debugSymbolTable = new SymbolTable; /** -- 2.30.2