|
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.IO; |
|
20 using System.Text.RegularExpressions; |
|
21 using System.Collections.Generic; |
|
22 using SymbianUtils.Range; |
|
23 using EM = DExcPlugin.ExpressionManager.DExcExpressionManager; |
|
24 |
|
25 namespace DExcPlugin.Extractor |
|
26 { |
|
27 internal class DExcExtractorListThreadInfo : DExcExtractorList |
|
28 { |
|
29 #region Constructors |
|
30 public DExcExtractorListThreadInfo( DExcExtractor.TState aState, DExcExtractorListType aType ) |
|
31 : base( aState, aType ) |
|
32 { |
|
33 } |
|
34 #endregion |
|
35 |
|
36 #region API |
|
37 public override void Add( string aLine ) |
|
38 { |
|
39 base.Add( aLine ); |
|
40 // |
|
41 Match m = EM.ThreadStackRange.Match( aLine ); |
|
42 if ( m.Success ) |
|
43 { |
|
44 iStackRange.Min = uint.Parse( m.Groups[ 1 ].Value, System.Globalization.NumberStyles.HexNumber ); |
|
45 iStackRange.Max = uint.Parse( m.Groups[ 2 ].Value, System.Globalization.NumberStyles.HexNumber ); |
|
46 } |
|
47 } |
|
48 #endregion |
|
49 |
|
50 #region Properties |
|
51 public AddressRange StackRange |
|
52 { |
|
53 get { return iStackRange; } |
|
54 } |
|
55 #endregion |
|
56 |
|
57 #region Internal methods |
|
58 #endregion |
|
59 |
|
60 #region From System.Object |
|
61 #endregion |
|
62 |
|
63 #region Data members |
|
64 private AddressRange iStackRange = new AddressRange(); |
|
65 #endregion |
|
66 } |
|
67 } |