OLD | NEW |
| (Empty) |
1 // Copyright (c) 2011 The Native Client Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #region | |
6 | |
7 using System.Windows.Forms; | |
8 using Google.NaClVsx.DebugSupport.DWARF; | |
9 | |
10 #endregion | |
11 | |
12 namespace SymbolDBViewer { | |
13 /// <summary> | |
14 /// Specializes the DictionaryLoader for loading the DebugInfoEntries. | |
15 /// </summary> | |
16 public class DIELoader : DIECapableLoader<DebugInfoEntry> { | |
17 protected override TreeNode GetTreeNode(ulong key, DebugInfoEntry die) { | |
18 var dieNode = new TreeNode(); | |
19 var keyString = GetString(key); | |
20 dieNode.Name = keyString; | |
21 dieNode.Text = @"DIE: " + keyString; | |
22 dieNode.Nodes.Add(GetDIEValuesNode(die)); | |
23 var attributesNode = GetDIEAttributesNode(die.Attributes); | |
24 dieNode.Nodes.Add(attributesNode); | |
25 return dieNode; | |
26 } | |
27 } | |
28 } | |
OLD | NEW |