Imported Upstream version 3.6.0

Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
This commit is contained in:
Jo Shields
2014-08-13 10:39:27 +01:00
commit a575963da9
50588 changed files with 8155799 additions and 0 deletions

View File

@@ -0,0 +1,59 @@
2008-04-02 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
* SymbolToken.cs: Fix parameter names
2007-08-08 Atsushi Enomoto <atsushi@ximian.com>
* SymbolToken.cs : added 2.0 operator overloads.
2007-05-16 Dick Porter <dick@ximian.com>
* ISymbolBinder.cs:
* ISymbolBinder1.cs:
* ISymbolDocument.cs:
* ISymbolDocumentWriter.cs:
* ISymbolMethod.cs:
* ISymbolNamespace.cs:
* ISymbolReader.cs:
* ISymbolScope.cs:
* ISymbolVariable.cs:
* ISymbolWriter.cs:
* SymDocumentType.cs:
* SymLanguageType.cs:
* SymLanguageVendor.cs:
* SymbolToken.cs:
* SymAddressKind.cs: Update to 2.0 profile
2003-07-06 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
* SymbolToken.cs: Implemented missing members, style changes
2002-03-20 Martin Baulig <martin@gnome.org>
* SymbolToken.cs (GetToken): Implemented.
2002-03-05 Duncan Mak <duncan@ximian.com>
* ISymbolWriter.cs:
(DefineParameter) corrected typo in argument type.
(SetMethodSourceRange): Fixed typo in method name.
* ISymbolDocument.cs:
(CheckSumAlgorithmId) Fixed typo.
* ISymbolNamespace.cs:
(GetVariable) Added missing method.
2002-02-05 Duncan Mak <duncan@ximian.com>
* SymDocumentType.cs:
* SymLanguageType.cs:
* SymLanguageVendor.cs: Added to CVS.
2002-01-07 Duco Fijma <duco@lorentz.xs4all.nl>
* Finilized SymAddressKind enum
2002-01-06 Duco Fijma <duco@lorentz.xs4all.nl>
* Created SymAddressKind enum
* Created all interfaces
* Created dummy implementation for SymbolToken struct

View File

@@ -0,0 +1,43 @@
//
// System.Diagnostics.SymbolStore.ISymbolBinder
//
// Author:
// Duco Fijma (duco@lorentz.xs4all.nl)
//
// (c) 2002 Duco Fijma
//
//
// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System.Runtime.InteropServices;
namespace System.Diagnostics.SymbolStore
{
[ComVisible (true)]
public interface ISymbolBinder {
[Obsolete ("This interface is not 64-bit clean. Use ISymbolBinder1 instead")]
ISymbolReader GetReader (int importer, string filename, string searchPath);
}
}

View File

@@ -0,0 +1,39 @@
//
// System.Diagnostics.SymbolStore.ISymbolBinder1
//
// Author:
// Dick Porter (dick@ximian.com)
//
//
// Copyright (C) 2007 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System.Runtime.InteropServices;
namespace System.Diagnostics.SymbolStore
{
[ComVisible (true)]
public interface ISymbolBinder1 {
ISymbolReader GetReader (IntPtr importer, string filename, string searchPath);
}
}

View File

@@ -0,0 +1,52 @@
//
// System.Diagnostics.SymbolStore.ISymbolDocument
//
// Author:
// Duco Fijma (duco@lorentz.xs4all.nl)
//
// (c) 2002 Duco Fijma
//
//
// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System.Runtime.InteropServices;
namespace System.Diagnostics.SymbolStore
{
[ComVisible (true)]
public interface ISymbolDocument {
Guid CheckSumAlgorithmId {get; }
Guid DocumentType {get; }
bool HasEmbeddedSource {get; }
Guid Language {get; }
Guid LanguageVendor {get; }
int SourceLength {get; }
string URL {get; }
int FindClosestLine (int line);
byte[] GetCheckSum ();
byte[] GetSourceRange (int startLine, int startColumn, int endLine, int endColumn);
}
}

View File

@@ -0,0 +1,34 @@
//
// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Runtime.InteropServices;
namespace System.Diagnostics.SymbolStore
{
[ComVisible (true)]
public interface ISymbolDocumentWriter {
void SetCheckSum (Guid algorithmId, byte[] checkSum);
void SetSource (byte[] source);
}
}

View File

@@ -0,0 +1,60 @@
//
// System.Diagnostics.SymbolStore.ISymbolMethod
//
// Author:
// Duco Fijma (duco@lorentz.xs4all.nl)
//
// (c) 2002 Duco Fijma
//
//
// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System.Runtime.InteropServices;
namespace System.Diagnostics.SymbolStore
{
[ComVisible (true)]
public interface ISymbolMethod {
ISymbolScope RootScope {get; }
int SequencePointCount {get; }
SymbolToken Token {get; }
ISymbolNamespace GetNamespace ();
int GetOffset (ISymbolDocument document, int line, int column);
ISymbolVariable[] GetParameters ();
int[] GetRanges (ISymbolDocument document, int line, int column);
ISymbolScope GetScope (int offset);
void GetSequencePoints (
int[] offsets,
ISymbolDocument[] documents,
int[] lines,
int[] columns,
int[] endLines,
int[] endColumns);
bool GetSourceStartEnd (
ISymbolDocument[] docs,
int[] lines,
int[] columns);
}
}

View File

@@ -0,0 +1,44 @@
//
// System.Diagnostics.SymbolStore.ISymbolNamespace
//
// Author:
// Duco Fijma (duco@lorentz.xs4all.nl)
//
// (c) 2002 Duco Fijma
//
//
// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System.Runtime.InteropServices;
namespace System.Diagnostics.SymbolStore
{
[ComVisible (true)]
public interface ISymbolNamespace {
string Name {get ;}
ISymbolNamespace[] GetNamespaces ();
ISymbolVariable[] GetVariables ();
}
}

View File

@@ -0,0 +1,60 @@
//
// System.Diagnostics.SymbolStore.ISymbolReader
//
// Author:
// Duco Fijma (duco@lorentz.xs4all.nl)
//
// (c) 2002 Duco Fijma
//
//
// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System.Runtime.InteropServices;
namespace System.Diagnostics.SymbolStore
{
[ComVisible (true)]
public interface ISymbolReader {
SymbolToken UserEntryPoint {get; }
ISymbolDocument GetDocument (
string url,
Guid language,
Guid languageVendor,
Guid documentType);
ISymbolDocument[] GetDocuments ();
ISymbolVariable[] GetGlobalVariables ();
ISymbolMethod GetMethod (SymbolToken method);
ISymbolMethod GetMethod (SymbolToken method, int version);
ISymbolMethod GetMethodFromDocumentPosition (
ISymbolDocument document,
int line,
int column);
ISymbolNamespace[] GetNamespaces ();
byte[] GetSymAttribute (SymbolToken parent, string name);
ISymbolVariable[] GetVariables (SymbolToken parent);
}
}

View File

@@ -0,0 +1,48 @@
//
// System.Diagnostics.SymbolStore.ISymbolScope
//
// Author:
// Duco Fijma (duco@lorentz.xs4all.nl)
//
// (c) 2002 Duco Fijma
//
//
// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System.Runtime.InteropServices;
namespace System.Diagnostics.SymbolStore
{
[ComVisible (true)]
public interface ISymbolScope {
int EndOffset {get ;}
ISymbolMethod Method {get; }
ISymbolScope Parent {get ;}
int StartOffset {get ;}
ISymbolScope[] GetChildren ();
ISymbolVariable[] GetLocals ();
ISymbolNamespace[] GetNamespaces ();
}
}

View File

@@ -0,0 +1,50 @@
//
// System.Diagnostics.SymbolStore.ISymbolVariable
//
// Author:
// Duco Fijma (duco@lorentz.xs4all.nl)
//
// (c) 2002 Duco Fijma
//
//
// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System.Runtime.InteropServices;
namespace System.Diagnostics.SymbolStore
{
[ComVisible (true)]
public interface ISymbolVariable {
int AddressField1 {get; }
int AddressField2 {get; }
int AddressField3 {get; }
SymAddressKind AddressKind {get ;}
object Attributes {get ;}
int EndOffset {get; }
string Name {get; }
int StartOffset {get; }
byte[] GetSignature ();
}
}

View File

@@ -0,0 +1,108 @@
//
// System.Diagnostics.SymbolStore.ISymbolWriter
//
// Author:
// Duco Fijma (duco@lorentz.xs4all.nl)
//
// (c) 2002 Duco Fijma
//
//
// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System.Reflection;
using System.Runtime.InteropServices;
namespace System.Diagnostics.SymbolStore
{
[ComVisible (true)]
public interface ISymbolWriter {
void Close ();
void CloseMethod ();
void CloseNamespace ();
void CloseScope (int endOffset);
ISymbolDocumentWriter DefineDocument(
string url,
Guid language,
Guid languageVendor,
Guid documentType);
void DefineField (
SymbolToken parent,
string name,
FieldAttributes attributes,
byte[] signature,
SymAddressKind addrKind,
int addr1,
int addr2,
int addr3);
void DefineGlobalVariable (
string name,
FieldAttributes attributes,
byte[] signature,
SymAddressKind addrKind,
int addr1,
int addr2,
int addr3);
void DefineLocalVariable (
string name,
FieldAttributes attributes,
byte[] signature,
SymAddressKind addrKind,
int addr1,
int addr2,
int addr3,
int startOffset,
int endOffset);
void DefineParameter (
string name,
ParameterAttributes attributes,
int sequence,
SymAddressKind addrKind,
int addr1,
int addr2,
int addr3);
void DefineSequencePoints (
ISymbolDocumentWriter document,
int[] offsets,
int[] lines,
int[] columns,
int[] endLines,
int[] endColumns);
void Initialize (IntPtr emitter, string filename, bool fFullBuild);
void OpenMethod (SymbolToken method);
void OpenNamespace (string name);
int OpenScope (int startOffset);
void SetMethodSourceRange (
ISymbolDocumentWriter startDoc,
int startLine,
int startColumn,
ISymbolDocumentWriter endDoc,
int endLine,
int endColumn);
void SetScopeRange (int scopeID, int startOffset, int endOffset);
void SetSymAttribute (SymbolToken parent, string name, byte[] data);
void SetUnderlyingWriter (IntPtr underlyingWriter);
void SetUserEntryPoint (SymbolToken entryMethod);
void UsingNamespace (string fullName);
}
}

View File

@@ -0,0 +1,51 @@
//
// System.Diagnostics.SymbolStore.SymAddressKind
//
// Author:
// Duco Fijma (duco@lorentz.xs4all.nl)
//
// (c) 2002 Duco Fijma
//
//
// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System.Runtime.InteropServices;
namespace System.Diagnostics.SymbolStore
{
[ComVisible (true)]
[Serializable]
public enum SymAddressKind {
ILOffset = 1,
NativeRVA = 2,
NativeRegister = 3,
NativeRegisterRelative = 4,
NativeOffset = 5,
NativeRegisterRegister = 6,
NativeRegisterStack = 7,
NativeStackRegister = 8,
BitField = 9,
NativeSectionOffset = 10
}
}

View File

@@ -0,0 +1,47 @@
//
// System.Diagnostics.SymbolStore.SymDocumentType.cs
//
// Author: Duncan Mak (duncan@ximian.com)
//
// (C) Ximian, Inc. http://www.ximian.com
//
//
// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System.Runtime.InteropServices;
namespace System.Diagnostics.SymbolStore
{
[ComVisible (true)]
public class SymDocumentType
{
// Constructors
public SymDocumentType ()
{
}
// Fields
public static readonly Guid Text;
}
}

View File

@@ -0,0 +1,57 @@
//
// System.Diagnostics.SymbolStore.SymLanguageType.cs
//
// Author: Duncan Mak (duncan@ximian.com)
//
// (C) Ximian, Inc. http://www.ximian.com
//
//
// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System.Runtime.InteropServices;
namespace System.Diagnostics.SymbolStore
{
[ComVisible (true)]
public class SymLanguageType
{
// Constructors
public SymLanguageType ()
{
}
// Fields
public static readonly Guid Basic;
public static readonly Guid C;
public static readonly Guid Cobol;
public static readonly Guid CPlusPlus;
public static readonly Guid CSharp;
public static readonly Guid ILAssembly;
public static readonly Guid Java;
public static readonly Guid JScript;
public static readonly Guid MCPlusPlus;
public static readonly Guid Pascal;
public static readonly Guid SMC;
}
}

View File

@@ -0,0 +1,47 @@
//
// System.Diagnostics.SymbolStore.SymLanguageVendor.cs
//
// Author: Duncan Mak (duncan@ximian.com)
//
// (C) Ximian, Inc. http://www.ximian.com
//
//
// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System.Runtime.InteropServices;
namespace System.Diagnostics.SymbolStore
{
[ComVisible (true)]
public class SymLanguageVendor
{
// Constructors
public SymLanguageVendor ()
{
}
// Fields
public static readonly Guid Microsoft;
}
}

View File

@@ -0,0 +1,83 @@
//
// System.Diagnostics.SymbolStore.SymbolToken.cs
//
// Authors:
// Duco Fijma (duco@lorentz.xs4all.nl)
// Andreas Nahr (ClassDevelopment@A-SoftTech.com)
//
// (c) 2002 Duco Fijma
// (C) 2003 Andreas Nahr
//
//
// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System.Runtime.InteropServices;
namespace System.Diagnostics.SymbolStore
{
[ComVisible (true)]
public struct SymbolToken
{
private int _val;
public SymbolToken (int val)
{
_val = val;
}
public override bool Equals (object obj)
{
if (!(obj is SymbolToken))
return false;
return ((SymbolToken) obj).GetToken() == _val;
}
public bool Equals (SymbolToken obj)
{
return(obj.GetToken () == _val);
}
public static bool operator == (SymbolToken a, SymbolToken b)
{
return a.Equals (b);
}
public static bool operator != (SymbolToken a, SymbolToken b)
{
return !a.Equals (b);
}
public override int GetHashCode()
{
return _val.GetHashCode();
}
public int GetToken()
{
return _val;
}
}
}