crashanalysercmd/PerfToolsSharedLibraries/Engine/SymbianDebugLib/PluginAPI/Code/DbgEngineCode.cs
changeset 0 818e61de6cd1
equal deleted inserted replaced
-1:000000000000 0:818e61de6cd1
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 * 
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 using System;
       
    18 using System.Collections.Generic;
       
    19 using System.Text;
       
    20 using SymbianUtils.PluginManager;
       
    21 using SymbianStructuresLib.Arm;
       
    22 using SymbianStructuresLib.Arm.Instructions;
       
    23 using SymbianDebugLib.Engine;
       
    24 using SymbianDebugLib.PluginAPI.Types;
       
    25 
       
    26 namespace SymbianDebugLib.PluginAPI.Types.Code
       
    27 {
       
    28     public abstract class DbgEngineCode : DbgPluginEngine
       
    29     {
       
    30         #region Factory function
       
    31         public static DbgEngineCode New( DbgEngine aEngine )
       
    32         {
       
    33             PluginManager<DbgEngineCode> loader = new PluginManager<DbgEngineCode>( 1 );
       
    34             loader.Load( new object[] { aEngine } );
       
    35             //
       
    36             DbgEngineCode ret = null;
       
    37             foreach ( DbgEngineCode engine in loader )
       
    38             {
       
    39                 if ( engine is DbgEngineCodeStub && loader.Count > 1 )
       
    40                 {
       
    41                     continue;
       
    42                 }
       
    43                 else
       
    44                 {
       
    45                     ret = engine;
       
    46                     break;
       
    47                 }
       
    48             }
       
    49             //
       
    50             return ret;
       
    51         }
       
    52         #endregion
       
    53 
       
    54         #region Constructors
       
    55         protected DbgEngineCode( DbgEngine aEngine )
       
    56             : base( aEngine )
       
    57         {
       
    58         }
       
    59         #endregion
       
    60 
       
    61         #region Framework API
       
    62         #endregion
       
    63 
       
    64         #region Properties
       
    65         #endregion
       
    66 
       
    67         #region Internal methods
       
    68         #endregion
       
    69 
       
    70         #region Data members
       
    71         #endregion
       
    72     }
       
    73 }