crashanalysercmd/Libraries/File Formats/Plugins/CrashXmlPlugin/FileFormat/Segment/Entries/Registers/CXmlSegRegisters.cs
equal
deleted
inserted
replaced
|
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.Base; |
|
21 using CrashItemLib.Crash.Symbols; |
|
22 using CrashItemLib.Crash.Stacks; |
|
23 using CrashItemLib.Crash.Registers; |
|
24 |
|
25 namespace CrashXmlPlugin.FileFormat.Segment.Entries.Registers |
|
26 { |
|
27 internal class CXmlSegRegisters : CXmlSegBase |
|
28 { |
|
29 #region Constructors |
|
30 public CXmlSegRegisters() |
|
31 : base( SegConstants.Registers ) |
|
32 { |
|
33 } |
|
34 #endregion |
|
35 |
|
36 #region From CXmlSegBase |
|
37 public override int SegmentPriority |
|
38 { |
|
39 get { return 40; } |
|
40 } |
|
41 #endregion |
|
42 |
|
43 #region From CXmlNode |
|
44 protected override void XmlSerializeChildren( CrashXmlPlugin.FileFormat.Document.CXmlDocumentSerializationParameters aParameters ) |
|
45 { |
|
46 CIElementList<CIRegisterListCollection> regListCols = aParameters.Container.ChildrenByType<CIRegisterListCollection>( CIElement.TChildSearchType.EEntireHierarchy ); |
|
47 foreach ( CIRegisterListCollection regListCol in regListCols ) |
|
48 { |
|
49 foreach ( CIRegisterList regList in regListCol ) |
|
50 { |
|
51 if ( regList.Count > 0 ) |
|
52 { |
|
53 CXmlRegisterSet xmlRegList = new CXmlRegisterSet( regList ); |
|
54 xmlRegList.XmlSerialize( aParameters ); |
|
55 } |
|
56 } |
|
57 } |
|
58 } |
|
59 #endregion |
|
60 |
|
61 #region Properties |
|
62 #endregion |
|
63 |
|
64 #region Data members |
|
65 #endregion |
|
66 } |
|
67 } |