|
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 StateTheCurrentThread : State |
|
30 { |
|
31 #region Constructors |
|
32 public StateTheCurrentThread( CrashDebuggerParser aParser ) |
|
33 : base( aParser ) |
|
34 { |
|
35 } |
|
36 #endregion |
|
37 |
|
38 #region API |
|
39 public override void Prepare() |
|
40 { |
|
41 // TODO: |
|
42 // TheCurrentThread=c8041a00 |
|
43 |
|
44 iHelper.CreateMonitorThread( ParserEngine, "TheCurrentThread", CrashDebugger.TheCurrentThread ); |
|
45 } |
|
46 |
|
47 public override void Finalise() |
|
48 { |
|
49 DObjectCon container = CrashDebugger[ DObject.TObjectType.EThread ]; |
|
50 if ( container.Contains( CrashDebugger.TheCurrentThread ) == false ) |
|
51 { |
|
52 container.Add( CrashDebugger.TheCurrentThread ); |
|
53 } |
|
54 } |
|
55 #endregion |
|
56 |
|
57 #region Properties |
|
58 #endregion |
|
59 |
|
60 #region Internal methods |
|
61 #endregion |
|
62 |
|
63 #region Data members |
|
64 private HelperDThread iHelper = new HelperDThread(); |
|
65 #endregion |
|
66 } |
|
67 } |