summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Safar <marek.safar@gmail.com>2019-01-10 23:47:35 +0100
committerJan Kotas <jkotas@microsoft.com>2019-01-10 14:47:35 -0800
commit234bbb509e9ea8b08787fcd509edd6141e37d751 (patch)
tree69f1a209e64c68ae275db0c3136b5ba98944402c
parent15036527b060dccef9f3befe33af22346e6999cb (diff)
downloadcoreclr-234bbb509e9ea8b08787fcd509edd6141e37d751.tar.gz
coreclr-234bbb509e9ea8b08787fcd509edd6141e37d751.tar.bz2
coreclr-234bbb509e9ea8b08787fcd509edd6141e37d751.zip
Move public interface ISymDocumentWriter to shared location (#21931)
-rw-r--r--src/System.Private.CoreLib/System.Private.CoreLib.csproj1
-rw-r--r--src/System.Private.CoreLib/shared/System.Private.CoreLib.Shared.projitems1
-rw-r--r--src/System.Private.CoreLib/shared/System/Diagnostics/SymbolStore/ISymbolDocumentWriter.cs12
-rw-r--r--src/System.Private.CoreLib/src/System/Diagnostics/SymbolStore/ISymDocumentWriter.cs31
4 files changed, 13 insertions, 32 deletions
diff --git a/src/System.Private.CoreLib/System.Private.CoreLib.csproj b/src/System.Private.CoreLib/System.Private.CoreLib.csproj
index 5111d69bef..f57d62d6f2 100644
--- a/src/System.Private.CoreLib/System.Private.CoreLib.csproj
+++ b/src/System.Private.CoreLib/System.Private.CoreLib.csproj
@@ -158,7 +158,6 @@
<Compile Include="$(BclSourcesRoot)\System\Diagnostics\StackFrame.CoreCLR.cs" />
<Compile Include="$(BclSourcesRoot)\System\Diagnostics\StackFrameHelper.cs" />
<Compile Include="$(BclSourcesRoot)\System\Diagnostics\StackTrace.CoreCLR.cs" />
- <Compile Include="$(BclSourcesRoot)\System\Diagnostics\SymbolStore\ISymDocumentWriter.cs" />
<Compile Include="$(BclSourcesRoot)\System\Diagnostics\SymbolStore\ISymWriter.cs" />
<Compile Include="$(BclSourcesRoot)\System\Diagnostics\SymbolStore\SymAddressKind.cs" />
<Compile Include="$(BclSourcesRoot)\System\Diagnostics\SymbolStore\Token.cs" />
diff --git a/src/System.Private.CoreLib/shared/System.Private.CoreLib.Shared.projitems b/src/System.Private.CoreLib/shared/System.Private.CoreLib.Shared.projitems
index 45e8cbc273..bd67504204 100644
--- a/src/System.Private.CoreLib/shared/System.Private.CoreLib.Shared.projitems
+++ b/src/System.Private.CoreLib/shared/System.Private.CoreLib.Shared.projitems
@@ -200,6 +200,7 @@
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\StackFrame.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\StackTrace.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\StackTraceHiddenAttribute.cs" />
+ <Compile Include="$(MSBuildThisFileDirectory)System\Diagnostics\SymbolStore\ISymbolDocumentWriter.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\DivideByZeroException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\DllNotFoundException.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Double.cs" />
diff --git a/src/System.Private.CoreLib/shared/System/Diagnostics/SymbolStore/ISymbolDocumentWriter.cs b/src/System.Private.CoreLib/shared/System/Diagnostics/SymbolStore/ISymbolDocumentWriter.cs
new file mode 100644
index 0000000000..4980ed76f6
--- /dev/null
+++ b/src/System.Private.CoreLib/shared/System/Diagnostics/SymbolStore/ISymbolDocumentWriter.cs
@@ -0,0 +1,12 @@
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for more information.
+
+namespace System.Diagnostics.SymbolStore
+{
+ public interface ISymbolDocumentWriter
+ {
+ void SetCheckSum(Guid algorithmId, byte[] checkSum);
+ void SetSource(byte[] source);
+ }
+}
diff --git a/src/System.Private.CoreLib/src/System/Diagnostics/SymbolStore/ISymDocumentWriter.cs b/src/System.Private.CoreLib/src/System/Diagnostics/SymbolStore/ISymDocumentWriter.cs
deleted file mode 100644
index 09a7a3b0b0..0000000000
--- a/src/System.Private.CoreLib/src/System/Diagnostics/SymbolStore/ISymDocumentWriter.cs
+++ /dev/null
@@ -1,31 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-// See the LICENSE file in the project root for more information.
-
-/*============================================================
-**
-**
-**
-** Represents a document referenced by a symbol store. A document is
-** defined by a URL and a document type GUID. Document source can
-** optionally be stored in the symbol store.
-**
-**
-===========================================================*/
-
-using System;
-
-namespace System.Diagnostics.SymbolStore
-{
- // Interface does not need to be marked with the serializable attribute
- public interface ISymbolDocumentWriter
- {
- // SetSource will store the raw source for a document into the
- // 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);
- }
-}