|
1 /* |
|
2 * Copyright (c) 2004-2008 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 |
|
18 using System; |
|
19 using System.Collections.Generic; |
|
20 using System.Text; |
|
21 using SymbianParserLib.Engine; |
|
22 using CrashDebuggerLib.Structures.Process; |
|
23 using CrashDebuggerLib.Structures.KernelObjects; |
|
24 using SymbianParserLib.Elements; |
|
25 using CrashDebuggerLib.Parsers.State.Implementation.Helpers; |
|
26 |
|
27 namespace CrashDebuggerLib.Parsers.State.Implementation |
|
28 { |
|
29 internal class StateTheCurrentProcess : State |
|
30 { |
|
31 #region Constructors |
|
32 public StateTheCurrentProcess( CrashDebuggerParser aParser ) |
|
33 : base( aParser ) |
|
34 { |
|
35 } |
|
36 #endregion |
|
37 |
|
38 #region API |
|
39 public override void Prepare() |
|
40 { |
|
41 // TODO: |
|
42 // TheCurrentProcess=c801c078 |
|
43 // TheCurrentAddressSpace=c801c078 |
|
44 |
|
45 iHelper.CreateMonitorProcess( ParserEngine, "TheCurrentProcess", CrashDebugger.TheCurrentProcess ); |
|
46 } |
|
47 |
|
48 public override void Finalise() |
|
49 { |
|
50 DObjectCon container = CrashDebugger[ DObject.TObjectType.EProcess ]; |
|
51 if ( container.Contains( CrashDebugger.TheCurrentProcess ) == false ) |
|
52 { |
|
53 container.Add( CrashDebugger.TheCurrentProcess ); |
|
54 } |
|
55 } |
|
56 #endregion |
|
57 |
|
58 #region Properties |
|
59 #endregion |
|
60 |
|
61 #region Internal methods |
|
62 #endregion |
|
63 |
|
64 #region Data members |
|
65 private HelperDProcess iHelper = new HelperDProcess(); |
|
66 #endregion |
|
67 } |
|
68 } |