crashanalysercmd/PerfToolsSharedLibraries/Engine/SymbianDebugLib/Engine/DbgEngine.cs
changeset 3 045ade241ef5
parent 2 0c91f0baec58
equal deleted inserted replaced
2:0c91f0baec58 3:045ade241ef5
   137         {
   137         {
   138             if (! iActiveRomIds.Contains(aRomId))
   138             if (! iActiveRomIds.Contains(aRomId))
   139                 iActiveRomIds.Add(aRomId);
   139                 iActiveRomIds.Add(aRomId);
   140         }
   140         }
   141 
   141 
       
   142         public void AddSymbolRomId(uint aRomId)
       
   143         {
       
   144             if (!iSymbolRomIds.Contains(aRomId))
       
   145                 iSymbolRomIds.Add(aRomId);
       
   146         }
       
   147 
       
   148         // Returns true we are decoding files related to this romid
   142         public bool IsActiveRomId(uint aRomId)
   149         public bool IsActiveRomId(uint aRomId)
   143         {
   150         {
   144             return iActiveRomIds.Contains(aRomId);
   151             if (iActiveRomIds.Count == 0)
   145         }
   152                 return true;
   146 
   153             else
   147         public void Prime( TSynchronicity aSynchronicity )
   154                 return iActiveRomIds.Contains(aRomId);
       
   155         }
       
   156 
       
   157         // Returns true if this romid needs symbol files
       
   158         public bool IsSymbolDataNeeded(uint aRomId)
       
   159         {
       
   160             if (iSymbolRomIds.Count == 0)
       
   161                 return true;
       
   162             else
       
   163                 return iSymbolRomIds.Contains(aRomId);
       
   164         }
       
   165 
       
   166         public void Prime(TSynchronicity aSynchronicity)
   148         {
   167         {
   149             if ( EngineOperation != null )
   168             if ( EngineOperation != null )
   150             {
   169             {
   151                 EngineOperation( this, TEvent.EPrimingStarted );
   170                 EngineOperation( this, TEvent.EPrimingStarted );
   152             }
   171             }
   488         private readonly DbgValidationManager iValidationManager;
   507         private readonly DbgValidationManager iValidationManager;
   489         private readonly DbgEntityDescriptorManager iDescriptorManager;
   508         private readonly DbgEntityDescriptorManager iDescriptorManager;
   490         private PlatformIdAllocator iIdAllocator = new PlatformIdAllocator();
   509         private PlatformIdAllocator iIdAllocator = new PlatformIdAllocator();
   491         private DbgEntityConfig iCurrentConfig = null;
   510         private DbgEntityConfig iCurrentConfig = null;
   492         private List<uint> iActiveRomIds = new List<uint>();
   511         private List<uint> iActiveRomIds = new List<uint>();
       
   512         private List<uint> iSymbolRomIds = new List<uint>();
   493         private bool iVerbose;
   513         private bool iVerbose;
   494         #endregion
   514         #endregion
   495     }
   515     }
   496 }
   516 }