Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(90)

Unified Diff: experimental/visual_studio_plugin/src/SymbolDBViewer/DIECapableLoader.cs

Issue 10928195: First round of dead file removal (Closed) Base URL: https://github.com/samclegg/nativeclient-sdk.git@master
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: experimental/visual_studio_plugin/src/SymbolDBViewer/DIECapableLoader.cs
diff --git a/experimental/visual_studio_plugin/src/SymbolDBViewer/DIECapableLoader.cs b/experimental/visual_studio_plugin/src/SymbolDBViewer/DIECapableLoader.cs
deleted file mode 100644
index 7ea23a8d858ab4c23a192171fcd45c1cb2f72524..0000000000000000000000000000000000000000
--- a/experimental/visual_studio_plugin/src/SymbolDBViewer/DIECapableLoader.cs
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright (c) 2011 The Native Client Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#region
-
-using System.Collections.Generic;
-using System.Windows.Forms;
-using Google.NaClVsx.DebugSupport.DWARF;
-using NaClVsx;
-
-#endregion
-
-namespace SymbolDBViewer {
- /// <summary>
- /// Extends DictionaryLoader with some functionality that comes in handy for
- /// loaders that have to parse DIE entries.
- /// </summary>
- /// <typeparam name = "TEntryType">The dictionary entry type to be parsed.
- /// </typeparam>
- public class DIECapableLoader<TEntryType> : DictionaryLoader<TEntryType> {
- /// <summary>
- /// Builds a TreeNode representation of a DIE's Attributes. This
- /// function lives in the base class because it is used multiple times.
- /// </summary>
- /// <param name = "attributes">The attributes to depict.</param>
- /// <returns>The new TreeNode.</returns>
- protected static TreeNode GetDIEAttributesNode(
- Dictionary<DwarfAttribute, object> attributes) {
- var attributesNode = new TreeNode("Attributes");
- if (attributes != null) {
- foreach (var attribute in attributes) {
- var name = GetString(attribute.Key);
- var value = GetString(attribute.Value);
- attributesNode.Nodes.Add(name, string.Format("{0}: {1}", name, value));
- }
- }
- return attributesNode;
- }
-
- /// <summary>
- /// Builds a TreeNode representation of a DIE's values. This function
- /// lives in the base class because it is used multiple times.
- /// </summary>
- /// <param name = "entry">The DIE whose values to depict.</param>
- /// <returns>A new TreeNode</returns>
- protected static TreeNode GetDIEValuesNode(DebugInfoEntry entry) {
- var valuesNode = new TreeNode("null");
- if (entry != null) {
- var valuesString = string.Format(
- "Values: Key: {0} Outer Scope: {1} Parent: {2} Tag: {3}",
- entry.Key,
- entry.OuterScope,
- entry.ParentKey,
- entry.Tag);
- valuesNode.Name = valuesString;
- valuesNode.Text = valuesString;
- }
- return valuesNode;
- }
- }
-}

Powered by Google App Engine
This is Rietveld 408576698