summaryrefslogtreecommitdiff
path: root/src/mscorlib/src/System/Diagnostics/SymbolStore
diff options
context:
space:
mode:
authorJiyoung Yun <jy910.yun@samsung.com>2017-04-13 14:17:19 +0900
committerJiyoung Yun <jy910.yun@samsung.com>2017-04-13 14:17:19 +0900
commita56e30c8d33048216567753d9d3fefc2152af8ac (patch)
tree7e5d979695fc4a431740982eb1cfecc2898b23a5 /src/mscorlib/src/System/Diagnostics/SymbolStore
parent4b11dc566a5bbfa1378d6266525c281b028abcc8 (diff)
downloadcoreclr-a56e30c8d33048216567753d9d3fefc2152af8ac.tar.gz
coreclr-a56e30c8d33048216567753d9d3fefc2152af8ac.tar.bz2
coreclr-a56e30c8d33048216567753d9d3fefc2152af8ac.zip
Imported Upstream version 2.0.0.11353upstream/2.0.0.11353
Diffstat (limited to 'src/mscorlib/src/System/Diagnostics/SymbolStore')
-rw-r--r--src/mscorlib/src/System/Diagnostics/SymbolStore/ISymDocumentWriter.cs11
-rw-r--r--src/mscorlib/src/System/Diagnostics/SymbolStore/ISymWriter.cs33
-rw-r--r--src/mscorlib/src/System/Diagnostics/SymbolStore/SymAddressKind.cs24
-rw-r--r--src/mscorlib/src/System/Diagnostics/SymbolStore/Token.cs25
4 files changed, 48 insertions, 45 deletions
diff --git a/src/mscorlib/src/System/Diagnostics/SymbolStore/ISymDocumentWriter.cs b/src/mscorlib/src/System/Diagnostics/SymbolStore/ISymDocumentWriter.cs
index a1a2366c0a..09a7a3b0b0 100644
--- a/src/mscorlib/src/System/Diagnostics/SymbolStore/ISymDocumentWriter.cs
+++ b/src/mscorlib/src/System/Diagnostics/SymbolStore/ISymDocumentWriter.cs
@@ -12,10 +12,11 @@
**
**
===========================================================*/
-namespace System.Diagnostics.SymbolStore {
-
- using System;
-
+
+using System;
+
+namespace System.Diagnostics.SymbolStore
+{
// Interface does not need to be marked with the serializable attribute
public interface ISymbolDocumentWriter
{
@@ -23,7 +24,7 @@ namespace System.Diagnostics.SymbolStore {
// symbol store. An array of unsigned bytes is used instead of
// character data to accommodate a wider variety of "source".
void SetSource(byte[] source);
-
+
// Check sum support.
void SetCheckSum(Guid algorithmId, byte[] checkSum);
}
diff --git a/src/mscorlib/src/System/Diagnostics/SymbolStore/ISymWriter.cs b/src/mscorlib/src/System/Diagnostics/SymbolStore/ISymWriter.cs
index bfe9133aee..fa2a59797a 100644
--- a/src/mscorlib/src/System/Diagnostics/SymbolStore/ISymWriter.cs
+++ b/src/mscorlib/src/System/Diagnostics/SymbolStore/ISymWriter.cs
@@ -11,18 +11,18 @@
**
**
===========================================================*/
-namespace System.Diagnostics.SymbolStore {
-
- using System;
- using System.Text;
- using System.Reflection;
- using System.Runtime.InteropServices;
- using System.Runtime.Versioning;
+using System;
+using System.Text;
+using System.Reflection;
+using System.Runtime.InteropServices;
+using System.Runtime.Versioning;
+
+namespace System.Diagnostics.SymbolStore
+{
// Interface does not need to be marked with the serializable attribute
internal interface ISymbolWriter
{
-
// Define a source document. Guid's will be provided for the
// languages, vendors, and document types that we currently know
// about.
@@ -30,7 +30,7 @@ namespace System.Diagnostics.SymbolStore {
Guid language,
Guid languageVendor,
Guid documentType);
-
+
// Open a method to emit symbol information into. The given method
// becomes the current method for calls do define sequence points,
// parameters and lexical scopes. There is an implicit lexical
@@ -40,11 +40,11 @@ namespace System.Diagnostics.SymbolStore {
//
// There can be only one open method at a time.
void OpenMethod(SymbolToken method);
-
+
// Close the current method. Once a method is closed, no more
// symbols can be defined within it.
void CloseMethod();
-
+
// Define a group of sequence points within the current method.
// Each line/column defines the start of a statement within a
// method. The arrays should be sorted by offset. The offset is
@@ -55,7 +55,7 @@ namespace System.Diagnostics.SymbolStore {
int[] columns,
int[] endLines,
int[] endColumns);
-
+
// Open a new lexical scope in the current method. The scope
// becomes the new current scope and is effectivley pushed onto a
// stack of scopes. startOffset is the offset, in bytes from the
@@ -72,12 +72,12 @@ namespace System.Diagnostics.SymbolStore {
//
int OpenScope(int startOffset);
-
+
// Close the current lexical scope. Once a scope is closed no more
// variables can be defined within it. endOffset points past the
// last instruction in the scope.
void CloseScope(int endOffset);
-
+
// Define a single variable in the current lexical
// scope. startOffset and endOffset are optional. If 0, then they
// are ignored and the variable is defined over the entire
@@ -95,12 +95,12 @@ namespace System.Diagnostics.SymbolStore {
int addr3,
int startOffset,
int endOffset);
-
+
// Defines a custom attribute based upon its name. Not to be
// confused with Metadata custom attributes, these attributes are
// held in the symbol store.
void SetSymAttribute(SymbolToken parent, String name, byte[] data);
-
+
// Specifies that the given, fully qualified namespace name is
// being used within the currently open lexical scope. Closing the
// current scope will also stop using the namespace, and the
@@ -108,5 +108,4 @@ namespace System.Diagnostics.SymbolStore {
// currently open scope.
void UsingNamespace(String fullName);
}
-
}
diff --git a/src/mscorlib/src/System/Diagnostics/SymbolStore/SymAddressKind.cs b/src/mscorlib/src/System/Diagnostics/SymbolStore/SymAddressKind.cs
index bb50d9841b..c4c1ede525 100644
--- a/src/mscorlib/src/System/Diagnostics/SymbolStore/SymAddressKind.cs
+++ b/src/mscorlib/src/System/Diagnostics/SymbolStore/SymAddressKind.cs
@@ -11,37 +11,39 @@
**
**
===========================================================*/
-namespace System.Diagnostics.SymbolStore {
- // Only statics, does not need to be marked with the serializable attribute
- using System;
+// Only statics, does not need to be marked with the serializable attribute
+using System;
+
+namespace System.Diagnostics.SymbolStore
+{
[Serializable]
internal enum SymAddressKind
{
// ILOffset: addr1 = IL local var or param index.
ILOffset = 1,
-
+
// NativeRVA: addr1 = RVA into module.
NativeRVA = 2,
-
+
// NativeRegister: addr1 = register the var is stored in.
NativeRegister = 3,
-
+
// NativeRegisterRelative: addr1 = register, addr2 = offset.
NativeRegisterRelative = 4,
-
+
// NativeOffset: addr1 = offset from start of parent.
NativeOffset = 5,
-
+
// NativeRegisterRegister: addr1 = reg low, addr2 = reg high.
NativeRegisterRegister = 6,
-
+
// NativeRegisterStack: addr1 = reg low, addr2 = reg stk, addr3 = offset.
NativeRegisterStack = 7,
-
+
// NativeStackRegister: addr1 = reg stk, addr2 = offset, addr3 = reg high.
NativeStackRegister = 8,
-
+
// BitField: addr1 = field start, addr = field length.
BitField = 9,
diff --git a/src/mscorlib/src/System/Diagnostics/SymbolStore/Token.cs b/src/mscorlib/src/System/Diagnostics/SymbolStore/Token.cs
index cc1e4a865f..a6e6fdc0ef 100644
--- a/src/mscorlib/src/System/Diagnostics/SymbolStore/Token.cs
+++ b/src/mscorlib/src/System/Diagnostics/SymbolStore/Token.cs
@@ -9,21 +9,22 @@
** around metadata tokens.
**
===========================================================*/
-namespace System.Diagnostics.SymbolStore {
-
- using System;
- using System.Runtime.InteropServices;
+using System;
+using System.Runtime.InteropServices;
+
+namespace System.Diagnostics.SymbolStore
+{
internal struct SymbolToken
{
internal int m_token;
-
- public SymbolToken(int val) {m_token=val;}
-
- public int GetToken() {return m_token;}
-
- public override int GetHashCode() {return m_token;}
-
+
+ public SymbolToken(int val) { m_token = val; }
+
+ public int GetToken() { return m_token; }
+
+ public override int GetHashCode() { return m_token; }
+
public override bool Equals(Object obj)
{
if (obj is SymbolToken)
@@ -31,7 +32,7 @@ namespace System.Diagnostics.SymbolStore {
else
return false;
}
-
+
public bool Equals(SymbolToken obj)
{
return obj.m_token == m_token;