|
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.Text; |
|
19 using System.Collections.Generic; |
|
20 using CrashItemLib.Crash.Container; |
|
21 using CrashItemLib.Crash.Stacks; |
|
22 using CrashItemLib.Crash.Registers; |
|
23 using CrashItemLib.Crash.Base; |
|
24 using CrashItemLib.Crash.Messages; |
|
25 using CrashItemLib.Crash.Threads; |
|
26 using CrashItemLib.Crash.Summarisable; |
|
27 using SymbianStructuresLib.Arm.Registers; |
|
28 using SymbianUtils.Range; |
|
29 |
|
30 namespace CrashItemLib.Engine.ProblemDetectors.Stack |
|
31 { |
|
32 internal class CIPDThreadValidity : CIProblemDetector |
|
33 { |
|
34 #region Constructors |
|
35 public CIPDThreadValidity() |
|
36 { |
|
37 } |
|
38 #endregion |
|
39 |
|
40 #region From CIProblemDetector |
|
41 public override void Check( CIContainer aContainer ) |
|
42 { |
|
43 CISummarisableEntityList list = aContainer.Summaries; |
|
44 foreach ( CISummarisableEntity entry in list ) |
|
45 { |
|
46 bool stackAvailable = entry.IsAvailable( CISummarisableEntity.TElement.EElementStack ); |
|
47 bool threadAvailable = entry.IsAvailable( CISummarisableEntity.TElement.EElementThread ); |
|
48 // |
|
49 if ( threadAvailable && !stackAvailable ) |
|
50 { |
|
51 base.CreateWarning( aContainer, entry.Thread, |
|
52 LibResources.CIPDThreadValidity_NoStack_Title, |
|
53 string.Format( LibResources.CIPDThreadValidity_NoStack_Description, base.CreateIdentifierText( entry ) ) |
|
54 ); |
|
55 } |
|
56 } |
|
57 } |
|
58 #endregion |
|
59 |
|
60 #region Properties |
|
61 #endregion |
|
62 |
|
63 #region Internal methods |
|
64 #endregion |
|
65 |
|
66 #region From System.Object |
|
67 #endregion |
|
68 |
|
69 #region Data members |
|
70 #endregion |
|
71 } |
|
72 } |