Browse Source

Merged Corsavy r1138:1166 to trunk.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@1167 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Daniel Grunwald 20 years ago
parent
commit
bac1a5a209
  1. 3
      src/AddIns/BackendBindings/Boo/BooBinding/Project/Src/CodeCompletion/ConvertVisitor.cs
  2. 16
      src/AddIns/BackendBindings/Boo/BooBinding/Project/Src/Designer/CodeDomVisitor.cs
  3. 10
      src/AddIns/Misc/CodeCoverage/Test/AssemblyInfo.cs
  4. 1
      src/AddIns/Misc/CodeCoverage/Test/ZeroCodeCoverageTreeViewTestFixture.cs
  5. 29
      src/AddIns/Misc/Debugger/Debugger.AddIn/Project/Src/Service/DynamicTreeDebuggerRow.cs
  6. 257
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Debugger.Core.csproj
  7. 4
      src/AddIns/Misc/Debugger/Debugger.Core/Project/README.TXT
  8. 10
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Breakpoints/Breakpoint.cs
  9. 1
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Breakpoints/NDebugger-Breakpoints.cs
  10. 15
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Debugger/Internal/ManagedCallback.cs
  11. 21
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Debugger/Internal/ManagedCallbackProxy.cs
  12. 262
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Debugger/MetaData/MetaData.cs
  13. 3
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Debugger/NDebugger-StateControl.cs
  14. 14
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Debugger/NDebugger.cs
  15. 2
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorDebug/CorDebugExceptionCallbackType.cs
  16. 2
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorDebug/CorDebugExceptionUnwindCallbackType.cs
  17. 2
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorDebug/CorDebugStepReason.cs
  18. 2
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorDebug/ICorDebugManagedCallback.cs
  19. 6
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorDebug/ICorDebugManagedCallback2.cs
  20. 2
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorDebug/ICorDebugProcess.cs
  21. 27
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorSym/CorSymAddrKind.cs
  22. 17
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorSym/CorSymBinder_SxS.cs
  23. 28
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorSym/CorSymBinder_SxSClass.cs
  24. 17
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorSym/CorSymBinder_deprecated.cs
  25. 28
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorSym/CorSymBinder_deprecatedClass.cs
  26. 17
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorSym/CorSymReader_SxS.cs
  27. 75
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorSym/CorSymReader_SxSClass.cs
  28. 17
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorSym/CorSymReader_deprecated.cs
  29. 75
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorSym/CorSymReader_deprecatedClass.cs
  30. 21
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorSym/CorSymSearchPolicyAttributes.cs
  31. 18
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorSym/CorSymVarFlag.cs
  32. 17
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorSym/CorSymWriter_SxS.cs
  33. 93
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorSym/CorSymWriter_SxSClass.cs
  34. 17
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorSym/CorSymWriter_deprecated.cs
  35. 93
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorSym/CorSymWriter_deprecatedClass.cs
  36. 23
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorSym/ISequentialStream.cs
  37. 41
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorSym/IStream.cs
  38. 25
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorSym/ISymUnmanagedBinder.cs
  39. 39
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorSym/ISymUnmanagedDocument.cs
  40. 23
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorSym/ISymUnmanagedDocumentWriter.cs
  41. 41
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorSym/ISymUnmanagedMethod.cs
  42. 25
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorSym/ISymUnmanagedNamespace.cs
  43. 57
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorSym/ISymUnmanagedReader.cs
  44. 23
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorSym/ISymUnmanagedReaderSymbolSearchInfo.cs
  45. 37
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorSym/ISymUnmanagedScope.cs
  46. 25
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorSym/ISymUnmanagedSymbolSearchInfo.cs
  47. 37
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorSym/ISymUnmanagedVariable.cs
  48. 68
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorSym/ISymUnmanagedWriter.cs
  49. 74
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorSym/ISymUnmanagedWriter2.cs
  50. 20
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorSym/_FILETIME.cs
  51. 19
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorSym/_LARGE_INTEGER.cs
  52. 19
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorSym/_ULARGE_INTEGER.cs
  53. 30
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorSym/tagSTATSTG.cs
  54. 92
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Modules/Module.cs
  55. 1
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Threads/Exception.cs
  56. 81
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Threads/Function.cs
  57. 10
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Threads/Process.cs
  58. 24
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Threads/SourcecodeSegment.cs
  59. 1
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Threads/Thread.cs
  60. 2
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Variables/Evals/Eval.cs
  61. 2
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Variables/ObjectValue.cs
  62. 71
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Variables/PrimitiveValue.cs
  63. 21
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Variables/Value.cs
  64. 20
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/CorDebug.cs
  65. 2
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/CorDebugChainReason.cs
  66. 20
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/CorDebugClass.cs
  67. 2
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/CorDebugCreateProcessFlags.cs
  68. 2
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/CorDebugHandleType.cs
  69. 2
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/CorDebugIntercept.cs
  70. 2
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/CorDebugInternalFrameType.cs
  71. 2
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/CorDebugMDAFlags.cs
  72. 2
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/CorDebugMappingResult.cs
  73. 2
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/CorDebugRegister.cs
  74. 2
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/CorDebugThreadState.cs
  75. 2
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/CorDebugUnmappedStop.cs
  76. 2
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/CorDebugUserState.cs
  77. 20
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/EmbeddedCLRCorDebug.cs
  78. 20
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/EmbeddedCLRCorDebugClass.cs
  79. 20
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/ICorDebug.cs
  80. 20
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/ICorDebugAppDomain.cs
  81. 20
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/ICorDebugAppDomain2.cs
  82. 20
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/ICorDebugAppDomainEnum.cs
  83. 20
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/ICorDebugArrayValue.cs
  84. 20
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/ICorDebugAssembly.cs
  85. 20
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/ICorDebugAssemblyEnum.cs
  86. 20
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/ICorDebugBoxValue.cs
  87. 20
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/ICorDebugBreakpoint.cs
  88. 20
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/ICorDebugBreakpointEnum.cs
  89. 20
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/ICorDebugChain.cs
  90. 20
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/ICorDebugChainEnum.cs
  91. 20
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/ICorDebugClass.cs
  92. 20
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/ICorDebugClass2.cs
  93. 20
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/ICorDebugCode.cs
  94. 20
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/ICorDebugCodeEnum.cs
  95. 20
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/ICorDebugContext.cs
  96. 20
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/ICorDebugController.cs
  97. 20
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/ICorDebugEditAndContinueSnapshot.cs
  98. 20
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/ICorDebugEnum.cs
  99. 20
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/ICorDebugErrorInfoEnum.cs
  100. 20
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/ICorDebugEval.cs
  101. Some files were not shown because too many files have changed in this diff Show More

3
src/AddIns/BackendBindings/Boo/BooBinding/Project/Src/CodeCompletion/ConvertVisitor.cs

@ -302,6 +302,9 @@ namespace Grunwald.BooBinding.CodeCompletion @@ -302,6 +302,9 @@ namespace Grunwald.BooBinding.CodeCompletion
c.Methods.Add(invokeMethod);
invokeMethod = new DefaultMethod("BeginInvoke", CreateReturnType(typeof(IAsyncResult)), ModifierEnum.Public, DomRegion.Empty, DomRegion.Empty, c);
ConvertParameters(node.Parameters, invokeMethod);
if (invokeMethod.Parameters == DefaultParameter.EmptyParameterList) {
invokeMethod.Parameters = new List<IParameter>();
}
invokeMethod.Parameters.Add(new DefaultParameter("callback", CreateReturnType(typeof(AsyncCallback)), DomRegion.Empty));
invokeMethod.Parameters.Add(new DefaultParameter("object", ReflectionReturnType.Object, DomRegion.Empty));
c.Methods.Add(invokeMethod);

16
src/AddIns/BackendBindings/Boo/BooBinding/Project/Src/Designer/CodeDomVisitor.cs

@ -198,6 +198,7 @@ namespace Grunwald.BooBinding.Designer @@ -198,6 +198,7 @@ namespace Grunwald.BooBinding.Designer
_class.Members.Add(method);
}
public override void OnBinaryExpression(BinaryExpression node)
{
BinaryOperatorType op = node.Operator;
@ -223,6 +224,20 @@ namespace Grunwald.BooBinding.Designer @@ -223,6 +224,20 @@ namespace Grunwald.BooBinding.Designer
LoggingService.Warn("CodeDomVisitor: ignoring unknown Binary Operator" + op);
}
}
public override void OnTryCastExpression(TryCastExpression node)
{
_expression = null;
node.Target.Accept(this);
if (_expression == null)
return;
if (_expression is CodeMethodReferenceExpression) {
_expression = new CodeObjectCreateExpression(ConvTypeRef(node.Type), _expression);
} else {
_expression = new CodeCastExpression(ConvTypeRef(node.Type), _expression);
}
}
public override void OnCastExpression(CastExpression node)
{
_expression = null;
@ -235,6 +250,7 @@ namespace Grunwald.BooBinding.Designer @@ -235,6 +250,7 @@ namespace Grunwald.BooBinding.Designer
_expression = new CodeCastExpression(ConvTypeRef(node.Type), _expression);
}
}
public override void OnBlock(Block node)
{
foreach (Statement n in node.Statements)

10
src/AddIns/Misc/CodeCoverage/Test/AssemblyInfo.cs

@ -1,4 +1,11 @@ @@ -1,4 +1,11 @@
using System.Reflection;
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="Matthew Ward" email="mrward@users.sourceforge.net"/>
// <version>$Revision$</version>
// </file>
using System.Reflection;
using System.Runtime.CompilerServices;
// Information about this assembly is defined by the following
@ -24,4 +31,3 @@ using System.Runtime.CompilerServices; @@ -24,4 +31,3 @@ using System.Runtime.CompilerServices;
// numbers with the '*' character (the default):
[assembly: AssemblyVersion("2.0.0.1")]

1
src/AddIns/Misc/CodeCoverage/Test/ZeroCodeCoverageTreeViewTestFixture.cs

@ -110,4 +110,3 @@ namespace ICSharpCode.CodeCoverage.Tests @@ -110,4 +110,3 @@ namespace ICSharpCode.CodeCoverage.Tests
}
}
}

29
src/AddIns/Misc/Debugger/Debugger.AddIn/Project/Src/Service/DynamicTreeDebuggerRow.cs

@ -37,6 +37,15 @@ namespace ICSharpCode.SharpDevelop.Services @@ -37,6 +37,15 @@ namespace ICSharpCode.SharpDevelop.Services
}
}
public bool ShowValuesInHexadecimal {
get {
return ((WindowsDebugger)DebuggerService.CurrentDebugger).Properties.Get("ShowValuesInHexadecimal", false);
}
set {
((WindowsDebugger)DebuggerService.CurrentDebugger).Properties.Set("ShowValuesInHexadecimal", value);
}
}
public DynamicTreeDebuggerRow()
{
}
@ -68,10 +77,15 @@ namespace ICSharpCode.SharpDevelop.Services @@ -68,10 +77,15 @@ namespace ICSharpCode.SharpDevelop.Services
image = DebuggerIcons.GetImage(variable);
this[1].Text = ""; // Icon
this[2].Text = variable.Name;
this[3].Text = variable.Value.AsString;
if (ShowValuesInHexadecimal && variable.Value is PrimitiveValue && variable.Value.IsInteger) {
this[3].Text = String.Format("0x{0:X}", (variable.Value as PrimitiveValue).Primitive);
} else {
this[3].Text = variable.Value.AsString;
}
this[3].AllowLabelEdit = variable.Value is PrimitiveValue &&
variable.Value.ManagedType != typeof(string) &&
!(variable is PropertyVariable);
!(variable is PropertyVariable) &&
!ShowValuesInHexadecimal;
this.ShowPlus = variable.Value.MayHaveSubVariables;
this.ShowMinusWhileExpanded = true;
@ -108,8 +122,17 @@ namespace ICSharpCode.SharpDevelop.Services @@ -108,8 +122,17 @@ namespace ICSharpCode.SharpDevelop.Services
ClipboardWrapper.SetText(((DynamicListItem)sender).Text);
};
ToolStripMenuItem hewView;
hewView = new ToolStripMenuItem();
hewView.Text = "Show values in hexadecimal";
hewView.Checked = ShowValuesInHexadecimal;
hewView.Click += delegate {
ShowValuesInHexadecimal = !ShowValuesInHexadecimal;
};
menu.Items.AddRange(new ToolStripItem[] {
copyItem
copyItem,
hewView
});
menu.Show(e.List, e.Location);

257
src/AddIns/Misc/Debugger/Debugger.Core/Project/Debugger.Core.csproj

@ -57,13 +57,6 @@ @@ -57,13 +57,6 @@
<Compile Include="Src\Debugger\Internal\ManagedCallback.cs" />
<Compile Include="Src\Debugger\Internal\ManagedCallbackProxy.cs" />
<Compile Include="Src\Debugger\Internal\MTA2STA.cs" />
<Compile Include="Src\Debugger\Internal\NativeMethods.cs" />
<Compile Include="Src\Debugger\MetaData\FieldProps.cs" />
<Compile Include="Src\Debugger\MetaData\MetaData.cs" />
<Compile Include="Src\Debugger\MetaData\MethodProps.cs" />
<Compile Include="Src\Debugger\MetaData\ParamProps.cs" />
<Compile Include="Src\Debugger\MetaData\TypeDefProps.cs" />
<Compile Include="Src\Debugger\MetaData\TypeRefProps.cs" />
<Compile Include="Src\Debugger\NDebugger.cs" />
<Compile Include="Src\Interop enums\ClassFieldAttribute.cs" />
<Compile Include="Src\Interop enums\CorCallingConvention.cs" />
@ -208,99 +201,183 @@ @@ -208,99 +201,183 @@
<Compile Include="Src\Threads\Stepper.cs" />
<Compile Include="Src\Threads\StepperEventArgs.cs" />
<Compile Include="Src\Variables\ClassVariable.cs" />
<Compile Include="Src\Wrappers\CorDebug\CorDebug.cs" />
<Compile Include="Src\Wrappers\CorDebug\CorDebugClass.cs" />
<Compile Include="Src\Wrappers\CorDebug\CorDebugCreateProcessFlags.cs" />
<Compile Include="Src\Wrappers\CorDebug\CorDebugExceptionCallbackType.cs" />
<Compile Include="Src\Wrappers\CorDebug\CorDebugExceptionUnwindCallbackType.cs" />
<Compile Include="Src\Wrappers\CorDebug\CorDebugHandleType.cs" />
<Compile Include="Src\Wrappers\CorDebug\CorDebugChainReason.cs" />
<Compile Include="Src\Wrappers\CorDebug\CorDebugIntercept.cs" />
<Compile Include="Src\Wrappers\CorDebug\CorDebugInternalFrameType.cs" />
<Compile Include="Src\Wrappers\CorDebug\CorDebugMappingResult.cs" />
<Compile Include="Src\Wrappers\CorDebug\CorDebugMDAFlags.cs" />
<Compile Include="Src\Wrappers\CorDebug\CorDebugRegister.cs" />
<Compile Include="Src\Wrappers\CorDebug\CorDebugStepReason.cs" />
<Compile Include="Src\Wrappers\CorDebug\CorDebugThreadState.cs" />
<Compile Include="Src\Wrappers\CorDebug\CorDebugUnmappedStop.cs" />
<Compile Include="Src\Wrappers\CorDebug\CorDebugUserState.cs" />
<Compile Include="Src\Wrappers\CorDebug\EmbeddedCLRCorDebug.cs" />
<Compile Include="Src\Wrappers\CorDebug\EmbeddedCLRCorDebugClass.cs" />
<Compile Include="Src\Wrappers\CorDebug\ICorDebug.cs" />
<Compile Include="Src\Wrappers\CorDebug\ICorDebugAppDomain.cs" />
<Compile Include="Src\Wrappers\CorDebug\ICorDebugAppDomain2.cs" />
<Compile Include="Src\Wrappers\CorDebug\ICorDebugAppDomainEnum.cs" />
<Compile Include="Src\Wrappers\CorDebug\ICorDebugArrayValue.cs" />
<Compile Include="Src\Wrappers\CorDebug\ICorDebugAssembly.cs" />
<Compile Include="Src\Wrappers\CorDebug\ICorDebugAssemblyEnum.cs" />
<Compile Include="Src\Wrappers\CorDebug\ICorDebugBoxValue.cs" />
<Compile Include="Src\Wrappers\CorDebug\ICorDebugBreakpoint.cs" />
<Compile Include="Src\Wrappers\CorDebug\ICorDebugBreakpointEnum.cs" />
<Compile Include="Src\Wrappers\CorDebug\ICorDebugClass.cs" />
<Compile Include="Src\Wrappers\CorDebug\ICorDebugClass2.cs" />
<Compile Include="Src\Wrappers\CorDebug\ICorDebugCode.cs" />
<Compile Include="Src\Wrappers\CorDebug\ICorDebugCodeEnum.cs" />
<Compile Include="Src\Wrappers\CorDebug\ICorDebugContext.cs" />
<Compile Include="Src\Wrappers\CorDebug\ICorDebugController.cs" />
<Compile Include="Src\Wrappers\CorDebug\ICorDebugEditAndContinueSnapshot.cs" />
<Compile Include="Src\Wrappers\CorDebug\ICorDebugEnum.cs" />
<Compile Include="Src\Wrappers\CorDebug\ICorDebugErrorInfoEnum.cs" />
<Compile Include="Src\Wrappers\CorDebug\ICorDebugEval.cs" />
<Compile Include="Src\Wrappers\CorDebug\ICorDebugEval2.cs" />
<Compile Include="Src\Wrappers\CorDebug\ICorDebugFrame.cs" />
<Compile Include="Src\Wrappers\CorDebug\ICorDebugFrameEnum.cs" />
<Compile Include="Src\Wrappers\CorDebug\ICorDebugFunction.cs" />
<Compile Include="Src\Wrappers\CorDebug\ICorDebugFunction2.cs" />
<Compile Include="Src\Wrappers\CorDebug\ICorDebugFunctionBreakpoint.cs" />
<Compile Include="Src\Wrappers\CorDebug\ICorDebugGenericValue.cs" />
<Compile Include="Src\Wrappers\CorDebug\ICorDebugHandleValue.cs" />
<Compile Include="Src\Wrappers\CorDebug\ICorDebugHeapValue.cs" />
<Compile Include="Src\Wrappers\CorDebug\ICorDebugHeapValue2.cs" />
<Compile Include="Src\Wrappers\CorDebug\ICorDebugChain.cs" />
<Compile Include="Src\Wrappers\CorDebug\ICorDebugChainEnum.cs" />
<Compile Include="Src\Wrappers\CorDebug\ICorDebugILFrame.cs" />
<Compile Include="Src\Wrappers\CorDebug\ICorDebugILFrame2.cs" />
<Compile Include="Src\Wrappers\CorDebug\ICorDebugInternalFrame.cs" />
<Compile Include="Src\Wrappers\CorDebug\ICorDebugManagedCallback.cs" />
<Compile Include="Src\Wrappers\CorDebug\ICorDebugManagedCallback2.cs" />
<Compile Include="Src\Wrappers\CorDebug\ICorDebugMDA.cs" />
<Compile Include="Src\Interop\CorSym\_FILETIME.cs" />
<Compile Include="Src\Interop\CorSym\_LARGE_INTEGER.cs" />
<Compile Include="Src\Interop\CorSym\_ULARGE_INTEGER.cs" />
<Compile Include="Src\Interop\CorSym\CorSymAddrKind.cs" />
<Compile Include="Src\Interop\CorSym\CorSymBinder_deprecated.cs" />
<Compile Include="Src\Interop\CorSym\CorSymBinder_deprecatedClass.cs" />
<Compile Include="Src\Interop\CorSym\CorSymBinder_SxS.cs" />
<Compile Include="Src\Interop\CorSym\CorSymBinder_SxSClass.cs" />
<Compile Include="Src\Interop\CorSym\CorSymReader_deprecated.cs" />
<Compile Include="Src\Interop\CorSym\CorSymReader_deprecatedClass.cs" />
<Compile Include="Src\Interop\CorSym\CorSymReader_SxS.cs" />
<Compile Include="Src\Interop\CorSym\CorSymReader_SxSClass.cs" />
<Compile Include="Src\Interop\CorSym\CorSymSearchPolicyAttributes.cs" />
<Compile Include="Src\Interop\CorSym\CorSymVarFlag.cs" />
<Compile Include="Src\Interop\CorSym\CorSymWriter_deprecated.cs" />
<Compile Include="Src\Interop\CorSym\CorSymWriter_deprecatedClass.cs" />
<Compile Include="Src\Interop\CorSym\CorSymWriter_SxS.cs" />
<Compile Include="Src\Interop\CorSym\CorSymWriter_SxSClass.cs" />
<Compile Include="Src\Interop\CorSym\ISequentialStream.cs" />
<Compile Include="Src\Interop\CorSym\IStream.cs" />
<Compile Include="Src\Interop\CorSym\ISymUnmanagedBinder.cs" />
<Compile Include="Src\Interop\CorSym\ISymUnmanagedDocument.cs" />
<Compile Include="Src\Interop\CorSym\ISymUnmanagedDocumentWriter.cs" />
<Compile Include="Src\Interop\CorSym\ISymUnmanagedMethod.cs" />
<Compile Include="Src\Interop\CorSym\ISymUnmanagedNamespace.cs" />
<Compile Include="Src\Interop\CorSym\ISymUnmanagedReader.cs" />
<Compile Include="Src\Interop\CorSym\ISymUnmanagedReaderSymbolSearchInfo.cs" />
<Compile Include="Src\Interop\CorSym\ISymUnmanagedScope.cs" />
<Compile Include="Src\Interop\CorSym\ISymUnmanagedSymbolSearchInfo.cs" />
<Compile Include="Src\Interop\CorSym\ISymUnmanagedVariable.cs" />
<Compile Include="Src\Interop\CorSym\ISymUnmanagedWriter.cs" />
<Compile Include="Src\Interop\CorSym\ISymUnmanagedWriter2.cs" />
<Compile Include="Src\Interop\CorSym\tagSTATSTG.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\CorDebug.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\CorDebugChainReason.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\CorDebugClass.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\CorDebugCreateProcessFlags.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\CorDebugHandleType.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\CorDebugIntercept.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\CorDebugInternalFrameType.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\CorDebugMappingResult.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\CorDebugMDAFlags.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\CorDebugRegister.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\CorDebugThreadState.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\CorDebugUnmappedStop.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\CorDebugUserState.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\EmbeddedCLRCorDebug.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\EmbeddedCLRCorDebugClass.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\ICorDebug.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\ICorDebugAppDomain.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\ICorDebugAppDomain2.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\ICorDebugAppDomainEnum.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\ICorDebugArrayValue.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\ICorDebugAssembly.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\ICorDebugAssemblyEnum.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\ICorDebugBoxValue.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\ICorDebugBreakpoint.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\ICorDebugBreakpointEnum.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\ICorDebugChain.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\ICorDebugChainEnum.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\ICorDebugClass.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\ICorDebugClass2.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\ICorDebugCode.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\ICorDebugCodeEnum.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\ICorDebugContext.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\ICorDebugController.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\ICorDebugEditAndContinueSnapshot.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\ICorDebugEnum.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\ICorDebugErrorInfoEnum.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\ICorDebugEval.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\ICorDebugEval2.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\ICorDebugFrame.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\ICorDebugFrameEnum.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\ICorDebugFunction.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\ICorDebugFunction2.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\ICorDebugFunctionBreakpoint.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\ICorDebugGenericValue.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\ICorDebugHandleValue.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\ICorDebugHeapValue.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\ICorDebugHeapValue2.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\ICorDebugILFrame.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\ICorDebugILFrame2.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\ICorDebugInternalFrame.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\ICorDebugManagedCallback.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\ICorDebugManagedCallback2.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\ICorDebugMDA.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\ICorDebugModule.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\ICorDebugModule2.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\ICorDebugModuleBreakpoint.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\ICorDebugModuleEnum.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\ICorDebugNativeFrame.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\ICorDebugObjectEnum.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\ICorDebugObjectValue.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\ICorDebugObjectValue2.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\ICorDebugProcess.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\ICorDebugProcess2.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\ICorDebugProcessEnum.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\ICorDebugReferenceValue.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\ICorDebugRegisterSet.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\ICorDebugStepper.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\ICorDebugStepper2.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\ICorDebugStepperEnum.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\ICorDebugStringValue.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\ICorDebugThread.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\ICorDebugThread2.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\ICorDebugThreadEnum.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\ICorDebugType.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\ICorDebugTypeEnum.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\ICorDebugUnmanagedCallback.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\ICorDebugValue.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\ICorDebugValue2.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\ICorDebugValueBreakpoint.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\ICorDebugValueEnum.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\ISequentialStream.cs" />
<Compile Include="Src\Wrappers\CorDebug\Autogenerated\IStream.cs" />
<Compile Include="Src\Wrappers\CorSym\Autogenerated\CorSymAddrKind.cs" />
<Compile Include="Src\Wrappers\CorSym\Autogenerated\CorSymBinder_deprecated.cs" />
<Compile Include="Src\Wrappers\CorSym\Autogenerated\CorSymBinder_deprecatedClass.cs" />
<Compile Include="Src\Wrappers\CorSym\Autogenerated\CorSymBinder_SxS.cs" />
<Compile Include="Src\Wrappers\CorSym\Autogenerated\CorSymBinder_SxSClass.cs" />
<Compile Include="Src\Wrappers\CorSym\Autogenerated\CorSymReader_deprecated.cs" />
<Compile Include="Src\Wrappers\CorSym\Autogenerated\CorSymReader_deprecatedClass.cs" />
<Compile Include="Src\Wrappers\CorSym\Autogenerated\CorSymReader_SxS.cs" />
<Compile Include="Src\Wrappers\CorSym\Autogenerated\CorSymReader_SxSClass.cs" />
<Compile Include="Src\Wrappers\CorSym\Autogenerated\CorSymSearchPolicyAttributes.cs" />
<Compile Include="Src\Wrappers\CorSym\Autogenerated\CorSymVarFlag.cs" />
<Compile Include="Src\Wrappers\CorSym\Autogenerated\CorSymWriter_deprecated.cs" />
<Compile Include="Src\Wrappers\CorSym\Autogenerated\CorSymWriter_deprecatedClass.cs" />
<Compile Include="Src\Wrappers\CorSym\Autogenerated\CorSymWriter_SxS.cs" />
<Compile Include="Src\Wrappers\CorSym\Autogenerated\CorSymWriter_SxSClass.cs" />
<Compile Include="Src\Wrappers\CorSym\Autogenerated\ISequentialStream.cs" />
<Compile Include="Src\Wrappers\CorSym\Autogenerated\IStream.cs" />
<Compile Include="Src\Wrappers\CorSym\Autogenerated\ISymUnmanagedBinder.cs" />
<Compile Include="Src\Wrappers\CorSym\Autogenerated\ISymUnmanagedDocument.cs" />
<Compile Include="Src\Wrappers\CorSym\Autogenerated\ISymUnmanagedDocumentWriter.cs" />
<Compile Include="Src\Wrappers\CorSym\Autogenerated\ISymUnmanagedMethod.cs" />
<Compile Include="Src\Wrappers\CorSym\Autogenerated\ISymUnmanagedNamespace.cs" />
<Compile Include="Src\Wrappers\CorSym\Autogenerated\ISymUnmanagedReader.cs" />
<Compile Include="Src\Wrappers\CorSym\Autogenerated\ISymUnmanagedReaderSymbolSearchInfo.cs" />
<Compile Include="Src\Wrappers\CorSym\Autogenerated\ISymUnmanagedScope.cs" />
<Compile Include="Src\Wrappers\CorSym\Autogenerated\ISymUnmanagedSymbolSearchInfo.cs" />
<Compile Include="Src\Wrappers\CorSym\Autogenerated\ISymUnmanagedVariable.cs" />
<Compile Include="Src\Wrappers\CorSym\Autogenerated\ISymUnmanagedWriter.cs" />
<Compile Include="Src\Wrappers\CorSym\Autogenerated\ISymUnmanagedWriter2.cs" />
<Compile Include="Src\Wrappers\MetaData\FieldProps.cs" />
<Compile Include="Src\Wrappers\MetaData\MetaData.cs" />
<Compile Include="Src\Wrappers\MetaData\MethodProps.cs" />
<Compile Include="Src\Wrappers\MetaData\ParamProps.cs" />
<Compile Include="Src\Wrappers\MetaData\TypeDefProps.cs" />
<Compile Include="Src\Wrappers\MetaData\TypeRefProps.cs" />
<Compile Include="Src\Wrappers\ICorDebugManagedCallbacks.cs" />
<Compile Include="Src\Wrappers\NativeMethods.cs" />
<Compile Include="Src\Wrappers\ResourceManager.cs" />
<Compile Include="Src\Wrappers\_SECURITY_ATTRIBUTES.cs" />
<Compile Include="Src\Wrappers\Util.cs" />
<Compile Include="Src\Wrappers\CorSym\ISymUnmanagedBinder.cs" />
<Compile Include="Src\Wrappers\CorSym\ISymUnmanagedDocument.cs" />
<Compile Include="Src\Wrappers\CorSym\ISymUnmanagedMethod.cs" />
<Compile Include="Src\Wrappers\CorSym\ISymUnmanagedReader.cs" />
<Compile Include="Src\Wrappers\CorSym\ISymUnmanagedScope.cs" />
<Compile Include="Src\Wrappers\CorSym\ISymUnmanagedVariable.cs" />
<Compile Include="Src\Wrappers\CorSym\SequencePoint.cs" />
<Compile Include="Src\Wrappers\CorDebug\ICorDebugModule.cs" />
<Compile Include="Src\Wrappers\CorDebug\ICorDebugModule2.cs" />
<Compile Include="Src\Wrappers\CorDebug\ICorDebugModuleBreakpoint.cs" />
<Compile Include="Src\Wrappers\CorDebug\ICorDebugModuleEnum.cs" />
<Compile Include="Src\Wrappers\CorDebug\ICorDebugNativeFrame.cs" />
<Compile Include="Src\Wrappers\CorDebug\ICorDebugObjectEnum.cs" />
<Compile Include="Src\Wrappers\CorDebug\ICorDebugObjectValue.cs" />
<Compile Include="Src\Wrappers\CorDebug\ICorDebugObjectValue2.cs" />
<Compile Include="Src\Wrappers\CorDebug\ICorDebugProcess.cs" />
<Compile Include="Src\Wrappers\CorDebug\ICorDebugProcess2.cs" />
<Compile Include="Src\Wrappers\CorDebug\ICorDebugProcessEnum.cs" />
<Compile Include="Src\Wrappers\CorDebug\ICorDebugReferenceValue.cs" />
<Compile Include="Src\Wrappers\CorDebug\ICorDebugRegisterSet.cs" />
<Compile Include="Src\Wrappers\CorDebug\ICorDebugStepper.cs" />
<Compile Include="Src\Wrappers\CorDebug\ICorDebugStepper2.cs" />
<Compile Include="Src\Wrappers\CorDebug\ICorDebugStepperEnum.cs" />
<Compile Include="Src\Wrappers\CorDebug\ICorDebugStringValue.cs" />
<Compile Include="Src\Wrappers\CorDebug\ICorDebugThread.cs" />
<Compile Include="Src\Wrappers\CorDebug\ICorDebugThread2.cs" />
<Compile Include="Src\Wrappers\CorDebug\ICorDebugThreadEnum.cs" />
<Compile Include="Src\Wrappers\CorDebug\ICorDebugType.cs" />
<Compile Include="Src\Wrappers\CorDebug\ICorDebugTypeEnum.cs" />
<Compile Include="Src\Wrappers\CorDebug\ICorDebugUnmanagedCallback.cs" />
<Compile Include="Src\Wrappers\CorDebug\ICorDebugValue.cs" />
<Compile Include="Src\Wrappers\CorDebug\ICorDebugValue2.cs" />
<Compile Include="Src\Wrappers\CorDebug\ICorDebugValueBreakpoint.cs" />
<Compile Include="Src\Wrappers\CorDebug\ICorDebugValueEnum.cs" />
<Compile Include="Src\Wrappers\CorDebug\ISequentialStream.cs" />
<Compile Include="Src\Wrappers\CorDebug\IStream.cs" />
<Compile Include="Src\Wrappers\CorDebug\ICorDebugGenericValue.cs" />
<Compile Include="..\..\..\..\..\Main\GlobalAssemblyInfo.cs">
<Link>Configuration\GlobalAssemblyInfo.cs</Link>
</Compile>
</ItemGroup>
<ItemGroup>
<Content Include="README.TXT" />
<Folder Include="Src\Interop\CorSym" />
<Folder Include="Src\Wrappers" />
<Folder Include="Src\Wrappers\CorDebug" />
<Folder Include="Src\Wrappers\CorDebug\Autogenerated" />
<Folder Include="Src\Wrappers\CorSym" />
<Folder Include="Src\Wrappers\CorSym\Autogenerated" />
<Folder Include="Src\Wrappers\MetaData" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSHARP.Targets" />

4
src/AddIns/Misc/Debugger/Debugger.Core/Project/README.TXT

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
Debugger.Core and Debugger.Interop are the two libraries that hold most core debugging functionality.
Debugger.Core is the library that hold most core debugging functionality.
The vast majority of the code of these libraries was written by me without any modifications made by other people. If you could preserve this ratio by not making any modifications, I would be extremely pleased and I would be indebted to you.
The vast majority of the code of this library was written by me without any modifications made by other people. If you could preserve this ratio by not making any modifications, I would be extremely pleased and I would be indebted to you.
However, if you find a bug or if you have an idea or suggestion, please do send me an e-mail to dsrbecky@gmail.com

10
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Breakpoints/Breakpoint.cs

@ -6,7 +6,6 @@ @@ -6,7 +6,6 @@
// </file>
using System;
using System.Diagnostics.SymbolStore;
using System.Collections;
using System.Runtime.InteropServices;
@ -23,7 +22,6 @@ namespace Debugger @@ -23,7 +22,6 @@ namespace Debugger
bool hadBeenSet = false;
bool enabled = true;
ICorDebugFunctionBreakpoint corBreakpoint;
IntPtr pBreakpoint;
public NDebugger Debugger {
get {
@ -86,11 +84,6 @@ namespace Debugger @@ -86,11 +84,6 @@ namespace Debugger
this.enabled = enabled;
}
internal bool Equals(IntPtr ptr)
{
return pBreakpoint == ptr;
}
internal bool Equals(ICorDebugFunctionBreakpoint obj)
{
return corBreakpoint == obj;
@ -98,7 +91,7 @@ namespace Debugger @@ -98,7 +91,7 @@ namespace Debugger
public override bool Equals(object obj)
{
return base.Equals(obj) || corBreakpoint == (obj as ICorDebugFunctionBreakpoint);
return base.Equals(obj) || (corBreakpoint != null && corBreakpoint.Equals(obj));
}
public override int GetHashCode()
@ -127,7 +120,6 @@ namespace Debugger @@ -127,7 +120,6 @@ namespace Debugger
hadBeenSet = true;
corBreakpoint.Activate(enabled?1:0);
pBreakpoint = Marshal.GetComInterfaceForObject(corBreakpoint.WrappedObject, typeof(Debugger.Interop.CorDebug.ICorDebugFunctionBreakpoint));
OnChanged();

1
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Breakpoints/NDebugger-Breakpoints.cs

@ -10,7 +10,6 @@ using System.Runtime.InteropServices; @@ -10,7 +10,6 @@ using System.Runtime.InteropServices;
using System.Collections.Generic;
using Debugger.Wrappers.CorDebug;
using Debugger.Interop.MetaData;
namespace Debugger
{

15
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Debugger/Internal/ManagedCallback.cs

@ -133,17 +133,18 @@ namespace Debugger @@ -133,17 +133,18 @@ namespace Debugger
}
}
public void Breakpoint(ICorDebugAppDomain pAppDomain, ICorDebugThread pThread, IntPtr pBreakpoint)
public void Breakpoint(ICorDebugAppDomain pAppDomain, ICorDebugThread pThread, ICorDebugBreakpoint pBreakpoint)
{
EnterCallback("Breakpoint", pThread);
ExitCallback_Paused(PausedReason.Breakpoint);
foreach (Breakpoint b in debugger.Breakpoints) {
if (b.Equals(pBreakpoint)) {
b.OnHit();
}
}
// foreach (Breakpoint b in debugger.Breakpoints) {
// if (b.Equals(pBreakpoint)) {
// // TODO: Check that this works
// b.OnHit();
// }
// }
}
public void BreakpointSetError(ICorDebugAppDomain pAppDomain, ICorDebugThread pThread, ICorDebugBreakpoint pBreakpoint, uint dwError)
@ -409,7 +410,7 @@ namespace Debugger @@ -409,7 +410,7 @@ namespace Debugger
ExitCallback_Continue();
}
public void CreateConnection(ICorDebugProcess pProcess, uint dwConnectionId, ref ushort pConnName)
public void CreateConnection(ICorDebugProcess pProcess, uint dwConnectionId, IntPtr pConnName)
{
EnterCallback("CreateConnection", pProcess);

21
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Debugger/Internal/ManagedCallbackProxy.cs

@ -23,7 +23,7 @@ using Debugger.Wrappers.CorDebug; @@ -23,7 +23,7 @@ using Debugger.Wrappers.CorDebug;
namespace Debugger
{
class ManagedCallbackProxy : Debugger.Interop.CorDebug.ICorDebugManagedCallback, Debugger.Interop.CorDebug.ICorDebugManagedCallback2
class ManagedCallbackProxy : ICorDebugManagedCallbacks
{
NDebugger debugger;
ManagedCallback realCallback;
@ -45,14 +45,14 @@ namespace Debugger @@ -45,14 +45,14 @@ namespace Debugger
debugger.MTA2STA.Call(callback);
}
public void StepComplete(System.IntPtr pAppDomain, System.IntPtr pThread, System.IntPtr pStepper, Debugger.Interop.CorDebug.CorDebugStepReason reason)
public void StepComplete(System.IntPtr pAppDomain, System.IntPtr pThread, System.IntPtr pStepper, CorDebugStepReason reason)
{
Call(delegate {
realCallback.StepComplete(
MTA2STA.MarshalIntPtrTo<ICorDebugAppDomain>(pAppDomain),
MTA2STA.MarshalIntPtrTo<ICorDebugThread>(pThread),
MTA2STA.MarshalIntPtrTo<ICorDebugStepper>(pStepper),
(CorDebugStepReason)reason
reason
);
});
}
@ -93,7 +93,7 @@ namespace Debugger @@ -93,7 +93,7 @@ namespace Debugger
realCallback.Breakpoint(
MTA2STA.MarshalIntPtrTo<ICorDebugAppDomain>(pAppDomain),
MTA2STA.MarshalIntPtrTo<ICorDebugThread>(pThread),
pBreakpoint
MTA2STA.MarshalIntPtrTo<ICorDebugBreakpoint>(pBreakpoint)
);
});
}
@ -335,14 +335,13 @@ namespace Debugger @@ -335,14 +335,13 @@ namespace Debugger
});
}
public void CreateConnection(IntPtr pProcess, uint dwConnectionId, ref ushort pConnName)
public void CreateConnection(IntPtr pProcess, uint dwConnectionId, IntPtr pConnName)
{
ushort pName = pConnName;
Call(delegate {
realCallback.CreateConnection(
MTA2STA.MarshalIntPtrTo<ICorDebugProcess>(pProcess),
dwConnectionId,
ref pName
pConnName
);
});
}
@ -357,7 +356,7 @@ namespace Debugger @@ -357,7 +356,7 @@ namespace Debugger
});
}
public void Exception(IntPtr pAppDomain, IntPtr pThread, IntPtr pFrame, uint nOffset, Debugger.Interop.CorDebug.CorDebugExceptionCallbackType dwEventType, uint dwFlags)
public void Exception(IntPtr pAppDomain, IntPtr pThread, IntPtr pFrame, uint nOffset, CorDebugExceptionCallbackType dwEventType, uint dwFlags)
{
Call(delegate {
realCallback.Exception2(
@ -365,19 +364,19 @@ namespace Debugger @@ -365,19 +364,19 @@ namespace Debugger
MTA2STA.MarshalIntPtrTo<ICorDebugThread>(pThread),
MTA2STA.MarshalIntPtrTo<ICorDebugFrame>(pFrame),
nOffset,
(CorDebugExceptionCallbackType)dwEventType,
dwEventType,
dwFlags
);
});
}
public void ExceptionUnwind(IntPtr pAppDomain, IntPtr pThread, Debugger.Interop.CorDebug.CorDebugExceptionUnwindCallbackType dwEventType, uint dwFlags)
public void ExceptionUnwind(IntPtr pAppDomain, IntPtr pThread, CorDebugExceptionUnwindCallbackType dwEventType, uint dwFlags)
{
Call(delegate {
realCallback.ExceptionUnwind(
MTA2STA.MarshalIntPtrTo<ICorDebugAppDomain>(pAppDomain),
MTA2STA.MarshalIntPtrTo<ICorDebugThread>(pThread),
(CorDebugExceptionUnwindCallbackType)dwEventType,
dwEventType,
dwFlags
);
});

262
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Debugger/MetaData/MetaData.cs

@ -1,262 +0,0 @@ @@ -1,262 +0,0 @@
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="David Srbecký" email="dsrbecky@gmail.com"/>
// <version>$Revision$</version>
// </file>
using System;
using System.Collections.Generic;
using System.Text;
using Debugger.Interop.MetaData;
using System.Runtime.InteropServices;
namespace Debugger
{
class MetaData
{
IMetaDataImport metaData;
public MetaData(IMetaDataImport metaData)
{
this.metaData = metaData;
}
public TypeDefProps GetTypeDefProps(uint typeToken)
{
TypeDefProps typeDefProps;
typeDefProps.Token = typeToken;
uint pStringLenght = 0; // Terminating character included in pStringLenght
IntPtr pString = IntPtr.Zero;
// Get length of string
metaData.GetTypeDefProps(typeDefProps.Token,
pString,
pStringLenght,
out pStringLenght,
out typeDefProps.Flags,
out typeDefProps.SuperClassToken);
// Allocate string buffer
pString = Marshal.AllocHGlobal((int)pStringLenght * 2);
// Get properties
metaData.GetTypeDefProps(typeDefProps.Token,
pString,
pStringLenght,
out pStringLenght,
out typeDefProps.Flags,
out typeDefProps.SuperClassToken);
typeDefProps.Name = Marshal.PtrToStringUni(pString);
Marshal.FreeHGlobal(pString);
return typeDefProps;
}
public TypeRefProps GetTypeRefProps(uint typeToken)
{
TypeRefProps typeRefProps;
typeRefProps.Token = typeToken;
uint unused;
uint pStringLenght = 0; // Terminating character included in pStringLenght
IntPtr pString = IntPtr.Zero;
metaData.GetTypeRefProps(typeRefProps.Token,
out unused,
pString,
pStringLenght,
out pStringLenght); // real string lenght
// Allocate string buffer
pString = Marshal.AllocHGlobal((int)pStringLenght * 2);
metaData.GetTypeRefProps(typeRefProps.Token,
out unused,
pString,
pStringLenght,
out pStringLenght); // real string lenght
typeRefProps.Name = Marshal.PtrToStringUni(pString);
Marshal.FreeHGlobal(pString);
return typeRefProps;
}
public IEnumerable<FieldProps> EnumFields(uint typeToken)
{
IntPtr enumerator = IntPtr.Zero;
while (true) {
uint fieldToken;
uint fieldsFetched;
metaData.EnumFields(ref enumerator, typeToken, out fieldToken, 1, out fieldsFetched);
if (fieldsFetched == 0) {
metaData.CloseEnum(enumerator);
break;
}
yield return GetFieldProps(fieldToken);
}
}
public FieldProps GetFieldProps(uint fieldToken)
{
FieldProps fieldProps;
fieldProps.Token = fieldToken;
uint unused;
IntPtr unusedPtr = IntPtr.Zero;
uint pStringLenght = 0; // Terminating character included in pStringLenght
IntPtr pString = IntPtr.Zero;
metaData.GetFieldProps(fieldProps.Token,
out fieldProps.ClassToken,
pString,
pStringLenght,
out pStringLenght, // real string lenght
out fieldProps.Flags,
IntPtr.Zero,
out unused,
out unused,
out unusedPtr,
out unused);
// Allocate string buffer
pString = Marshal.AllocHGlobal((int)pStringLenght * 2);
metaData.GetFieldProps(fieldProps.Token,
out fieldProps.ClassToken,
pString,
pStringLenght,
out pStringLenght, // real string lenght
out fieldProps.Flags,
IntPtr.Zero,
out unused,
out unused,
out unusedPtr,
out unused);
fieldProps.Name = Marshal.PtrToStringUni(pString);
Marshal.FreeHGlobal(pString);
return fieldProps;
}
public IEnumerable<MethodProps> EnumMethods(uint typeToken)
{
IntPtr enumerator = IntPtr.Zero;
while(true) {
uint methodToken;
uint methodsFetched;
metaData.EnumMethods(ref enumerator, typeToken, out methodToken, 1, out methodsFetched);
if (methodsFetched == 0) {
metaData.CloseEnum(enumerator);
break;
}
yield return GetMethodProps(methodToken);
}
}
public unsafe MethodProps GetMethodProps(uint methodToken)
{
MethodProps methodProps;
methodProps.Token = methodToken;
uint pStringLenght = 0; // Terminating character included in pStringLenght
IntPtr pString = IntPtr.Zero;
//IntPtr pSigBlob;
uint sigBlobSize;
metaData.GetMethodProps(methodProps.Token,
out methodProps.ClassToken,
pString,
pStringLenght,
out pStringLenght, // real string lenght
out methodProps.Flags,
IntPtr.Zero,//new IntPtr(&pSigBlob),
out sigBlobSize,
out methodProps.CodeRVA,
out methodProps.ImplFlags);
// Allocate string buffer
pString = Marshal.AllocHGlobal((int)pStringLenght * 2);
metaData.GetMethodProps(methodProps.Token,
out methodProps.ClassToken,
pString,
pStringLenght,
out pStringLenght, // real string lenght
out methodProps.Flags,
IntPtr.Zero,//new IntPtr(&pSigBlob),
out sigBlobSize,
out methodProps.CodeRVA,
out methodProps.ImplFlags);
methodProps.Name = Marshal.PtrToStringUni(pString);
Marshal.FreeHGlobal(pString);
methodProps.Signature = null;
//methodProps.Signature = new SignatureStream(pSigBlob, sigBlobSize);
//Marshal.FreeCoTaskMem(pSigBlob);
return methodProps;
}
public ParamProps GetParamForMethodIndex(uint methodToken, uint parameterSequence)
{
uint paramToken = 0;
metaData.GetParamForMethodIndex(methodToken, parameterSequence, ref paramToken);
return GetParamProps(paramToken);
}
public ParamProps GetParamProps(uint paramToken)
{
ParamProps paramProps;
paramProps.Token = paramToken;
uint unused;
uint pStringLenght = 0; // Terminating character included in pStringLenght
IntPtr pString = IntPtr.Zero;
metaData.GetParamProps(paramProps.Token,
out paramProps.MethodToken,
out paramProps.ParameterSequence,
pString,
pStringLenght,
out pStringLenght, // real string lenght
out paramProps.Flags,
out unused,
IntPtr.Zero,
out unused);
// Allocate string buffer
pString = Marshal.AllocHGlobal((int)pStringLenght * 2);
metaData.GetParamProps(paramProps.Token,
out paramProps.MethodToken,
out paramProps.ParameterSequence,
pString,
pStringLenght,
out pStringLenght, // real string lenght
out paramProps.Flags,
out unused,
IntPtr.Zero,
out unused);
paramProps.Name = Marshal.PtrToStringUni(pString);
Marshal.FreeHGlobal(pString);
return paramProps;
}
public TypeDefProps FindTypeDefByName(string typeName, uint enclosingClassToken)
{
uint typeDefToken;
metaData.FindTypeDefByName(typeName, enclosingClassToken, out typeDefToken);
return GetTypeDefProps(typeDefToken);
}
}
}

3
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Debugger/NDebugger-StateControl.cs

@ -7,13 +7,12 @@ @@ -7,13 +7,12 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading;
using Debugger.Wrappers.CorDebug;
using Debugger.Interop.MetaData;
using System.Collections.Generic;
namespace Debugger
{

14
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Debugger/NDebugger.cs

@ -7,13 +7,12 @@ @@ -7,13 +7,12 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading;
using Debugger.Wrappers.CorDebug;
using Debugger.Interop.MetaData;
using System.Collections.Generic;
namespace Debugger
{
@ -64,6 +63,11 @@ namespace Debugger @@ -64,6 +63,11 @@ namespace Debugger
this.ModuleLoaded += SetBreakpointsInModule;
localVariables = new VariableCollection(this);
Wrappers.ResourceManager.TraceMessagesEnabled = false;
Wrappers.ResourceManager.TraceMessage += delegate (object s, MessageEventArgs e) {
TraceMessage(e.Message);
};
}
/// <summary>
@ -138,6 +142,12 @@ namespace Debugger @@ -138,6 +142,12 @@ namespace Debugger
TraceMessage("ICorDebug terminated");
Wrappers.ResourceManager.TraceMessagesEnabled = true;
Wrappers.ResourceManager.ReleaseAllTrackedCOMObjects();
Wrappers.ResourceManager.TraceMessagesEnabled = false;
TraceMessage("Tracked COM objects released");
noProcessesHandle.Set();
}

2
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorDebug/CorDebugExceptionCallbackType.cs

@ -5,7 +5,7 @@ @@ -5,7 +5,7 @@
// <version>$Revision$</version>
// </file>
namespace Debugger.Interop.CorDebug
namespace Debugger.Wrappers.CorDebug
{
using System;

2
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorDebug/CorDebugExceptionUnwindCallbackType.cs

@ -5,7 +5,7 @@ @@ -5,7 +5,7 @@
// <version>$Revision$</version>
// </file>
namespace Debugger.Interop.CorDebug
namespace Debugger.Wrappers.CorDebug
{
using System;

2
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorDebug/CorDebugStepReason.cs

@ -5,7 +5,7 @@ @@ -5,7 +5,7 @@
// <version>$Revision$</version>
// </file>
namespace Debugger.Interop.CorDebug
namespace Debugger.Wrappers.CorDebug
{
using System;

2
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorDebug/ICorDebugManagedCallback.cs

@ -17,7 +17,7 @@ namespace Debugger.Interop.CorDebug @@ -17,7 +17,7 @@ namespace Debugger.Interop.CorDebug
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void Breakpoint([In] IntPtr pAppDomain, [In] IntPtr pThread, [In] IntPtr pBreakpoint);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void StepComplete([In] IntPtr pAppDomain, [In] IntPtr pThread, [In] IntPtr pStepper, [In] CorDebugStepReason reason);
void StepComplete([In] IntPtr pAppDomain, [In] IntPtr pThread, [In] IntPtr pStepper, [In] Debugger.Wrappers.CorDebug.CorDebugStepReason reason);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void Break([In] IntPtr pAppDomain, [In] IntPtr thread);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]

6
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorDebug/ICorDebugManagedCallback2.cs

@ -17,15 +17,15 @@ namespace Debugger.Interop.CorDebug @@ -17,15 +17,15 @@ namespace Debugger.Interop.CorDebug
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void FunctionRemapOpportunity([In] IntPtr pAppDomain, [In] IntPtr pThread, [In] IntPtr pOldFunction, [In] IntPtr pNewFunction, [In] uint oldILOffset);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void CreateConnection([In] IntPtr pProcess, [In] uint dwConnectionId, [In] ref ushort pConnName);
void CreateConnection([In] IntPtr pProcess, [In] uint dwConnectionId, [In] IntPtr pConnName);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void ChangeConnection([In] IntPtr pProcess, [In] uint dwConnectionId);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void DestroyConnection([In] IntPtr pProcess, [In] uint dwConnectionId);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void Exception([In] IntPtr pAppDomain, [In] IntPtr pThread, [In] IntPtr pFrame, [In] uint nOffset, [In] CorDebugExceptionCallbackType dwEventType, [In] uint dwFlags);
void Exception([In] IntPtr pAppDomain, [In] IntPtr pThread, [In] IntPtr pFrame, [In] uint nOffset, [In] Debugger.Wrappers.CorDebug.CorDebugExceptionCallbackType dwEventType, [In] uint dwFlags);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void ExceptionUnwind([In] IntPtr pAppDomain, [In] IntPtr pThread, [In] CorDebugExceptionUnwindCallbackType dwEventType, [In] uint dwFlags);
void ExceptionUnwind([In] IntPtr pAppDomain, [In] IntPtr pThread, [In] Debugger.Wrappers.CorDebug.CorDebugExceptionUnwindCallbackType dwEventType, [In] uint dwFlags);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void FunctionRemapComplete([In] IntPtr pAppDomain, [In] IntPtr pThread, [In] IntPtr pFunction);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]

2
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorDebug/ICorDebugProcess.cs

@ -59,7 +59,7 @@ namespace Debugger.Interop.CorDebug @@ -59,7 +59,7 @@ namespace Debugger.Interop.CorDebug
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void EnableLogMessages([In] int fOnOff);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void ModifyLogSwitch([In] ref ushort pLogSwitchName, [In] int lLevel);
void ModifyLogSwitch([In] IntPtr pLogSwitchName, [In] int lLevel);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void EnumerateAppDomains([MarshalAs(UnmanagedType.Interface)] out ICorDebugAppDomainEnum ppAppDomains);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]

27
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorSym/CorSymAddrKind.cs

@ -0,0 +1,27 @@ @@ -0,0 +1,27 @@
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="David Srbecký" email="dsrbecky@gmail.com"/>
// <version>$Revision$</version>
// </file>
namespace Debugger.Interop.CorSym
{
using System;
public enum CorSymAddrKind
{
// Fields
ADDR_BITFIELD = 9,
ADDR_IL_OFFSET = 1,
ADDR_NATIVE_ISECTOFFSET = 10,
ADDR_NATIVE_OFFSET = 5,
ADDR_NATIVE_REGISTER = 3,
ADDR_NATIVE_REGREG = 6,
ADDR_NATIVE_REGREL = 4,
ADDR_NATIVE_REGSTK = 7,
ADDR_NATIVE_RVA = 2,
ADDR_NATIVE_STKREG = 8
}
}

17
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorSym/CorSymBinder_SxS.cs

@ -0,0 +1,17 @@ @@ -0,0 +1,17 @@
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="David Srbecký" email="dsrbecky@gmail.com"/>
// <version>$Revision$</version>
// </file>
namespace Debugger.Interop.CorSym
{
using System.Runtime.InteropServices;
[ComImport, CoClass(typeof(CorSymBinder_SxSClass)), Guid("AA544D42-28CB-11D3-BD22-0000F80849BD")]
public interface CorSymBinder_SxS : ISymUnmanagedBinder
{
}
}

28
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorSym/CorSymBinder_SxSClass.cs

@ -0,0 +1,28 @@ @@ -0,0 +1,28 @@
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="David Srbecký" email="dsrbecky@gmail.com"/>
// <version>$Revision$</version>
// </file>
namespace Debugger.Interop.CorSym
{
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[ComImport, Guid("0A29FF9E-7F9C-4437-8B11-F424491E3931"), ClassInterface((short) 0), TypeLibType((short) 2)]
public class CorSymBinder_SxSClass : ISymUnmanagedBinder, CorSymBinder_SxS
{
// Methods
[return: MarshalAs(UnmanagedType.Interface)]
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern ISymUnmanagedReader GetReaderForFile([In, MarshalAs(UnmanagedType.IUnknown)] object importer, [In] IntPtr filename, [In] IntPtr searchPath);
[return: MarshalAs(UnmanagedType.Interface)]
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern ISymUnmanagedReader GetReaderFromStream([In, MarshalAs(UnmanagedType.IUnknown)] object importer, [In, MarshalAs(UnmanagedType.Interface)] IStream pstream);
}
}

17
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorSym/CorSymBinder_deprecated.cs

@ -0,0 +1,17 @@ @@ -0,0 +1,17 @@
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="David Srbecký" email="dsrbecky@gmail.com"/>
// <version>$Revision$</version>
// </file>
namespace Debugger.Interop.CorSym
{
using System.Runtime.InteropServices;
[ComImport, CoClass(typeof(CorSymBinder_deprecatedClass)), Guid("AA544D42-28CB-11D3-BD22-0000F80849BD")]
public interface CorSymBinder_deprecated : ISymUnmanagedBinder
{
}
}

28
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorSym/CorSymBinder_deprecatedClass.cs

@ -0,0 +1,28 @@ @@ -0,0 +1,28 @@
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="David Srbecký" email="dsrbecky@gmail.com"/>
// <version>$Revision$</version>
// </file>
namespace Debugger.Interop.CorSym
{
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[ComImport, Guid("AA544D41-28CB-11D3-BD22-0000F80849BD"), ClassInterface((short) 0), TypeLibType((short) 2)]
public class CorSymBinder_deprecatedClass : ISymUnmanagedBinder, CorSymBinder_deprecated
{
// Methods
[return: MarshalAs(UnmanagedType.Interface)]
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern ISymUnmanagedReader GetReaderForFile([In, MarshalAs(UnmanagedType.IUnknown)] object importer, [In] IntPtr filename, [In] IntPtr searchPath);
[return: MarshalAs(UnmanagedType.Interface)]
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern ISymUnmanagedReader GetReaderFromStream([In, MarshalAs(UnmanagedType.IUnknown)] object importer, [In, MarshalAs(UnmanagedType.Interface)] IStream pstream);
}
}

17
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorSym/CorSymReader_SxS.cs

@ -0,0 +1,17 @@ @@ -0,0 +1,17 @@
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="David Srbecký" email="dsrbecky@gmail.com"/>
// <version>$Revision$</version>
// </file>
namespace Debugger.Interop.CorSym
{
using System.Runtime.InteropServices;
[ComImport, CoClass(typeof(CorSymReader_SxSClass)), Guid("B4CE6286-2A6B-3712-A3B7-1EE1DAD467B5")]
public interface CorSymReader_SxS : ISymUnmanagedReader
{
}
}

75
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorSym/CorSymReader_SxSClass.cs

@ -0,0 +1,75 @@ @@ -0,0 +1,75 @@
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="David Srbecký" email="dsrbecky@gmail.com"/>
// <version>$Revision$</version>
// </file>
namespace Debugger.Interop.CorSym
{
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[ComImport, Guid("0A3976C5-4529-4EF8-B0B0-42EED37082CD"), TypeLibType((short) 2), ClassInterface((short) 0), ComConversionLoss]
public class CorSymReader_SxSClass : ISymUnmanagedReader, CorSymReader_SxS
{
// Methods
[return: MarshalAs(UnmanagedType.Interface)]
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern ISymUnmanagedDocument GetDocument([In] IntPtr url, [In] Guid language, [In] Guid languageVendor, [In] Guid documentType);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern void GetDocuments([In] uint cDocs, out uint pcDocs, [Out] IntPtr pDocs);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern void GetDocumentVersion([In, MarshalAs(UnmanagedType.Interface)] ISymUnmanagedDocument pDoc, out int version, out int pbCurrent);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern void GetGlobalVariables([In] uint cVars, out uint pcVars, [Out] IntPtr pVars);
[return: MarshalAs(UnmanagedType.Interface)]
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern ISymUnmanagedMethod GetMethod([In] uint token);
[return: MarshalAs(UnmanagedType.Interface)]
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern ISymUnmanagedMethod GetMethodByVersion([In] uint token, [In] int version);
[return: MarshalAs(UnmanagedType.Interface)]
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern ISymUnmanagedMethod GetMethodFromDocumentPosition([In, MarshalAs(UnmanagedType.Interface)] ISymUnmanagedDocument document, [In] uint line, [In] uint column);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern void GetMethodsFromDocumentPosition([In, MarshalAs(UnmanagedType.Interface)] ISymUnmanagedDocument document, [In] uint line, [In] uint column, [In] uint cMethod, out uint pcMethod, [Out] IntPtr pRetVal);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern void GetMethodVersion([In, MarshalAs(UnmanagedType.Interface)] ISymUnmanagedMethod pMethod, out int version);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern void GetNamespaces([In] uint cNameSpaces, out uint pcNameSpaces, [Out] IntPtr namespaces);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern void GetSymAttribute([In] uint parent, [In] IntPtr name, [In] uint cBuffer, out uint pcBuffer, [Out] IntPtr buffer);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern void GetSymbolStoreFileName([In] uint cchName, out uint pcchName, [Out] IntPtr szName);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern uint GetUserEntryPoint();
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern void GetVariables([In] uint parent, [In] uint cVars, out uint pcVars, [Out] IntPtr pVars);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern void Initialize([In, MarshalAs(UnmanagedType.IUnknown)] object importer, [In] IntPtr filename, [In] IntPtr searchPath, [In, MarshalAs(UnmanagedType.Interface)] IStream pIStream);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern void ReplaceSymbolStore([In] IntPtr filename, [In, MarshalAs(UnmanagedType.Interface)] IStream pIStream);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern void UpdateSymbolStore([In] IntPtr filename, [In, MarshalAs(UnmanagedType.Interface)] IStream pIStream);
}
}

17
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorSym/CorSymReader_deprecated.cs

@ -0,0 +1,17 @@ @@ -0,0 +1,17 @@
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="David Srbecký" email="dsrbecky@gmail.com"/>
// <version>$Revision$</version>
// </file>
namespace Debugger.Interop.CorSym
{
using System.Runtime.InteropServices;
[ComImport, Guid("B4CE6286-2A6B-3712-A3B7-1EE1DAD467B5"), CoClass(typeof(CorSymReader_deprecatedClass))]
public interface CorSymReader_deprecated : ISymUnmanagedReader
{
}
}

75
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorSym/CorSymReader_deprecatedClass.cs

@ -0,0 +1,75 @@ @@ -0,0 +1,75 @@
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="David Srbecký" email="dsrbecky@gmail.com"/>
// <version>$Revision$</version>
// </file>
namespace Debugger.Interop.CorSym
{
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[ComImport, ClassInterface((short) 0), Guid("108296C2-281E-11D3-BD22-0000F80849BD"), ComConversionLoss, TypeLibType((short) 2)]
public class CorSymReader_deprecatedClass : ISymUnmanagedReader, CorSymReader_deprecated
{
// Methods
[return: MarshalAs(UnmanagedType.Interface)]
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern ISymUnmanagedDocument GetDocument([In] IntPtr url, [In] Guid language, [In] Guid languageVendor, [In] Guid documentType);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern void GetDocuments([In] uint cDocs, out uint pcDocs, [Out] IntPtr pDocs);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern void GetDocumentVersion([In, MarshalAs(UnmanagedType.Interface)] ISymUnmanagedDocument pDoc, out int version, out int pbCurrent);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern void GetGlobalVariables([In] uint cVars, out uint pcVars, [Out] IntPtr pVars);
[return: MarshalAs(UnmanagedType.Interface)]
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern ISymUnmanagedMethod GetMethod([In] uint token);
[return: MarshalAs(UnmanagedType.Interface)]
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern ISymUnmanagedMethod GetMethodByVersion([In] uint token, [In] int version);
[return: MarshalAs(UnmanagedType.Interface)]
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern ISymUnmanagedMethod GetMethodFromDocumentPosition([In, MarshalAs(UnmanagedType.Interface)] ISymUnmanagedDocument document, [In] uint line, [In] uint column);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern void GetMethodsFromDocumentPosition([In, MarshalAs(UnmanagedType.Interface)] ISymUnmanagedDocument document, [In] uint line, [In] uint column, [In] uint cMethod, out uint pcMethod, [Out] IntPtr pRetVal);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern void GetMethodVersion([In, MarshalAs(UnmanagedType.Interface)] ISymUnmanagedMethod pMethod, out int version);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern void GetNamespaces([In] uint cNameSpaces, out uint pcNameSpaces, [Out] IntPtr namespaces);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern void GetSymAttribute([In] uint parent, [In] IntPtr name, [In] uint cBuffer, out uint pcBuffer, [Out] IntPtr buffer);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern void GetSymbolStoreFileName([In] uint cchName, out uint pcchName, [Out] IntPtr szName);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern uint GetUserEntryPoint();
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern void GetVariables([In] uint parent, [In] uint cVars, out uint pcVars, [Out] IntPtr pVars);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern void Initialize([In, MarshalAs(UnmanagedType.IUnknown)] object importer, [In] IntPtr filename, [In] IntPtr searchPath, [In, MarshalAs(UnmanagedType.Interface)] IStream pIStream);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern void ReplaceSymbolStore([In] IntPtr filename, [In, MarshalAs(UnmanagedType.Interface)] IStream pIStream);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern void UpdateSymbolStore([In] IntPtr filename, [In, MarshalAs(UnmanagedType.Interface)] IStream pIStream);
}
}

21
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorSym/CorSymSearchPolicyAttributes.cs

@ -0,0 +1,21 @@ @@ -0,0 +1,21 @@
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="David Srbecký" email="dsrbecky@gmail.com"/>
// <version>$Revision$</version>
// </file>
namespace Debugger.Interop.CorSym
{
using System;
public enum CorSymSearchPolicyAttributes
{
// Fields
AllowOriginalPathAccess = 4,
AllowReferencePathAccess = 8,
AllowRegistryAccess = 1,
AllowSymbolServerAccess = 2
}
}

18
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorSym/CorSymVarFlag.cs

@ -0,0 +1,18 @@ @@ -0,0 +1,18 @@
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="David Srbecký" email="dsrbecky@gmail.com"/>
// <version>$Revision$</version>
// </file>
namespace Debugger.Interop.CorSym
{
using System;
public enum CorSymVarFlag
{
// Fields
VAR_IS_COMP_GEN = 1
}
}

17
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorSym/CorSymWriter_SxS.cs

@ -0,0 +1,17 @@ @@ -0,0 +1,17 @@
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="David Srbecký" email="dsrbecky@gmail.com"/>
// <version>$Revision$</version>
// </file>
namespace Debugger.Interop.CorSym
{
using System.Runtime.InteropServices;
[ComImport, CoClass(typeof(CorSymWriter_SxSClass)), Guid("ED14AA72-78E2-4884-84E2-334293AE5214")]
public interface CorSymWriter_SxS : ISymUnmanagedWriter
{
}
}

93
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorSym/CorSymWriter_SxSClass.cs

@ -0,0 +1,93 @@ @@ -0,0 +1,93 @@
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="David Srbecký" email="dsrbecky@gmail.com"/>
// <version>$Revision$</version>
// </file>
namespace Debugger.Interop.CorSym
{
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[ComImport, TypeLibType((short) 2), Guid("0AE2DEB0-F901-478B-BB9F-881EE8066788"), ClassInterface((short) 0), ComConversionLoss]
public class CorSymWriter_SxSClass : ISymUnmanagedWriter, CorSymWriter_SxS
{
// Methods
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern void Abort();
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern void Close();
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern void CloseMethod();
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern void CloseNamespace();
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern void CloseScope([In] uint endOffset);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern void DefineConstant([In] IntPtr name, [In, MarshalAs(UnmanagedType.Struct)] object value, [In] uint cSig, [In] ref byte signature);
[return: MarshalAs(UnmanagedType.Interface)]
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern ISymUnmanagedDocumentWriter DefineDocument([In] IntPtr url, [In] ref Guid language, [In] ref Guid languageVendor, [In] ref Guid documentType);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern void DefineField([In] uint parent, [In] IntPtr name, [In] uint attributes, [In] uint cSig, [In] ref byte signature, [In] uint addrKind, [In] uint addr1, [In] uint addr2, [In] uint addr3);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern void DefineGlobalVariable([In] IntPtr name, [In] uint attributes, [In] uint cSig, [In] ref byte signature, [In] uint addrKind, [In] uint addr1, [In] uint addr2, [In] uint addr3);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern void DefineLocalVariable([In] IntPtr name, [In] uint attributes, [In] uint cSig, [In] ref byte signature, [In] uint addrKind, [In] uint addr1, [In] uint addr2, [In] uint addr3, [In] uint startOffset, [In] uint endOffset);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern void DefineParameter([In] IntPtr name, [In] uint attributes, [In] uint sequence, [In] uint addrKind, [In] uint addr1, [In] uint addr2, [In] uint addr3);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern void DefineSequencePoints([In, MarshalAs(UnmanagedType.Interface)] ISymUnmanagedDocumentWriter document, [In] uint spCount, [In] ref uint offsets, [In] ref uint lines, [In] ref uint columns, [In] ref uint endLines, [In] ref uint endColumns);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern void GetDebugInfo([In] ref uint pIDD, [In] uint cData, out uint pcData, [Out] IntPtr data);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern void Initialize([In, MarshalAs(UnmanagedType.IUnknown)] object emitter, [In] IntPtr filename, [In, MarshalAs(UnmanagedType.Interface)] IStream pIStream, [In] int fFullBuild);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern void Initialize2([In, MarshalAs(UnmanagedType.IUnknown)] object emitter, [In] IntPtr tempfilename, [In, MarshalAs(UnmanagedType.Interface)] IStream pIStream, [In] int fFullBuild, [In] IntPtr finalfilename);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern void OpenMethod([In] uint method);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern void OpenNamespace([In] IntPtr name);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern uint OpenScope([In] uint startOffset);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern void RemapToken([In] uint oldToken, [In] uint newToken);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern void SetMethodSourceRange([In, MarshalAs(UnmanagedType.Interface)] ISymUnmanagedDocumentWriter startDoc, [In] uint startLine, [In] uint startColumn, [In, MarshalAs(UnmanagedType.Interface)] ISymUnmanagedDocumentWriter endDoc, [In] uint endLine, [In] uint endColumn);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern void SetScopeRange([In] uint scopeID, [In] uint startOffset, [In] uint endOffset);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern void SetSymAttribute([In] uint parent, [In] IntPtr name, [In] uint cData, [In] ref byte data);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern void SetUserEntryPoint([In] uint entryMethod);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern void UsingNamespace([In] IntPtr fullName);
}
}

17
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorSym/CorSymWriter_deprecated.cs

@ -0,0 +1,17 @@ @@ -0,0 +1,17 @@
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="David Srbecký" email="dsrbecky@gmail.com"/>
// <version>$Revision$</version>
// </file>
namespace Debugger.Interop.CorSym
{
using System.Runtime.InteropServices;
[ComImport, Guid("ED14AA72-78E2-4884-84E2-334293AE5214"), CoClass(typeof(CorSymWriter_deprecatedClass))]
public interface CorSymWriter_deprecated : ISymUnmanagedWriter
{
}
}

93
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorSym/CorSymWriter_deprecatedClass.cs

@ -0,0 +1,93 @@ @@ -0,0 +1,93 @@
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="David Srbecký" email="dsrbecky@gmail.com"/>
// <version>$Revision$</version>
// </file>
namespace Debugger.Interop.CorSym
{
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[ComImport, ClassInterface((short) 0), Guid("108296C1-281E-11D3-BD22-0000F80849BD"), ComConversionLoss, TypeLibType((short) 2)]
public class CorSymWriter_deprecatedClass : ISymUnmanagedWriter, CorSymWriter_deprecated
{
// Methods
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern void Abort();
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern void Close();
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern void CloseMethod();
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern void CloseNamespace();
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern void CloseScope([In] uint endOffset);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern void DefineConstant([In] IntPtr name, [In, MarshalAs(UnmanagedType.Struct)] object value, [In] uint cSig, [In] ref byte signature);
[return: MarshalAs(UnmanagedType.Interface)]
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern ISymUnmanagedDocumentWriter DefineDocument([In] IntPtr url, [In] ref Guid language, [In] ref Guid languageVendor, [In] ref Guid documentType);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern void DefineField([In] uint parent, [In] IntPtr name, [In] uint attributes, [In] uint cSig, [In] ref byte signature, [In] uint addrKind, [In] uint addr1, [In] uint addr2, [In] uint addr3);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern void DefineGlobalVariable([In] IntPtr name, [In] uint attributes, [In] uint cSig, [In] ref byte signature, [In] uint addrKind, [In] uint addr1, [In] uint addr2, [In] uint addr3);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern void DefineLocalVariable([In] IntPtr name, [In] uint attributes, [In] uint cSig, [In] ref byte signature, [In] uint addrKind, [In] uint addr1, [In] uint addr2, [In] uint addr3, [In] uint startOffset, [In] uint endOffset);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern void DefineParameter([In] IntPtr name, [In] uint attributes, [In] uint sequence, [In] uint addrKind, [In] uint addr1, [In] uint addr2, [In] uint addr3);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern void DefineSequencePoints([In, MarshalAs(UnmanagedType.Interface)] ISymUnmanagedDocumentWriter document, [In] uint spCount, [In] ref uint offsets, [In] ref uint lines, [In] ref uint columns, [In] ref uint endLines, [In] ref uint endColumns);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern void GetDebugInfo([In] ref uint pIDD, [In] uint cData, out uint pcData, [Out] IntPtr data);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern void Initialize([In, MarshalAs(UnmanagedType.IUnknown)] object emitter, [In] IntPtr filename, [In, MarshalAs(UnmanagedType.Interface)] IStream pIStream, [In] int fFullBuild);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern void Initialize2([In, MarshalAs(UnmanagedType.IUnknown)] object emitter, [In] IntPtr tempfilename, [In, MarshalAs(UnmanagedType.Interface)] IStream pIStream, [In] int fFullBuild, [In] IntPtr finalfilename);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern void OpenMethod([In] uint method);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern void OpenNamespace([In] IntPtr name);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern uint OpenScope([In] uint startOffset);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern void RemapToken([In] uint oldToken, [In] uint newToken);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern void SetMethodSourceRange([In, MarshalAs(UnmanagedType.Interface)] ISymUnmanagedDocumentWriter startDoc, [In] uint startLine, [In] uint startColumn, [In, MarshalAs(UnmanagedType.Interface)] ISymUnmanagedDocumentWriter endDoc, [In] uint endLine, [In] uint endColumn);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern void SetScopeRange([In] uint scopeID, [In] uint startOffset, [In] uint endOffset);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern void SetSymAttribute([In] uint parent, [In] IntPtr name, [In] uint cData, [In] ref byte data);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern void SetUserEntryPoint([In] uint entryMethod);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
public virtual extern void UsingNamespace([In] IntPtr fullName);
}
}

23
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorSym/ISequentialStream.cs

@ -0,0 +1,23 @@ @@ -0,0 +1,23 @@
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="David Srbecký" email="dsrbecky@gmail.com"/>
// <version>$Revision$</version>
// </file>
namespace Debugger.Interop.CorSym
{
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[ComImport, Guid("0C733A30-2A1C-11CE-ADE5-00AA0044773D"), InterfaceType((short) 1)]
public interface ISequentialStream
{
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void RemoteRead(out byte pv, [In] uint cb, out uint pcbRead);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void RemoteWrite([In] ref byte pv, [In] uint cb, out uint pcbWritten);
}
}

41
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorSym/IStream.cs

@ -0,0 +1,41 @@ @@ -0,0 +1,41 @@
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="David Srbecký" email="dsrbecky@gmail.com"/>
// <version>$Revision$</version>
// </file>
namespace Debugger.Interop.CorSym
{
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[ComImport, InterfaceType((short) 1), Guid("0000000C-0000-0000-C000-000000000046")]
public interface IStream : ISequentialStream
{
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void RemoteRead(out byte pv, [In] uint cb, out uint pcbRead);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void RemoteWrite([In] ref byte pv, [In] uint cb, out uint pcbWritten);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void RemoteSeek([In] _LARGE_INTEGER dlibMove, [In] uint dwOrigin, out _ULARGE_INTEGER plibNewPosition);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void SetSize([In] _ULARGE_INTEGER libNewSize);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void RemoteCopyTo([In, MarshalAs(UnmanagedType.Interface)] IStream pstm, [In] _ULARGE_INTEGER cb, out _ULARGE_INTEGER pcbRead, out _ULARGE_INTEGER pcbWritten);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void Commit([In] uint grfCommitFlags);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void Revert();
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void LockRegion([In] _ULARGE_INTEGER libOffset, [In] _ULARGE_INTEGER cb, [In] uint dwLockType);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void UnlockRegion([In] _ULARGE_INTEGER libOffset, [In] _ULARGE_INTEGER cb, [In] uint dwLockType);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void Stat(out tagSTATSTG pstatstg, [In] uint grfStatFlag);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void Clone([MarshalAs(UnmanagedType.Interface)] out IStream ppstm);
}
}

25
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorSym/ISymUnmanagedBinder.cs

@ -0,0 +1,25 @@ @@ -0,0 +1,25 @@
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="David Srbecký" email="dsrbecky@gmail.com"/>
// <version>$Revision$</version>
// </file>
namespace Debugger.Interop.CorSym
{
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[ComImport, InterfaceType((short) 1), Guid("AA544D42-28CB-11D3-BD22-0000F80849BD")]
public interface ISymUnmanagedBinder
{
[return: MarshalAs(UnmanagedType.Interface)]
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
ISymUnmanagedReader GetReaderForFile([In, MarshalAs(UnmanagedType.IUnknown)] object importer, [In] IntPtr filename, [In] IntPtr searchPath);
[return: MarshalAs(UnmanagedType.Interface)]
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
ISymUnmanagedReader GetReaderFromStream([In, MarshalAs(UnmanagedType.IUnknown)] object importer, [In, MarshalAs(UnmanagedType.Interface)] IStream pstream);
}
}

39
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorSym/ISymUnmanagedDocument.cs

@ -0,0 +1,39 @@ @@ -0,0 +1,39 @@
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="David Srbecký" email="dsrbecky@gmail.com"/>
// <version>$Revision$</version>
// </file>
namespace Debugger.Interop.CorSym
{
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[ComImport, Guid("40DE4037-7C81-3E1E-B022-AE1ABFF2CA08"), ComConversionLoss, InterfaceType((short) 1)]
public interface ISymUnmanagedDocument
{
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void GetURL([In] uint cchUrl, out uint pcchUrl, [Out] IntPtr szUrl);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
Guid GetDocumentType();
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
Guid GetLanguage();
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
Guid GetLanguageVendor();
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
Guid GetCheckSumAlgorithmId();
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void GetCheckSum([In] uint cData, out uint pcData, [Out] IntPtr data);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
uint FindClosestLine([In] uint line);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
int HasEmbeddedSource();
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
uint GetSourceLength();
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void GetSourceRange([In] uint startLine, [In] uint startColumn, [In] uint endLine, [In] uint endColumn, [In] uint cSourceBytes, out uint pcSourceBytes, [Out] IntPtr source);
}
}

23
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorSym/ISymUnmanagedDocumentWriter.cs

@ -0,0 +1,23 @@ @@ -0,0 +1,23 @@
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="David Srbecký" email="dsrbecky@gmail.com"/>
// <version>$Revision$</version>
// </file>
namespace Debugger.Interop.CorSym
{
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[ComImport, Guid("B01FAFEB-C450-3A4D-BEEC-B4CEEC01E006"), InterfaceType((short) 1)]
public interface ISymUnmanagedDocumentWriter
{
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void SetSource([In] uint sourceSize, [In] ref byte source);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void SetCheckSum([In] Guid algorithmId, [In] uint checkSumSize, [In] ref byte checkSum);
}
}

41
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorSym/ISymUnmanagedMethod.cs

@ -0,0 +1,41 @@ @@ -0,0 +1,41 @@
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="David Srbecký" email="dsrbecky@gmail.com"/>
// <version>$Revision$</version>
// </file>
namespace Debugger.Interop.CorSym
{
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[ComImport, InterfaceType((short) 1), ComConversionLoss, Guid("B62B923C-B500-3158-A543-24F307A8B7E1")]
public interface ISymUnmanagedMethod
{
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
uint GetToken();
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
uint GetSequencePointCount();
[return: MarshalAs(UnmanagedType.Interface)]
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
ISymUnmanagedScope GetRootScope();
[return: MarshalAs(UnmanagedType.Interface)]
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
ISymUnmanagedScope GetScopeFromOffset([In] uint offset);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
uint GetOffset([In, MarshalAs(UnmanagedType.Interface)] ISymUnmanagedDocument document, [In] uint line, [In] uint column);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void GetRanges([In, MarshalAs(UnmanagedType.Interface)] ISymUnmanagedDocument document, [In] uint line, [In] uint column, [In] uint cRanges, out uint pcRanges, [Out] IntPtr ranges);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void GetParameters([In] uint cParams, out uint pcParams, [Out] IntPtr @params);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void GetNamespace([MarshalAs(UnmanagedType.Interface)] out ISymUnmanagedNamespace pRetVal);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void GetSourceStartEnd([In, MarshalAs(UnmanagedType.LPArray, SizeParamIndex=0, SizeConst=2)] ISymUnmanagedDocument[] docs, [In, MarshalAs(UnmanagedType.LPArray, SizeParamIndex=0, SizeConst=2)] uint[] lines, [In, MarshalAs(UnmanagedType.LPArray, SizeParamIndex=0, SizeConst=2)] uint[] columns, out int pRetVal);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void GetSequencePoints([In] uint cPoints, out uint pcPoints, [Out, MarshalAs(UnmanagedType.LPArray)] uint[] offsets, [Out, MarshalAs(UnmanagedType.LPArray)] ISymUnmanagedDocument[] documents, [Out, MarshalAs(UnmanagedType.LPArray)] uint[] lines, [Out, MarshalAs(UnmanagedType.LPArray)] uint[] columns, [Out, MarshalAs(UnmanagedType.LPArray)] uint[] endLines, [Out, MarshalAs(UnmanagedType.LPArray)] uint[] endColumns);
}
}

25
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorSym/ISymUnmanagedNamespace.cs

@ -0,0 +1,25 @@ @@ -0,0 +1,25 @@
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="David Srbecký" email="dsrbecky@gmail.com"/>
// <version>$Revision$</version>
// </file>
namespace Debugger.Interop.CorSym
{
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[ComImport, InterfaceType((short) 1), ComConversionLoss, Guid("0DFF7289-54F8-11D3-BD28-0000F80849BD")]
public interface ISymUnmanagedNamespace
{
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void GetName([In] uint cchName, out uint pcchName, [Out] IntPtr szName);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void GetNamespaces([In] uint cNameSpaces, out uint pcNameSpaces, [Out] IntPtr namespaces);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void GetVariables([In] uint cVars, out uint pcVars, [Out] IntPtr pVars);
}
}

57
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorSym/ISymUnmanagedReader.cs

@ -0,0 +1,57 @@ @@ -0,0 +1,57 @@
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="David Srbecký" email="dsrbecky@gmail.com"/>
// <version>$Revision$</version>
// </file>
namespace Debugger.Interop.CorSym
{
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[ComImport, InterfaceType((short) 1), ComConversionLoss, Guid("B4CE6286-2A6B-3712-A3B7-1EE1DAD467B5")]
public interface ISymUnmanagedReader
{
[return: MarshalAs(UnmanagedType.Interface)]
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
ISymUnmanagedDocument GetDocument([In] IntPtr url, [In] Guid language, [In] Guid languageVendor, [In] Guid documentType);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void GetDocuments([In] uint cDocs, out uint pcDocs, [Out] IntPtr pDocs);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
uint GetUserEntryPoint();
[return: MarshalAs(UnmanagedType.Interface)]
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
ISymUnmanagedMethod GetMethod([In] uint token);
[return: MarshalAs(UnmanagedType.Interface)]
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
ISymUnmanagedMethod GetMethodByVersion([In] uint token, [In] int version);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void GetVariables([In] uint parent, [In] uint cVars, out uint pcVars, [Out] IntPtr pVars);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void GetGlobalVariables([In] uint cVars, out uint pcVars, [Out] IntPtr pVars);
[return: MarshalAs(UnmanagedType.Interface)]
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
ISymUnmanagedMethod GetMethodFromDocumentPosition([In, MarshalAs(UnmanagedType.Interface)] ISymUnmanagedDocument document, [In] uint line, [In] uint column);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void GetSymAttribute([In] uint parent, [In] IntPtr name, [In] uint cBuffer, out uint pcBuffer, [Out] IntPtr buffer);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void GetNamespaces([In] uint cNameSpaces, out uint pcNameSpaces, [Out] IntPtr namespaces);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void Initialize([In, MarshalAs(UnmanagedType.IUnknown)] object importer, [In] IntPtr filename, [In] IntPtr searchPath, [In, MarshalAs(UnmanagedType.Interface)] IStream pIStream);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void UpdateSymbolStore([In] IntPtr filename, [In, MarshalAs(UnmanagedType.Interface)] IStream pIStream);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void ReplaceSymbolStore([In] IntPtr filename, [In, MarshalAs(UnmanagedType.Interface)] IStream pIStream);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void GetSymbolStoreFileName([In] uint cchName, out uint pcchName, [Out] IntPtr szName);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void GetMethodsFromDocumentPosition([In, MarshalAs(UnmanagedType.Interface)] ISymUnmanagedDocument document, [In] uint line, [In] uint column, [In] uint cMethod, out uint pcMethod, [Out] IntPtr pRetVal);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void GetDocumentVersion([In, MarshalAs(UnmanagedType.Interface)] ISymUnmanagedDocument pDoc, out int version, out int pbCurrent);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void GetMethodVersion([In, MarshalAs(UnmanagedType.Interface)] ISymUnmanagedMethod pMethod, out int version);
}
}

23
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorSym/ISymUnmanagedReaderSymbolSearchInfo.cs

@ -0,0 +1,23 @@ @@ -0,0 +1,23 @@
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="David Srbecký" email="dsrbecky@gmail.com"/>
// <version>$Revision$</version>
// </file>
namespace Debugger.Interop.CorSym
{
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[ComImport, Guid("20D9645D-03CD-4E34-9C11-9848A5B084F1"), InterfaceType((short) 1)]
public interface ISymUnmanagedReaderSymbolSearchInfo
{
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void GetSymbolSearchInfoCount(out uint pcSearchInfo);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void GetSymbolSearchInfo([In] uint cSearchInfo, out uint pcSearchInfo, [MarshalAs(UnmanagedType.Interface)] out ISymUnmanagedSymbolSearchInfo rgpSearchInfo);
}
}

37
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorSym/ISymUnmanagedScope.cs

@ -0,0 +1,37 @@ @@ -0,0 +1,37 @@
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="David Srbecký" email="dsrbecky@gmail.com"/>
// <version>$Revision$</version>
// </file>
namespace Debugger.Interop.CorSym
{
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[ComImport, Guid("68005D0F-B8E0-3B01-84D5-A11A94154942"), ComConversionLoss, InterfaceType((short) 1)]
public interface ISymUnmanagedScope
{
[return: MarshalAs(UnmanagedType.Interface)]
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
ISymUnmanagedMethod GetMethod();
[return: MarshalAs(UnmanagedType.Interface)]
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
ISymUnmanagedScope GetParent();
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void GetChildren([In] uint cChildren, out uint pcChildren, [Out, MarshalAs(UnmanagedType.LPArray)] ISymUnmanagedScope[] children);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
uint GetStartOffset();
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
uint GetEndOffset();
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
uint GetLocalCount();
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void GetLocals([In] uint cLocals, out uint pcLocals, [Out, MarshalAs(UnmanagedType.LPArray)] ISymUnmanagedVariable[] locals);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void GetNamespaces([In] uint cNameSpaces, out uint pcNameSpaces, [Out, MarshalAs(UnmanagedType.LPArray)] ISymUnmanagedNamespace[] namespaces);
}
}

25
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorSym/ISymUnmanagedSymbolSearchInfo.cs

@ -0,0 +1,25 @@ @@ -0,0 +1,25 @@
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="David Srbecký" email="dsrbecky@gmail.com"/>
// <version>$Revision$</version>
// </file>
namespace Debugger.Interop.CorSym
{
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[ComImport, ComConversionLoss, InterfaceType((short) 1), Guid("F8B3534A-A46B-4980-B520-BEC4ACEABA8F")]
public interface ISymUnmanagedSymbolSearchInfo
{
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void GetSearchPathLength(out uint pcchPath);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void GetSearchPath([In] uint cchPath, out uint pcchPath, [Out] IntPtr szPath);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void GetHRESULT([MarshalAs(UnmanagedType.Error)] out int phr);
}
}

37
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorSym/ISymUnmanagedVariable.cs

@ -0,0 +1,37 @@ @@ -0,0 +1,37 @@
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="David Srbecký" email="dsrbecky@gmail.com"/>
// <version>$Revision$</version>
// </file>
namespace Debugger.Interop.CorSym
{
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[ComImport, Guid("9F60EEBE-2D9A-3F7C-BF58-80BC991C60BB"), InterfaceType((short) 1), ComConversionLoss]
public interface ISymUnmanagedVariable
{
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void GetName([In] uint cchName, out uint pcchName, [Out] IntPtr szName);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
uint GetAttributes();
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void GetSignature([In] uint cSig, out uint pcSig, [Out] IntPtr sig);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
uint GetAddressKind();
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
uint GetAddressField1();
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
uint GetAddressField2();
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
uint GetAddressField3();
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
uint GetStartOffset();
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
uint GetEndOffset();
}
}

68
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorSym/ISymUnmanagedWriter.cs

@ -0,0 +1,68 @@ @@ -0,0 +1,68 @@
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="David Srbecký" email="dsrbecky@gmail.com"/>
// <version>$Revision$</version>
// </file>
namespace Debugger.Interop.CorSym
{
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[ComImport, ComConversionLoss, InterfaceType((short) 1), Guid("ED14AA72-78E2-4884-84E2-334293AE5214")]
public interface ISymUnmanagedWriter
{
[return: MarshalAs(UnmanagedType.Interface)]
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
ISymUnmanagedDocumentWriter DefineDocument([In] IntPtr url, [In] ref Guid language, [In] ref Guid languageVendor, [In] ref Guid documentType);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void SetUserEntryPoint([In] uint entryMethod);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void OpenMethod([In] uint method);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void CloseMethod();
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
uint OpenScope([In] uint startOffset);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void CloseScope([In] uint endOffset);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void SetScopeRange([In] uint scopeID, [In] uint startOffset, [In] uint endOffset);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void DefineLocalVariable([In] IntPtr name, [In] uint attributes, [In] uint cSig, [In] ref byte signature, [In] uint addrKind, [In] uint addr1, [In] uint addr2, [In] uint addr3, [In] uint startOffset, [In] uint endOffset);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void DefineParameter([In] IntPtr name, [In] uint attributes, [In] uint sequence, [In] uint addrKind, [In] uint addr1, [In] uint addr2, [In] uint addr3);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void DefineField([In] uint parent, [In] IntPtr name, [In] uint attributes, [In] uint cSig, [In] ref byte signature, [In] uint addrKind, [In] uint addr1, [In] uint addr2, [In] uint addr3);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void DefineGlobalVariable([In] IntPtr name, [In] uint attributes, [In] uint cSig, [In] ref byte signature, [In] uint addrKind, [In] uint addr1, [In] uint addr2, [In] uint addr3);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void Close();
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void SetSymAttribute([In] uint parent, [In] IntPtr name, [In] uint cData, [In] ref byte data);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void OpenNamespace([In] IntPtr name);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void CloseNamespace();
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void UsingNamespace([In] IntPtr fullName);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void SetMethodSourceRange([In, MarshalAs(UnmanagedType.Interface)] ISymUnmanagedDocumentWriter startDoc, [In] uint startLine, [In] uint startColumn, [In, MarshalAs(UnmanagedType.Interface)] ISymUnmanagedDocumentWriter endDoc, [In] uint endLine, [In] uint endColumn);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void Initialize([In, MarshalAs(UnmanagedType.IUnknown)] object emitter, [In] IntPtr filename, [In, MarshalAs(UnmanagedType.Interface)] IStream pIStream, [In] int fFullBuild);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void GetDebugInfo([In] ref uint pIDD, [In] uint cData, out uint pcData, [Out] IntPtr data);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void DefineSequencePoints([In, MarshalAs(UnmanagedType.Interface)] ISymUnmanagedDocumentWriter document, [In] uint spCount, [In] ref uint offsets, [In] ref uint lines, [In] ref uint columns, [In] ref uint endLines, [In] ref uint endColumns);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void RemapToken([In] uint oldToken, [In] uint newToken);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void Initialize2([In, MarshalAs(UnmanagedType.IUnknown)] object emitter, [In] IntPtr tempfilename, [In, MarshalAs(UnmanagedType.Interface)] IStream pIStream, [In] int fFullBuild, [In] IntPtr finalfilename);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void DefineConstant([In] IntPtr name, [In, MarshalAs(UnmanagedType.Struct)] object value, [In] uint cSig, [In] ref byte signature);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void Abort();
}
}

74
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorSym/ISymUnmanagedWriter2.cs

@ -0,0 +1,74 @@ @@ -0,0 +1,74 @@
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="David Srbecký" email="dsrbecky@gmail.com"/>
// <version>$Revision$</version>
// </file>
namespace Debugger.Interop.CorSym
{
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[ComImport, Guid("0B97726E-9E6D-4F05-9A26-424022093CAA"), InterfaceType((short) 1)]
public interface ISymUnmanagedWriter2 : ISymUnmanagedWriter
{
[return: MarshalAs(UnmanagedType.Interface)]
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
ISymUnmanagedDocumentWriter DefineDocument([In] IntPtr url, [In] ref Guid language, [In] ref Guid languageVendor, [In] ref Guid documentType);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void SetUserEntryPoint([In] uint entryMethod);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void OpenMethod([In] uint method);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void CloseMethod();
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
uint OpenScope([In] uint startOffset);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void CloseScope([In] uint endOffset);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void SetScopeRange([In] uint scopeID, [In] uint startOffset, [In] uint endOffset);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void DefineLocalVariable([In] IntPtr name, [In] uint attributes, [In] uint cSig, [In] ref byte signature, [In] uint addrKind, [In] uint addr1, [In] uint addr2, [In] uint addr3, [In] uint startOffset, [In] uint endOffset);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void DefineParameter([In] IntPtr name, [In] uint attributes, [In] uint sequence, [In] uint addrKind, [In] uint addr1, [In] uint addr2, [In] uint addr3);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void DefineField([In] uint parent, [In] IntPtr name, [In] uint attributes, [In] uint cSig, [In] ref byte signature, [In] uint addrKind, [In] uint addr1, [In] uint addr2, [In] uint addr3);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void DefineGlobalVariable([In] IntPtr name, [In] uint attributes, [In] uint cSig, [In] ref byte signature, [In] uint addrKind, [In] uint addr1, [In] uint addr2, [In] uint addr3);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void Close();
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void SetSymAttribute([In] uint parent, [In] IntPtr name, [In] uint cData, [In] ref byte data);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void OpenNamespace([In] IntPtr name);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void CloseNamespace();
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void UsingNamespace([In] IntPtr fullName);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void SetMethodSourceRange([In, MarshalAs(UnmanagedType.Interface)] ISymUnmanagedDocumentWriter startDoc, [In] uint startLine, [In] uint startColumn, [In, MarshalAs(UnmanagedType.Interface)] ISymUnmanagedDocumentWriter endDoc, [In] uint endLine, [In] uint endColumn);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void Initialize([In, MarshalAs(UnmanagedType.IUnknown)] object emitter, [In] IntPtr filename, [In, MarshalAs(UnmanagedType.Interface)] IStream pIStream, [In] int fFullBuild);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void GetDebugInfo([In] ref uint pIDD, [In] uint cData, out uint pcData, [Out] IntPtr data);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void DefineSequencePoints([In, MarshalAs(UnmanagedType.Interface)] ISymUnmanagedDocumentWriter document, [In] uint spCount, [In] ref uint offsets, [In] ref uint lines, [In] ref uint columns, [In] ref uint endLines, [In] ref uint endColumns);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void RemapToken([In] uint oldToken, [In] uint newToken);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void Initialize2([In, MarshalAs(UnmanagedType.IUnknown)] object emitter, [In] IntPtr tempfilename, [In, MarshalAs(UnmanagedType.Interface)] IStream pIStream, [In] int fFullBuild, [In] IntPtr finalfilename);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void DefineConstant([In] IntPtr name, [In, MarshalAs(UnmanagedType.Struct)] object value, [In] uint cSig, [In] ref byte signature);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void Abort();
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void DefineLocalVariable2([In] IntPtr name, [In] uint attributes, [In] uint sigToken, [In] uint addrKind, [In] uint addr1, [In] uint addr2, [In] uint addr3, [In] uint startOffset, [In] uint endOffset);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void DefineGlobalVariable2([In] IntPtr name, [In] uint attributes, [In] uint sigToken, [In] uint addrKind, [In] uint addr1, [In] uint addr2, [In] uint addr3);
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void DefineConstant2([In] IntPtr name, [In, MarshalAs(UnmanagedType.Struct)] object value, [In] uint sigToken);
}
}

20
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorSym/_FILETIME.cs

@ -0,0 +1,20 @@ @@ -0,0 +1,20 @@
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="David Srbecký" email="dsrbecky@gmail.com"/>
// <version>$Revision$</version>
// </file>
namespace Debugger.Interop.CorSym
{
using System;
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential, Pack=4)]
public struct _FILETIME
{
public uint dwLowDateTime;
public uint dwHighDateTime;
}
}

19
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorSym/_LARGE_INTEGER.cs

@ -0,0 +1,19 @@ @@ -0,0 +1,19 @@
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="David Srbecký" email="dsrbecky@gmail.com"/>
// <version>$Revision$</version>
// </file>
namespace Debugger.Interop.CorSym
{
using System;
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential, Pack=8)]
public struct _LARGE_INTEGER
{
public long QuadPart;
}
}

19
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorSym/_ULARGE_INTEGER.cs

@ -0,0 +1,19 @@ @@ -0,0 +1,19 @@
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="David Srbecký" email="dsrbecky@gmail.com"/>
// <version>$Revision$</version>
// </file>
namespace Debugger.Interop.CorSym
{
using System;
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential, Pack=8)]
public struct _ULARGE_INTEGER
{
public ulong QuadPart;
}
}

30
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Interop/CorSym/tagSTATSTG.cs

@ -0,0 +1,30 @@ @@ -0,0 +1,30 @@
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="David Srbecký" email="dsrbecky@gmail.com"/>
// <version>$Revision$</version>
// </file>
namespace Debugger.Interop.CorSym
{
using System;
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential, Pack=8)]
public struct tagSTATSTG
{
[MarshalAs(UnmanagedType.LPWStr)]
public string pwcsName;
public uint type;
public _ULARGE_INTEGER cbSize;
public _FILETIME mtime;
public _FILETIME ctime;
public _FILETIME atime;
public uint grfMode;
public uint grfLocksSupported;
public Guid clsid;
public uint grfStateBits;
public uint reserved;
}
}

92
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Modules/Module.cs

@ -7,11 +7,11 @@ @@ -7,11 +7,11 @@
using System;
using System.IO;
using System.Diagnostics.SymbolStore;
using System.Runtime.InteropServices;
using Debugger.Wrappers.CorDebug;
using Debugger.Interop.MetaData;
using Debugger.Wrappers.CorSym;
using Debugger.Wrappers.MetaData;
namespace Debugger
{
@ -21,12 +21,11 @@ namespace Debugger @@ -21,12 +21,11 @@ namespace Debugger
bool unloaded = false;
string fullPath;
string fullPathPDB;
int orderOfLoading = 0;
readonly ICorDebugModule corModule;
SymReader symReader;
IMetaDataImport metaDataInterface;
ICorDebugModule corModule;
ISymUnmanagedReader symReader;
MetaData metaData;
public NDebugger Debugger {
get {
@ -36,7 +35,7 @@ namespace Debugger @@ -36,7 +35,7 @@ namespace Debugger
internal MetaData MetaData {
get {
return new MetaData(metaDataInterface);
return metaData;
}
}
@ -46,7 +45,7 @@ namespace Debugger @@ -46,7 +45,7 @@ namespace Debugger
}
}
public SymReader SymReader {
public ISymUnmanagedReader SymReader {
get {
return symReader;
}
@ -126,58 +125,11 @@ namespace Debugger @@ -126,58 +125,11 @@ namespace Debugger
corModule = pModule;
Guid metaDataInterfaceGuid = new Guid("{ 0x7dac8207, 0xd3ae, 0x4c75, { 0x9b, 0x67, 0x92, 0x80, 0x1a, 0x49, 0x7d, 0x44 } }");
object pMetaDataInterface = pModule.GetMetaDataInterface(ref metaDataInterfaceGuid);
metaData = new MetaData(pModule);
metaDataInterface = (IMetaDataImport) pMetaDataInterface;
fullPath = pModule.Name;
uint pStringLenght = 0; // Terminating character included in pStringLenght
IntPtr pString = IntPtr.Zero;
pModule.GetName(pStringLenght,
out pStringLenght, // real string lenght
pString);
// Allocate string buffer
pString = Marshal.AllocHGlobal((int)pStringLenght * 2);
pModule.GetName(pStringLenght,
out pStringLenght, // real string lenght
pString);
fullPath = Marshal.PtrToStringUni(pString);
Marshal.FreeHGlobal(pString);
string tempPath = String.Empty;
string pdbFilename = String.Empty;
string oldPdbPath = String.Empty;
string newPdbPath = String.Empty;
try {
tempPath = Path.Combine(Path.GetTempPath(), Path.Combine("DebeggerPdb", new Random().Next().ToString()));
pdbFilename = Path.GetFileNameWithoutExtension(FullPath) + ".pdb";
oldPdbPath = Path.Combine(Path.GetDirectoryName(FullPath), pdbFilename);
newPdbPath = Path.Combine(tempPath, pdbFilename);
if (File.Exists(oldPdbPath)) {
Directory.CreateDirectory(tempPath);
File.Move(oldPdbPath, newPdbPath);
}
fullPathPDB = newPdbPath;
} catch {}
SymBinder symBinder = new SymBinder();
IntPtr ptr = IntPtr.Zero;
try {
ptr = Marshal.GetIUnknownForObject(metaDataInterface);
symReader = (SymReader)symBinder.GetReader(ptr, fullPath, tempPath);
} catch (System.Exception) {
symReader = null;
} finally {
if (ptr != IntPtr.Zero) {
Marshal.Release(ptr);
}
}
try {
if (File.Exists(newPdbPath) && !File.Exists(oldPdbPath)) {
File.Copy(newPdbPath, oldPdbPath);
}
} catch {}
symReader = metaData.GetSymReader(fullPath, null);
JMCStatus = SymbolsLoaded;
}
@ -191,29 +143,7 @@ namespace Debugger @@ -191,29 +143,7 @@ namespace Debugger
public void Dispose()
{
if (symReader != null) {
try {
System.Reflection.MethodInfo m = symReader.GetType().GetMethod("{dtor}");
m.Invoke(symReader, null);
} catch {
Console.WriteLine("symReader release failed. ({dtor})");
} finally {
symReader = null;
}
try {
File.Delete(fullPathPDB);
} catch {
Console.WriteLine("Could not delete pdb temp file");
}
}
try {
Marshal.FinalReleaseComObject(metaDataInterface);
} catch {
Console.WriteLine("metaDataInterface release failed. (FinalReleaseComObject)");
} finally {
metaDataInterface = null;
}
metaData.Dispose();
unloaded = true;
}

1
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Threads/Exception.cs

@ -11,7 +11,6 @@ using System.Runtime.InteropServices; @@ -11,7 +11,6 @@ using System.Runtime.InteropServices;
using System.Threading;
using Debugger.Wrappers.CorDebug;
using Debugger.Interop.MetaData;
namespace Debugger
{

81
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Threads/Function.cs

@ -6,14 +6,13 @@ @@ -6,14 +6,13 @@
// </file>
using System;
using System.Diagnostics.SymbolStore;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Threading;
using Debugger.Wrappers.CorDebug;
using Debugger.Interop.MetaData;
using System.Collections.Generic;
using Debugger.Wrappers.CorSym;
using Debugger.Wrappers.MetaData;
namespace Debugger
{
@ -146,7 +145,7 @@ namespace Debugger @@ -146,7 +145,7 @@ namespace Debugger
}
}
internal ISymbolReader symReader {
internal ISymUnmanagedReader symReader {
get {
if (module.SymbolsLoaded == false) return null;
if (module.SymReader == null) return null;
@ -154,13 +153,13 @@ namespace Debugger @@ -154,13 +153,13 @@ namespace Debugger
}
}
internal ISymbolMethod symMethod {
internal ISymUnmanagedMethod symMethod {
get {
if (symReader == null) {
return null;
} else {
try {
return symReader.GetMethod(new SymbolToken((int)methodProps.Token));
return symReader.GetMethod(methodProps.Token);
} catch {
return null;
}
@ -256,88 +255,72 @@ namespace Debugger @@ -256,88 +255,72 @@ namespace Debugger
/// </summary>
SourcecodeSegment GetSegmentForOffet(uint offset)
{
ISymbolMethod symMethod;
ISymUnmanagedMethod symMethod;
symMethod = this.symMethod;
if (symMethod == null) {
return null;
}
int sequencePointCount = symMethod.SequencePointCount;
int[] offsets = new int[sequencePointCount];
int[] startLine = new int[sequencePointCount];
int[] startColumn = new int[sequencePointCount];
int[] endLine = new int[sequencePointCount];
int[] endColumn = new int[sequencePointCount];
ISymbolDocument[] Doc = new ISymbolDocument[sequencePointCount];
symMethod.GetSequencePoints(
offsets,
Doc,
startLine,
startColumn,
endLine,
endColumn
);
uint sequencePointCount = symMethod.SequencePointCount;
SequencePoint[] sequencePoints = symMethod.SequencePoints;
SourcecodeSegment retVal = new SourcecodeSegment();
// Get i for which: offsets[i] <= offset < offsets[i + 1]
// or fallback to first element if offset < offsets[0]
for (int i = sequencePointCount - 1; i >= 0; i--) // backwards
if (offsets[i] <= offset || i == 0) {
for (int i = (int)sequencePointCount - 1; i >= 0; i--) // backwards
if (sequencePoints[i].Offset <= offset || i == 0) {
// Set inforamtion about current IL range
int codeSize = (int)corFunction.ILCode.Size;
retVal.ILOffset = (int)offset;
retVal.ILStart = offsets[i];
retVal.ILEnd = (i + 1 < sequencePointCount) ? offsets[i + 1] : codeSize;
retVal.ILStart = (int)sequencePoints[i].Offset;
retVal.ILEnd = (i + 1 < sequencePointCount) ? (int)sequencePoints[i+1].Offset : codeSize;
// 0xFeeFee means "code generated by compiler"
// If we are in generated sequence use to closest real one instead,
// extend the ILStart and ILEnd to include the 'real' sequence
// Look ahead for 'real' sequence
while (i + 1 < sequencePointCount && startLine[i] == 0xFeeFee) {
while (i + 1 < sequencePointCount && sequencePoints[i].Line == 0xFeeFee) {
i++;
retVal.ILEnd = (i + 1 < sequencePointCount) ? offsets[i + 1] : codeSize;
retVal.ILEnd = (i + 1 < sequencePointCount) ? (int)sequencePoints[i+1].Offset : codeSize;
}
// Look back for 'real' sequence
while (i - 1 >= 0 && startLine[i] == 0xFeeFee) {
while (i - 1 >= 0 && sequencePoints[i].Line == 0xFeeFee) {
i--;
retVal.ILStart = offsets[i];
retVal.ILStart = (int)sequencePoints[i].Offset;
}
// Wow, there are no 'real' sequences
if (startLine[i] == 0xFeeFee) {
if (sequencePoints[i].Line == 0xFeeFee) {
return null;
}
retVal.ModuleFilename = module.FullPath;
retVal.SourceFullFilename = Doc[i].URL;
retVal.SourceFullFilename = sequencePoints[i].Document.URL;
retVal.StartLine = startLine[i];
retVal.StartColumn = startColumn[i];
retVal.EndLine = endLine[i];
retVal.EndColumn = endColumn[i];
retVal.StartLine = (int)sequencePoints[i].Line;
retVal.StartColumn = (int)sequencePoints[i].Column;
retVal.EndLine = (int)sequencePoints[i].EndLine;
retVal.EndColumn = (int)sequencePoints[i].EndColumn;
List<int> stepRanges = new List<int>();
for (int j = 0; j < sequencePointCount; j++) {
// Step over compiler generated sequences and current statement
// 0xFeeFee means "code generated by compiler"
if (startLine[j] == 0xFeeFee || j == i) {
if (sequencePoints[j].Line == 0xFeeFee || j == i) {
// Add start offset or remove last end (to connect two ranges into one)
if (stepRanges.Count > 0 && stepRanges[stepRanges.Count - 1] == offsets[j]) {
if (stepRanges.Count > 0 && stepRanges[stepRanges.Count - 1] == sequencePoints[j].Offset) {
stepRanges.RemoveAt(stepRanges.Count - 1);
} else {
stepRanges.Add(offsets[j]);
stepRanges.Add((int)sequencePoints[j].Offset);
}
// Add end offset | handle last sequence point
if (j + 1 < sequencePointCount) {
stepRanges.Add(offsets[j + 1]);
stepRanges.Add((int)sequencePoints[j+1].Offset);
} else {
stepRanges.Add(codeSize);
}
@ -470,7 +453,7 @@ namespace Debugger @@ -470,7 +453,7 @@ namespace Debugger
public IEnumerable<Variable> LocalVariables {
get {
if (symMethod != null) { // TODO: Is this needed?
ISymbolScope symRootScope = symMethod.RootScope;
ISymUnmanagedScope symRootScope = symMethod.RootScope;
foreach(Variable var in GetLocalVariablesInScope(symRootScope)) {
if (!var.Name.StartsWith("CS$")) { // TODO: Generalize
yield return var;
@ -480,19 +463,19 @@ namespace Debugger @@ -480,19 +463,19 @@ namespace Debugger
}
}
IEnumerable<Variable> GetLocalVariablesInScope(ISymbolScope symScope)
IEnumerable<Variable> GetLocalVariablesInScope(ISymUnmanagedScope symScope)
{
foreach (ISymbolVariable symVar in symScope.GetLocals()) {
foreach (ISymUnmanagedVariable symVar in symScope.Locals) {
yield return GetLocalVariable(symVar);
}
foreach(ISymbolScope childScope in symScope.GetChildren()) {
foreach(ISymUnmanagedScope childScope in symScope.Children) {
foreach(Variable var in GetLocalVariablesInScope(childScope)) {
yield return var;
}
}
}
Variable GetLocalVariable(ISymbolVariable symVar)
Variable GetLocalVariable(ISymUnmanagedVariable symVar)
{
return new Variable(debugger,
symVar.Name,

10
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Threads/Process.cs

@ -11,7 +11,6 @@ using System.Runtime.InteropServices; @@ -11,7 +11,6 @@ using System.Runtime.InteropServices;
using System.Threading;
using Debugger.Wrappers.CorDebug;
using Debugger.Interop.MetaData;
namespace Debugger
{
@ -87,11 +86,6 @@ namespace Debugger @@ -87,11 +86,6 @@ namespace Debugger
{
debugger.TraceMessage("Executing " + filename);
Debugger.Interop.CorDebug._SECURITY_ATTRIBUTES secAttr = new Debugger.Interop.CorDebug._SECURITY_ATTRIBUTES();
secAttr.bInheritHandle = 0;
secAttr.lpSecurityDescriptor = IntPtr.Zero;
secAttr.nLength = (uint)sizeof(Debugger.Interop.CorDebug._SECURITY_ATTRIBUTES); //=12?
uint[] processStartupInfo = new uint[17];
processStartupInfo[0] = sizeof(uint) * 17;
uint[] processInfo = new uint[4];
@ -109,8 +103,8 @@ namespace Debugger @@ -109,8 +103,8 @@ namespace Debugger
filename, // lpApplicationName
// If we do not prepend " ", the first argument migh just get lost
" " + arguments, // lpCommandLine
ref secAttr, // lpProcessAttributes
ref secAttr, // lpThreadAttributes
ref _SECURITY_ATTRIBUTES.Default, // lpProcessAttributes
ref _SECURITY_ATTRIBUTES.Default, // lpThreadAttributes
1,//TRUE // bInheritHandles
0x00000010 /*CREATE_NEW_CONSOLE*/, // dwCreationFlags
IntPtr.Zero, // lpEnvironment

24
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Threads/SourcecodeSegment.cs

@ -6,9 +6,9 @@ @@ -6,9 +6,9 @@
// </file>
using System;
using System.Diagnostics.SymbolStore;
using Debugger.Wrappers.CorDebug;
using Debugger.Wrappers.CorSym;
namespace Debugger
{
@ -159,9 +159,9 @@ namespace Debugger @@ -159,9 +159,9 @@ namespace Debugger
ilOffset = 0;
Module module = null;
ISymbolReader symReader = null;
ISymbolDocument symDoc = null;
ISymUnmanagedReader symReader = null;
ISymUnmanagedDocument symDoc = null;
// Try to get doc from moduleFilename
if (moduleFilename != null) {
try {
@ -192,25 +192,25 @@ namespace Debugger @@ -192,25 +192,25 @@ namespace Debugger
return false; //Not found
}
int validLine;
uint validLine;
try {
validLine = symDoc.FindClosestLine(StartLine);
validLine = symDoc.FindClosestLine((uint)StartLine);
} catch {
return false; //Not found
}
if (validLine != StartLine && normailize) {
StartLine = validLine;
EndLine = validLine;
StartLine = (int)validLine;
EndLine = (int)validLine;
StartColumn = 0;
EndColumn = 0;
}
ISymbolMethod symMethod;
symMethod = symReader.GetMethodFromDocumentPosition(symDoc, validLine, StartColumn);
ISymUnmanagedMethod symMethod;
symMethod = symReader.GetMethodFromDocumentPosition(symDoc, validLine, (uint)StartColumn);
function = module.CorModule.GetFunctionFromToken((uint)symMethod.Token.GetToken());
function = module.CorModule.GetFunctionFromToken(symMethod.Token);
ilOffset = symMethod.GetOffset(symDoc, validLine, StartColumn);
ilOffset = (int)symMethod.GetOffset(symDoc, validLine, (uint)StartColumn);
return true;
}

1
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Threads/Thread.cs

@ -11,7 +11,6 @@ using System.Runtime.InteropServices; @@ -11,7 +11,6 @@ using System.Runtime.InteropServices;
using System.Threading;
using Debugger.Wrappers.CorDebug;
using Debugger.Interop.MetaData;
namespace Debugger
{

2
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Variables/Evals/Eval.cs

@ -9,9 +9,7 @@ using System; @@ -9,9 +9,7 @@ using System;
using System.Collections;
using System.Runtime.InteropServices;
using Debugger;
using Debugger.Wrappers.CorDebug;
using Debugger.Interop.MetaData;
namespace Debugger
{

2
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Variables/ObjectValue.cs

@ -12,7 +12,7 @@ using System.Collections.Specialized; @@ -12,7 +12,7 @@ using System.Collections.Specialized;
using System.Runtime.InteropServices;
using Debugger.Wrappers.CorDebug;
using Debugger.Interop.MetaData;
using Debugger.Wrappers.MetaData;
namespace Debugger
{

71
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Variables/PrimitiveValue.cs

@ -25,55 +25,12 @@ namespace Debugger @@ -25,55 +25,12 @@ namespace Debugger
}
}
public unsafe object Primitive {
public object Primitive {
get {
if (CorType == CorElementType.STRING) {
uint pStringLenght = 1; // Terminating character NOT included in pStringLenght
IntPtr pString = Marshal.AllocHGlobal(2);
// For some reason this function does not accept IntPtr.Zero
(corValue.CastTo<ICorDebugStringValue>()).GetString(pStringLenght,
out pStringLenght,
pString);
// Re-allocate string buffer
Marshal.FreeHGlobal(pString);
// Termination null is not included in pStringLenght
pStringLenght++;
pString = Marshal.AllocHGlobal((int)pStringLenght * 2);
(corValue.CastTo<ICorDebugStringValue>()).GetString(pStringLenght,
out pStringLenght,
pString);
string text = Marshal.PtrToStringUni(pString);
Marshal.FreeHGlobal(pString);
return text;
return (corValue.CastTo<ICorDebugStringValue>()).String;
} else {
object retValue;
IntPtr pValue = Marshal.AllocHGlobal(8);
(corValue.CastTo<ICorDebugGenericValue>()).GetValue(pValue);
switch(CorType)
{
case CorElementType.BOOLEAN: retValue = *((System.Boolean*)pValue); break;
case CorElementType.CHAR: retValue = *((System.Char*)pValue); break;
case CorElementType.I1: retValue = *((System.SByte*)pValue); break;
case CorElementType.U1: retValue = *((System.Byte*)pValue); break;
case CorElementType.I2: retValue = *((System.Int16*)pValue); break;
case CorElementType.U2: retValue = *((System.UInt16*)pValue); break;
case CorElementType.I4: retValue = *((System.Int32*)pValue); break;
case CorElementType.U4: retValue = *((System.UInt32*)pValue); break;
case CorElementType.I8: retValue = *((System.Int64*)pValue); break;
case CorElementType.U8: retValue = *((System.UInt64*)pValue); break;
case CorElementType.R4: retValue = *((System.Single*)pValue); break;
case CorElementType.R8: retValue = *((System.Double*)pValue); break;
case CorElementType.I: retValue = *((int*)pValue); break;
case CorElementType.U: retValue = *((uint*)pValue); break;
default: retValue = null; break;
}
Marshal.FreeHGlobal(pValue);
return retValue;
return (corValue.CastTo<ICorDebugGenericValue>()).Value;
}
}
set {
@ -88,27 +45,7 @@ namespace Debugger @@ -88,27 +45,7 @@ namespace Debugger
if (CorType == CorElementType.STRING) {
throw new NotSupportedException();
} else {
IntPtr pValue = Marshal.AllocHGlobal(8);
switch(CorType)
{
case CorElementType.BOOLEAN: *((System.Boolean*)pValue) = (System.Boolean)newValue; break;
case CorElementType.CHAR: *((System.Char*)pValue) = (System.Char)newValue; break;
case CorElementType.I1: *((System.SByte*)pValue) = (System.SByte)newValue; break;
case CorElementType.U1: *((System.Byte*)pValue) = (System.Byte)newValue; break;
case CorElementType.I2: *((System.Int16*)pValue) = (System.Int16)newValue; break;
case CorElementType.U2: *((System.UInt16*)pValue) = (System.UInt16)newValue; break;
case CorElementType.I4: *((System.Int32*)pValue) = (System.Int32)newValue; break;
case CorElementType.U4: *((System.UInt32*)pValue) = (System.UInt32)newValue; break;
case CorElementType.I8: *((System.Int64*)pValue) = (System.Int64)newValue; break;
case CorElementType.U8: *((System.UInt64*)pValue) = (System.UInt64)newValue; break;
case CorElementType.R4: *((System.Single*)pValue) = (System.Single)newValue; break;
case CorElementType.R8: *((System.Double*)pValue) = (System.Double)newValue; break;
case CorElementType.I: *((int*)pValue) = (int)newValue; break;
case CorElementType.U: *((uint*)pValue) = (uint)newValue; break;
default: throw new NotSupportedException();
}
(corValue.CastTo<ICorDebugGenericValue>()).SetValue(pValue);
Marshal.FreeHGlobal(pValue);
(corValue.CastTo<ICorDebugGenericValue>()).Value = newValue;
}
OnValueChanged();
}

21
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Variables/Value.cs

@ -147,7 +147,26 @@ namespace Debugger @@ -147,7 +147,26 @@ namespace Debugger
default: return null;
}
}
/// <summary>
/// Returns true if the value is signed or unsigned integer of any siz
/// </summary>
public bool IsInteger {
get {
CorElementType corType = CorType;
return corType == CorElementType.I1 ||
corType == CorElementType.U1 ||
corType == CorElementType.I2 ||
corType == CorElementType.U2 ||
corType == CorElementType.I4 ||
corType == CorElementType.U4 ||
corType == CorElementType.I8 ||
corType == CorElementType.U8 ||
corType == CorElementType.I ||
corType == CorElementType.U;
}
}
internal static string CorTypeToString(CorElementType corType)
{
Type manType = CorTypeToManagedType(corType);

20
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/CorDebug.cs → src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/CorDebug.cs

@ -5,12 +5,14 @@ @@ -5,12 +5,14 @@
// <version>$Revision$</version>
// </file>
// This file is automatically generated - any changes will be lost
namespace Debugger.Wrappers.CorDebug
{
using System;
public class CorDebug
public partial class CorDebug
{
private Debugger.Interop.CorDebug.CorDebug wrappedObject;
@ -26,11 +28,25 @@ namespace Debugger.Wrappers.CorDebug @@ -26,11 +28,25 @@ namespace Debugger.Wrappers.CorDebug
public CorDebug(Debugger.Interop.CorDebug.CorDebug wrappedObject)
{
this.wrappedObject = wrappedObject;
ResourceManager.TrackCOMObject(wrappedObject, typeof(CorDebug));
}
public static CorDebug Wrap(Debugger.Interop.CorDebug.CorDebug objectToWrap)
{
return new CorDebug(objectToWrap);
if ((objectToWrap != null))
{
return new CorDebug(objectToWrap);
} else
{
return null;
}
}
~CorDebug()
{
object o = wrappedObject;
wrappedObject = null;
ResourceManager.ReleaseCOMObject(o, typeof(CorDebug));
}
public bool Is<T>() where T: class

2
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/CorDebugChainReason.cs → src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/CorDebugChainReason.cs

@ -5,6 +5,8 @@ @@ -5,6 +5,8 @@
// <version>$Revision$</version>
// </file>
// This file is automatically generated - any changes will be lost
namespace Debugger.Wrappers.CorDebug
{
using System;

20
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/CorDebugClass.cs → src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/CorDebugClass.cs

@ -5,12 +5,14 @@ @@ -5,12 +5,14 @@
// <version>$Revision$</version>
// </file>
// This file is automatically generated - any changes will be lost
namespace Debugger.Wrappers.CorDebug
{
using System;
public class CorDebugClass
public partial class CorDebugClass
{
private Debugger.Interop.CorDebug.CorDebugClass wrappedObject;
@ -26,11 +28,25 @@ namespace Debugger.Wrappers.CorDebug @@ -26,11 +28,25 @@ namespace Debugger.Wrappers.CorDebug
public CorDebugClass(Debugger.Interop.CorDebug.CorDebugClass wrappedObject)
{
this.wrappedObject = wrappedObject;
ResourceManager.TrackCOMObject(wrappedObject, typeof(CorDebugClass));
}
public static CorDebugClass Wrap(Debugger.Interop.CorDebug.CorDebugClass objectToWrap)
{
return new CorDebugClass(objectToWrap);
if ((objectToWrap != null))
{
return new CorDebugClass(objectToWrap);
} else
{
return null;
}
}
~CorDebugClass()
{
object o = wrappedObject;
wrappedObject = null;
ResourceManager.ReleaseCOMObject(o, typeof(CorDebugClass));
}
public bool Is<T>() where T: class

2
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/CorDebugCreateProcessFlags.cs → src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/CorDebugCreateProcessFlags.cs

@ -5,6 +5,8 @@ @@ -5,6 +5,8 @@
// <version>$Revision$</version>
// </file>
// This file is automatically generated - any changes will be lost
namespace Debugger.Wrappers.CorDebug
{
using System;

2
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/CorDebugHandleType.cs → src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/CorDebugHandleType.cs

@ -5,6 +5,8 @@ @@ -5,6 +5,8 @@
// <version>$Revision$</version>
// </file>
// This file is automatically generated - any changes will be lost
namespace Debugger.Wrappers.CorDebug
{
using System;

2
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/CorDebugIntercept.cs → src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/CorDebugIntercept.cs

@ -5,6 +5,8 @@ @@ -5,6 +5,8 @@
// <version>$Revision$</version>
// </file>
// This file is automatically generated - any changes will be lost
namespace Debugger.Wrappers.CorDebug
{
using System;

2
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/CorDebugInternalFrameType.cs → src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/CorDebugInternalFrameType.cs

@ -5,6 +5,8 @@ @@ -5,6 +5,8 @@
// <version>$Revision$</version>
// </file>
// This file is automatically generated - any changes will be lost
namespace Debugger.Wrappers.CorDebug
{
using System;

2
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/CorDebugMDAFlags.cs → src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/CorDebugMDAFlags.cs

@ -5,6 +5,8 @@ @@ -5,6 +5,8 @@
// <version>$Revision$</version>
// </file>
// This file is automatically generated - any changes will be lost
namespace Debugger.Wrappers.CorDebug
{
using System;

2
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/CorDebugMappingResult.cs → src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/CorDebugMappingResult.cs

@ -5,6 +5,8 @@ @@ -5,6 +5,8 @@
// <version>$Revision$</version>
// </file>
// This file is automatically generated - any changes will be lost
namespace Debugger.Wrappers.CorDebug
{
using System;

2
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/CorDebugRegister.cs → src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/CorDebugRegister.cs

@ -5,6 +5,8 @@ @@ -5,6 +5,8 @@
// <version>$Revision$</version>
// </file>
// This file is automatically generated - any changes will be lost
namespace Debugger.Wrappers.CorDebug
{
using System;

2
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/CorDebugThreadState.cs → src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/CorDebugThreadState.cs

@ -5,6 +5,8 @@ @@ -5,6 +5,8 @@
// <version>$Revision$</version>
// </file>
// This file is automatically generated - any changes will be lost
namespace Debugger.Wrappers.CorDebug
{
using System;

2
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/CorDebugUnmappedStop.cs → src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/CorDebugUnmappedStop.cs

@ -5,6 +5,8 @@ @@ -5,6 +5,8 @@
// <version>$Revision$</version>
// </file>
// This file is automatically generated - any changes will be lost
namespace Debugger.Wrappers.CorDebug
{
using System;

2
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/CorDebugUserState.cs → src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/CorDebugUserState.cs

@ -5,6 +5,8 @@ @@ -5,6 +5,8 @@
// <version>$Revision$</version>
// </file>
// This file is automatically generated - any changes will be lost
namespace Debugger.Wrappers.CorDebug
{
using System;

20
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/EmbeddedCLRCorDebug.cs → src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/EmbeddedCLRCorDebug.cs

@ -5,12 +5,14 @@ @@ -5,12 +5,14 @@
// <version>$Revision$</version>
// </file>
// This file is automatically generated - any changes will be lost
namespace Debugger.Wrappers.CorDebug
{
using System;
public class EmbeddedCLRCorDebug
public partial class EmbeddedCLRCorDebug
{
private Debugger.Interop.CorDebug.EmbeddedCLRCorDebug wrappedObject;
@ -26,11 +28,25 @@ namespace Debugger.Wrappers.CorDebug @@ -26,11 +28,25 @@ namespace Debugger.Wrappers.CorDebug
public EmbeddedCLRCorDebug(Debugger.Interop.CorDebug.EmbeddedCLRCorDebug wrappedObject)
{
this.wrappedObject = wrappedObject;
ResourceManager.TrackCOMObject(wrappedObject, typeof(EmbeddedCLRCorDebug));
}
public static EmbeddedCLRCorDebug Wrap(Debugger.Interop.CorDebug.EmbeddedCLRCorDebug objectToWrap)
{
return new EmbeddedCLRCorDebug(objectToWrap);
if ((objectToWrap != null))
{
return new EmbeddedCLRCorDebug(objectToWrap);
} else
{
return null;
}
}
~EmbeddedCLRCorDebug()
{
object o = wrappedObject;
wrappedObject = null;
ResourceManager.ReleaseCOMObject(o, typeof(EmbeddedCLRCorDebug));
}
public bool Is<T>() where T: class

20
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/EmbeddedCLRCorDebugClass.cs → src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/EmbeddedCLRCorDebugClass.cs

@ -5,12 +5,14 @@ @@ -5,12 +5,14 @@
// <version>$Revision$</version>
// </file>
// This file is automatically generated - any changes will be lost
namespace Debugger.Wrappers.CorDebug
{
using System;
public class EmbeddedCLRCorDebugClass
public partial class EmbeddedCLRCorDebugClass
{
private Debugger.Interop.CorDebug.EmbeddedCLRCorDebugClass wrappedObject;
@ -26,11 +28,25 @@ namespace Debugger.Wrappers.CorDebug @@ -26,11 +28,25 @@ namespace Debugger.Wrappers.CorDebug
public EmbeddedCLRCorDebugClass(Debugger.Interop.CorDebug.EmbeddedCLRCorDebugClass wrappedObject)
{
this.wrappedObject = wrappedObject;
ResourceManager.TrackCOMObject(wrappedObject, typeof(EmbeddedCLRCorDebugClass));
}
public static EmbeddedCLRCorDebugClass Wrap(Debugger.Interop.CorDebug.EmbeddedCLRCorDebugClass objectToWrap)
{
return new EmbeddedCLRCorDebugClass(objectToWrap);
if ((objectToWrap != null))
{
return new EmbeddedCLRCorDebugClass(objectToWrap);
} else
{
return null;
}
}
~EmbeddedCLRCorDebugClass()
{
object o = wrappedObject;
wrappedObject = null;
ResourceManager.ReleaseCOMObject(o, typeof(EmbeddedCLRCorDebugClass));
}
public bool Is<T>() where T: class

20
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/ICorDebug.cs → src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/ICorDebug.cs

@ -5,12 +5,14 @@ @@ -5,12 +5,14 @@
// <version>$Revision$</version>
// </file>
// This file is automatically generated - any changes will be lost
namespace Debugger.Wrappers.CorDebug
{
using System;
public class ICorDebug
public partial class ICorDebug
{
private Debugger.Interop.CorDebug.ICorDebug wrappedObject;
@ -26,11 +28,25 @@ namespace Debugger.Wrappers.CorDebug @@ -26,11 +28,25 @@ namespace Debugger.Wrappers.CorDebug
public ICorDebug(Debugger.Interop.CorDebug.ICorDebug wrappedObject)
{
this.wrappedObject = wrappedObject;
ResourceManager.TrackCOMObject(wrappedObject, typeof(ICorDebug));
}
public static ICorDebug Wrap(Debugger.Interop.CorDebug.ICorDebug objectToWrap)
{
return new ICorDebug(objectToWrap);
if ((objectToWrap != null))
{
return new ICorDebug(objectToWrap);
} else
{
return null;
}
}
~ICorDebug()
{
object o = wrappedObject;
wrappedObject = null;
ResourceManager.ReleaseCOMObject(o, typeof(ICorDebug));
}
public bool Is<T>() where T: class

20
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/ICorDebugAppDomain.cs → src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/ICorDebugAppDomain.cs

@ -5,12 +5,14 @@ @@ -5,12 +5,14 @@
// <version>$Revision$</version>
// </file>
// This file is automatically generated - any changes will be lost
namespace Debugger.Wrappers.CorDebug
{
using System;
public class ICorDebugAppDomain
public partial class ICorDebugAppDomain
{
private Debugger.Interop.CorDebug.ICorDebugAppDomain wrappedObject;
@ -26,11 +28,25 @@ namespace Debugger.Wrappers.CorDebug @@ -26,11 +28,25 @@ namespace Debugger.Wrappers.CorDebug
public ICorDebugAppDomain(Debugger.Interop.CorDebug.ICorDebugAppDomain wrappedObject)
{
this.wrappedObject = wrappedObject;
ResourceManager.TrackCOMObject(wrappedObject, typeof(ICorDebugAppDomain));
}
public static ICorDebugAppDomain Wrap(Debugger.Interop.CorDebug.ICorDebugAppDomain objectToWrap)
{
return new ICorDebugAppDomain(objectToWrap);
if ((objectToWrap != null))
{
return new ICorDebugAppDomain(objectToWrap);
} else
{
return null;
}
}
~ICorDebugAppDomain()
{
object o = wrappedObject;
wrappedObject = null;
ResourceManager.ReleaseCOMObject(o, typeof(ICorDebugAppDomain));
}
public bool Is<T>() where T: class

20
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/ICorDebugAppDomain2.cs → src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/ICorDebugAppDomain2.cs

@ -5,12 +5,14 @@ @@ -5,12 +5,14 @@
// <version>$Revision$</version>
// </file>
// This file is automatically generated - any changes will be lost
namespace Debugger.Wrappers.CorDebug
{
using System;
public class ICorDebugAppDomain2
public partial class ICorDebugAppDomain2
{
private Debugger.Interop.CorDebug.ICorDebugAppDomain2 wrappedObject;
@ -26,11 +28,25 @@ namespace Debugger.Wrappers.CorDebug @@ -26,11 +28,25 @@ namespace Debugger.Wrappers.CorDebug
public ICorDebugAppDomain2(Debugger.Interop.CorDebug.ICorDebugAppDomain2 wrappedObject)
{
this.wrappedObject = wrappedObject;
ResourceManager.TrackCOMObject(wrappedObject, typeof(ICorDebugAppDomain2));
}
public static ICorDebugAppDomain2 Wrap(Debugger.Interop.CorDebug.ICorDebugAppDomain2 objectToWrap)
{
return new ICorDebugAppDomain2(objectToWrap);
if ((objectToWrap != null))
{
return new ICorDebugAppDomain2(objectToWrap);
} else
{
return null;
}
}
~ICorDebugAppDomain2()
{
object o = wrappedObject;
wrappedObject = null;
ResourceManager.ReleaseCOMObject(o, typeof(ICorDebugAppDomain2));
}
public bool Is<T>() where T: class

20
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/ICorDebugAppDomainEnum.cs → src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/ICorDebugAppDomainEnum.cs

@ -5,12 +5,14 @@ @@ -5,12 +5,14 @@
// <version>$Revision$</version>
// </file>
// This file is automatically generated - any changes will be lost
namespace Debugger.Wrappers.CorDebug
{
using System;
public class ICorDebugAppDomainEnum
public partial class ICorDebugAppDomainEnum
{
private Debugger.Interop.CorDebug.ICorDebugAppDomainEnum wrappedObject;
@ -26,11 +28,25 @@ namespace Debugger.Wrappers.CorDebug @@ -26,11 +28,25 @@ namespace Debugger.Wrappers.CorDebug
public ICorDebugAppDomainEnum(Debugger.Interop.CorDebug.ICorDebugAppDomainEnum wrappedObject)
{
this.wrappedObject = wrappedObject;
ResourceManager.TrackCOMObject(wrappedObject, typeof(ICorDebugAppDomainEnum));
}
public static ICorDebugAppDomainEnum Wrap(Debugger.Interop.CorDebug.ICorDebugAppDomainEnum objectToWrap)
{
return new ICorDebugAppDomainEnum(objectToWrap);
if ((objectToWrap != null))
{
return new ICorDebugAppDomainEnum(objectToWrap);
} else
{
return null;
}
}
~ICorDebugAppDomainEnum()
{
object o = wrappedObject;
wrappedObject = null;
ResourceManager.ReleaseCOMObject(o, typeof(ICorDebugAppDomainEnum));
}
public bool Is<T>() where T: class

20
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/ICorDebugArrayValue.cs → src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/ICorDebugArrayValue.cs

@ -5,12 +5,14 @@ @@ -5,12 +5,14 @@
// <version>$Revision$</version>
// </file>
// This file is automatically generated - any changes will be lost
namespace Debugger.Wrappers.CorDebug
{
using System;
public class ICorDebugArrayValue
public partial class ICorDebugArrayValue
{
private Debugger.Interop.CorDebug.ICorDebugArrayValue wrappedObject;
@ -26,11 +28,25 @@ namespace Debugger.Wrappers.CorDebug @@ -26,11 +28,25 @@ namespace Debugger.Wrappers.CorDebug
public ICorDebugArrayValue(Debugger.Interop.CorDebug.ICorDebugArrayValue wrappedObject)
{
this.wrappedObject = wrappedObject;
ResourceManager.TrackCOMObject(wrappedObject, typeof(ICorDebugArrayValue));
}
public static ICorDebugArrayValue Wrap(Debugger.Interop.CorDebug.ICorDebugArrayValue objectToWrap)
{
return new ICorDebugArrayValue(objectToWrap);
if ((objectToWrap != null))
{
return new ICorDebugArrayValue(objectToWrap);
} else
{
return null;
}
}
~ICorDebugArrayValue()
{
object o = wrappedObject;
wrappedObject = null;
ResourceManager.ReleaseCOMObject(o, typeof(ICorDebugArrayValue));
}
public bool Is<T>() where T: class

20
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/ICorDebugAssembly.cs → src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/ICorDebugAssembly.cs

@ -5,12 +5,14 @@ @@ -5,12 +5,14 @@
// <version>$Revision$</version>
// </file>
// This file is automatically generated - any changes will be lost
namespace Debugger.Wrappers.CorDebug
{
using System;
public class ICorDebugAssembly
public partial class ICorDebugAssembly
{
private Debugger.Interop.CorDebug.ICorDebugAssembly wrappedObject;
@ -26,11 +28,25 @@ namespace Debugger.Wrappers.CorDebug @@ -26,11 +28,25 @@ namespace Debugger.Wrappers.CorDebug
public ICorDebugAssembly(Debugger.Interop.CorDebug.ICorDebugAssembly wrappedObject)
{
this.wrappedObject = wrappedObject;
ResourceManager.TrackCOMObject(wrappedObject, typeof(ICorDebugAssembly));
}
public static ICorDebugAssembly Wrap(Debugger.Interop.CorDebug.ICorDebugAssembly objectToWrap)
{
return new ICorDebugAssembly(objectToWrap);
if ((objectToWrap != null))
{
return new ICorDebugAssembly(objectToWrap);
} else
{
return null;
}
}
~ICorDebugAssembly()
{
object o = wrappedObject;
wrappedObject = null;
ResourceManager.ReleaseCOMObject(o, typeof(ICorDebugAssembly));
}
public bool Is<T>() where T: class

20
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/ICorDebugAssemblyEnum.cs → src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/ICorDebugAssemblyEnum.cs

@ -5,12 +5,14 @@ @@ -5,12 +5,14 @@
// <version>$Revision$</version>
// </file>
// This file is automatically generated - any changes will be lost
namespace Debugger.Wrappers.CorDebug
{
using System;
public class ICorDebugAssemblyEnum
public partial class ICorDebugAssemblyEnum
{
private Debugger.Interop.CorDebug.ICorDebugAssemblyEnum wrappedObject;
@ -26,11 +28,25 @@ namespace Debugger.Wrappers.CorDebug @@ -26,11 +28,25 @@ namespace Debugger.Wrappers.CorDebug
public ICorDebugAssemblyEnum(Debugger.Interop.CorDebug.ICorDebugAssemblyEnum wrappedObject)
{
this.wrappedObject = wrappedObject;
ResourceManager.TrackCOMObject(wrappedObject, typeof(ICorDebugAssemblyEnum));
}
public static ICorDebugAssemblyEnum Wrap(Debugger.Interop.CorDebug.ICorDebugAssemblyEnum objectToWrap)
{
return new ICorDebugAssemblyEnum(objectToWrap);
if ((objectToWrap != null))
{
return new ICorDebugAssemblyEnum(objectToWrap);
} else
{
return null;
}
}
~ICorDebugAssemblyEnum()
{
object o = wrappedObject;
wrappedObject = null;
ResourceManager.ReleaseCOMObject(o, typeof(ICorDebugAssemblyEnum));
}
public bool Is<T>() where T: class

20
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/ICorDebugBoxValue.cs → src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/ICorDebugBoxValue.cs

@ -5,12 +5,14 @@ @@ -5,12 +5,14 @@
// <version>$Revision$</version>
// </file>
// This file is automatically generated - any changes will be lost
namespace Debugger.Wrappers.CorDebug
{
using System;
public class ICorDebugBoxValue
public partial class ICorDebugBoxValue
{
private Debugger.Interop.CorDebug.ICorDebugBoxValue wrappedObject;
@ -26,11 +28,25 @@ namespace Debugger.Wrappers.CorDebug @@ -26,11 +28,25 @@ namespace Debugger.Wrappers.CorDebug
public ICorDebugBoxValue(Debugger.Interop.CorDebug.ICorDebugBoxValue wrappedObject)
{
this.wrappedObject = wrappedObject;
ResourceManager.TrackCOMObject(wrappedObject, typeof(ICorDebugBoxValue));
}
public static ICorDebugBoxValue Wrap(Debugger.Interop.CorDebug.ICorDebugBoxValue objectToWrap)
{
return new ICorDebugBoxValue(objectToWrap);
if ((objectToWrap != null))
{
return new ICorDebugBoxValue(objectToWrap);
} else
{
return null;
}
}
~ICorDebugBoxValue()
{
object o = wrappedObject;
wrappedObject = null;
ResourceManager.ReleaseCOMObject(o, typeof(ICorDebugBoxValue));
}
public bool Is<T>() where T: class

20
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/ICorDebugBreakpoint.cs → src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/ICorDebugBreakpoint.cs

@ -5,12 +5,14 @@ @@ -5,12 +5,14 @@
// <version>$Revision$</version>
// </file>
// This file is automatically generated - any changes will be lost
namespace Debugger.Wrappers.CorDebug
{
using System;
public class ICorDebugBreakpoint
public partial class ICorDebugBreakpoint
{
private Debugger.Interop.CorDebug.ICorDebugBreakpoint wrappedObject;
@ -26,11 +28,25 @@ namespace Debugger.Wrappers.CorDebug @@ -26,11 +28,25 @@ namespace Debugger.Wrappers.CorDebug
public ICorDebugBreakpoint(Debugger.Interop.CorDebug.ICorDebugBreakpoint wrappedObject)
{
this.wrappedObject = wrappedObject;
ResourceManager.TrackCOMObject(wrappedObject, typeof(ICorDebugBreakpoint));
}
public static ICorDebugBreakpoint Wrap(Debugger.Interop.CorDebug.ICorDebugBreakpoint objectToWrap)
{
return new ICorDebugBreakpoint(objectToWrap);
if ((objectToWrap != null))
{
return new ICorDebugBreakpoint(objectToWrap);
} else
{
return null;
}
}
~ICorDebugBreakpoint()
{
object o = wrappedObject;
wrappedObject = null;
ResourceManager.ReleaseCOMObject(o, typeof(ICorDebugBreakpoint));
}
public bool Is<T>() where T: class

20
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/ICorDebugBreakpointEnum.cs → src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/ICorDebugBreakpointEnum.cs

@ -5,12 +5,14 @@ @@ -5,12 +5,14 @@
// <version>$Revision$</version>
// </file>
// This file is automatically generated - any changes will be lost
namespace Debugger.Wrappers.CorDebug
{
using System;
public class ICorDebugBreakpointEnum
public partial class ICorDebugBreakpointEnum
{
private Debugger.Interop.CorDebug.ICorDebugBreakpointEnum wrappedObject;
@ -26,11 +28,25 @@ namespace Debugger.Wrappers.CorDebug @@ -26,11 +28,25 @@ namespace Debugger.Wrappers.CorDebug
public ICorDebugBreakpointEnum(Debugger.Interop.CorDebug.ICorDebugBreakpointEnum wrappedObject)
{
this.wrappedObject = wrappedObject;
ResourceManager.TrackCOMObject(wrappedObject, typeof(ICorDebugBreakpointEnum));
}
public static ICorDebugBreakpointEnum Wrap(Debugger.Interop.CorDebug.ICorDebugBreakpointEnum objectToWrap)
{
return new ICorDebugBreakpointEnum(objectToWrap);
if ((objectToWrap != null))
{
return new ICorDebugBreakpointEnum(objectToWrap);
} else
{
return null;
}
}
~ICorDebugBreakpointEnum()
{
object o = wrappedObject;
wrappedObject = null;
ResourceManager.ReleaseCOMObject(o, typeof(ICorDebugBreakpointEnum));
}
public bool Is<T>() where T: class

20
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/ICorDebugChain.cs → src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/ICorDebugChain.cs

@ -5,12 +5,14 @@ @@ -5,12 +5,14 @@
// <version>$Revision$</version>
// </file>
// This file is automatically generated - any changes will be lost
namespace Debugger.Wrappers.CorDebug
{
using System;
public class ICorDebugChain
public partial class ICorDebugChain
{
private Debugger.Interop.CorDebug.ICorDebugChain wrappedObject;
@ -26,11 +28,25 @@ namespace Debugger.Wrappers.CorDebug @@ -26,11 +28,25 @@ namespace Debugger.Wrappers.CorDebug
public ICorDebugChain(Debugger.Interop.CorDebug.ICorDebugChain wrappedObject)
{
this.wrappedObject = wrappedObject;
ResourceManager.TrackCOMObject(wrappedObject, typeof(ICorDebugChain));
}
public static ICorDebugChain Wrap(Debugger.Interop.CorDebug.ICorDebugChain objectToWrap)
{
return new ICorDebugChain(objectToWrap);
if ((objectToWrap != null))
{
return new ICorDebugChain(objectToWrap);
} else
{
return null;
}
}
~ICorDebugChain()
{
object o = wrappedObject;
wrappedObject = null;
ResourceManager.ReleaseCOMObject(o, typeof(ICorDebugChain));
}
public bool Is<T>() where T: class

20
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/ICorDebugChainEnum.cs → src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/ICorDebugChainEnum.cs

@ -5,12 +5,14 @@ @@ -5,12 +5,14 @@
// <version>$Revision$</version>
// </file>
// This file is automatically generated - any changes will be lost
namespace Debugger.Wrappers.CorDebug
{
using System;
public class ICorDebugChainEnum
public partial class ICorDebugChainEnum
{
private Debugger.Interop.CorDebug.ICorDebugChainEnum wrappedObject;
@ -26,11 +28,25 @@ namespace Debugger.Wrappers.CorDebug @@ -26,11 +28,25 @@ namespace Debugger.Wrappers.CorDebug
public ICorDebugChainEnum(Debugger.Interop.CorDebug.ICorDebugChainEnum wrappedObject)
{
this.wrappedObject = wrappedObject;
ResourceManager.TrackCOMObject(wrappedObject, typeof(ICorDebugChainEnum));
}
public static ICorDebugChainEnum Wrap(Debugger.Interop.CorDebug.ICorDebugChainEnum objectToWrap)
{
return new ICorDebugChainEnum(objectToWrap);
if ((objectToWrap != null))
{
return new ICorDebugChainEnum(objectToWrap);
} else
{
return null;
}
}
~ICorDebugChainEnum()
{
object o = wrappedObject;
wrappedObject = null;
ResourceManager.ReleaseCOMObject(o, typeof(ICorDebugChainEnum));
}
public bool Is<T>() where T: class

20
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/ICorDebugClass.cs → src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/ICorDebugClass.cs

@ -5,12 +5,14 @@ @@ -5,12 +5,14 @@
// <version>$Revision$</version>
// </file>
// This file is automatically generated - any changes will be lost
namespace Debugger.Wrappers.CorDebug
{
using System;
public class ICorDebugClass
public partial class ICorDebugClass
{
private Debugger.Interop.CorDebug.ICorDebugClass wrappedObject;
@ -26,11 +28,25 @@ namespace Debugger.Wrappers.CorDebug @@ -26,11 +28,25 @@ namespace Debugger.Wrappers.CorDebug
public ICorDebugClass(Debugger.Interop.CorDebug.ICorDebugClass wrappedObject)
{
this.wrappedObject = wrappedObject;
ResourceManager.TrackCOMObject(wrappedObject, typeof(ICorDebugClass));
}
public static ICorDebugClass Wrap(Debugger.Interop.CorDebug.ICorDebugClass objectToWrap)
{
return new ICorDebugClass(objectToWrap);
if ((objectToWrap != null))
{
return new ICorDebugClass(objectToWrap);
} else
{
return null;
}
}
~ICorDebugClass()
{
object o = wrappedObject;
wrappedObject = null;
ResourceManager.ReleaseCOMObject(o, typeof(ICorDebugClass));
}
public bool Is<T>() where T: class

20
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/ICorDebugClass2.cs → src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/ICorDebugClass2.cs

@ -5,12 +5,14 @@ @@ -5,12 +5,14 @@
// <version>$Revision$</version>
// </file>
// This file is automatically generated - any changes will be lost
namespace Debugger.Wrappers.CorDebug
{
using System;
public class ICorDebugClass2
public partial class ICorDebugClass2
{
private Debugger.Interop.CorDebug.ICorDebugClass2 wrappedObject;
@ -26,11 +28,25 @@ namespace Debugger.Wrappers.CorDebug @@ -26,11 +28,25 @@ namespace Debugger.Wrappers.CorDebug
public ICorDebugClass2(Debugger.Interop.CorDebug.ICorDebugClass2 wrappedObject)
{
this.wrappedObject = wrappedObject;
ResourceManager.TrackCOMObject(wrappedObject, typeof(ICorDebugClass2));
}
public static ICorDebugClass2 Wrap(Debugger.Interop.CorDebug.ICorDebugClass2 objectToWrap)
{
return new ICorDebugClass2(objectToWrap);
if ((objectToWrap != null))
{
return new ICorDebugClass2(objectToWrap);
} else
{
return null;
}
}
~ICorDebugClass2()
{
object o = wrappedObject;
wrappedObject = null;
ResourceManager.ReleaseCOMObject(o, typeof(ICorDebugClass2));
}
public bool Is<T>() where T: class

20
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/ICorDebugCode.cs → src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/ICorDebugCode.cs

@ -5,12 +5,14 @@ @@ -5,12 +5,14 @@
// <version>$Revision$</version>
// </file>
// This file is automatically generated - any changes will be lost
namespace Debugger.Wrappers.CorDebug
{
using System;
public class ICorDebugCode
public partial class ICorDebugCode
{
private Debugger.Interop.CorDebug.ICorDebugCode wrappedObject;
@ -26,11 +28,25 @@ namespace Debugger.Wrappers.CorDebug @@ -26,11 +28,25 @@ namespace Debugger.Wrappers.CorDebug
public ICorDebugCode(Debugger.Interop.CorDebug.ICorDebugCode wrappedObject)
{
this.wrappedObject = wrappedObject;
ResourceManager.TrackCOMObject(wrappedObject, typeof(ICorDebugCode));
}
public static ICorDebugCode Wrap(Debugger.Interop.CorDebug.ICorDebugCode objectToWrap)
{
return new ICorDebugCode(objectToWrap);
if ((objectToWrap != null))
{
return new ICorDebugCode(objectToWrap);
} else
{
return null;
}
}
~ICorDebugCode()
{
object o = wrappedObject;
wrappedObject = null;
ResourceManager.ReleaseCOMObject(o, typeof(ICorDebugCode));
}
public bool Is<T>() where T: class

20
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/ICorDebugCodeEnum.cs → src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/ICorDebugCodeEnum.cs

@ -5,12 +5,14 @@ @@ -5,12 +5,14 @@
// <version>$Revision$</version>
// </file>
// This file is automatically generated - any changes will be lost
namespace Debugger.Wrappers.CorDebug
{
using System;
public class ICorDebugCodeEnum
public partial class ICorDebugCodeEnum
{
private Debugger.Interop.CorDebug.ICorDebugCodeEnum wrappedObject;
@ -26,11 +28,25 @@ namespace Debugger.Wrappers.CorDebug @@ -26,11 +28,25 @@ namespace Debugger.Wrappers.CorDebug
public ICorDebugCodeEnum(Debugger.Interop.CorDebug.ICorDebugCodeEnum wrappedObject)
{
this.wrappedObject = wrappedObject;
ResourceManager.TrackCOMObject(wrappedObject, typeof(ICorDebugCodeEnum));
}
public static ICorDebugCodeEnum Wrap(Debugger.Interop.CorDebug.ICorDebugCodeEnum objectToWrap)
{
return new ICorDebugCodeEnum(objectToWrap);
if ((objectToWrap != null))
{
return new ICorDebugCodeEnum(objectToWrap);
} else
{
return null;
}
}
~ICorDebugCodeEnum()
{
object o = wrappedObject;
wrappedObject = null;
ResourceManager.ReleaseCOMObject(o, typeof(ICorDebugCodeEnum));
}
public bool Is<T>() where T: class

20
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/ICorDebugContext.cs → src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/ICorDebugContext.cs

@ -5,12 +5,14 @@ @@ -5,12 +5,14 @@
// <version>$Revision$</version>
// </file>
// This file is automatically generated - any changes will be lost
namespace Debugger.Wrappers.CorDebug
{
using System;
public class ICorDebugContext
public partial class ICorDebugContext
{
private Debugger.Interop.CorDebug.ICorDebugContext wrappedObject;
@ -26,11 +28,25 @@ namespace Debugger.Wrappers.CorDebug @@ -26,11 +28,25 @@ namespace Debugger.Wrappers.CorDebug
public ICorDebugContext(Debugger.Interop.CorDebug.ICorDebugContext wrappedObject)
{
this.wrappedObject = wrappedObject;
ResourceManager.TrackCOMObject(wrappedObject, typeof(ICorDebugContext));
}
public static ICorDebugContext Wrap(Debugger.Interop.CorDebug.ICorDebugContext objectToWrap)
{
return new ICorDebugContext(objectToWrap);
if ((objectToWrap != null))
{
return new ICorDebugContext(objectToWrap);
} else
{
return null;
}
}
~ICorDebugContext()
{
object o = wrappedObject;
wrappedObject = null;
ResourceManager.ReleaseCOMObject(o, typeof(ICorDebugContext));
}
public bool Is<T>() where T: class

20
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/ICorDebugController.cs → src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/ICorDebugController.cs

@ -5,12 +5,14 @@ @@ -5,12 +5,14 @@
// <version>$Revision$</version>
// </file>
// This file is automatically generated - any changes will be lost
namespace Debugger.Wrappers.CorDebug
{
using System;
public class ICorDebugController
public partial class ICorDebugController
{
private Debugger.Interop.CorDebug.ICorDebugController wrappedObject;
@ -26,11 +28,25 @@ namespace Debugger.Wrappers.CorDebug @@ -26,11 +28,25 @@ namespace Debugger.Wrappers.CorDebug
public ICorDebugController(Debugger.Interop.CorDebug.ICorDebugController wrappedObject)
{
this.wrappedObject = wrappedObject;
ResourceManager.TrackCOMObject(wrappedObject, typeof(ICorDebugController));
}
public static ICorDebugController Wrap(Debugger.Interop.CorDebug.ICorDebugController objectToWrap)
{
return new ICorDebugController(objectToWrap);
if ((objectToWrap != null))
{
return new ICorDebugController(objectToWrap);
} else
{
return null;
}
}
~ICorDebugController()
{
object o = wrappedObject;
wrappedObject = null;
ResourceManager.ReleaseCOMObject(o, typeof(ICorDebugController));
}
public bool Is<T>() where T: class

20
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/ICorDebugEditAndContinueSnapshot.cs → src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/ICorDebugEditAndContinueSnapshot.cs

@ -5,12 +5,14 @@ @@ -5,12 +5,14 @@
// <version>$Revision$</version>
// </file>
// This file is automatically generated - any changes will be lost
namespace Debugger.Wrappers.CorDebug
{
using System;
public class ICorDebugEditAndContinueSnapshot
public partial class ICorDebugEditAndContinueSnapshot
{
private Debugger.Interop.CorDebug.ICorDebugEditAndContinueSnapshot wrappedObject;
@ -26,11 +28,25 @@ namespace Debugger.Wrappers.CorDebug @@ -26,11 +28,25 @@ namespace Debugger.Wrappers.CorDebug
public ICorDebugEditAndContinueSnapshot(Debugger.Interop.CorDebug.ICorDebugEditAndContinueSnapshot wrappedObject)
{
this.wrappedObject = wrappedObject;
ResourceManager.TrackCOMObject(wrappedObject, typeof(ICorDebugEditAndContinueSnapshot));
}
public static ICorDebugEditAndContinueSnapshot Wrap(Debugger.Interop.CorDebug.ICorDebugEditAndContinueSnapshot objectToWrap)
{
return new ICorDebugEditAndContinueSnapshot(objectToWrap);
if ((objectToWrap != null))
{
return new ICorDebugEditAndContinueSnapshot(objectToWrap);
} else
{
return null;
}
}
~ICorDebugEditAndContinueSnapshot()
{
object o = wrappedObject;
wrappedObject = null;
ResourceManager.ReleaseCOMObject(o, typeof(ICorDebugEditAndContinueSnapshot));
}
public bool Is<T>() where T: class

20
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/ICorDebugEnum.cs → src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/ICorDebugEnum.cs

@ -5,12 +5,14 @@ @@ -5,12 +5,14 @@
// <version>$Revision$</version>
// </file>
// This file is automatically generated - any changes will be lost
namespace Debugger.Wrappers.CorDebug
{
using System;
public class ICorDebugEnum
public partial class ICorDebugEnum
{
private Debugger.Interop.CorDebug.ICorDebugEnum wrappedObject;
@ -26,11 +28,25 @@ namespace Debugger.Wrappers.CorDebug @@ -26,11 +28,25 @@ namespace Debugger.Wrappers.CorDebug
public ICorDebugEnum(Debugger.Interop.CorDebug.ICorDebugEnum wrappedObject)
{
this.wrappedObject = wrappedObject;
ResourceManager.TrackCOMObject(wrappedObject, typeof(ICorDebugEnum));
}
public static ICorDebugEnum Wrap(Debugger.Interop.CorDebug.ICorDebugEnum objectToWrap)
{
return new ICorDebugEnum(objectToWrap);
if ((objectToWrap != null))
{
return new ICorDebugEnum(objectToWrap);
} else
{
return null;
}
}
~ICorDebugEnum()
{
object o = wrappedObject;
wrappedObject = null;
ResourceManager.ReleaseCOMObject(o, typeof(ICorDebugEnum));
}
public bool Is<T>() where T: class

20
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/ICorDebugErrorInfoEnum.cs → src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/ICorDebugErrorInfoEnum.cs

@ -5,12 +5,14 @@ @@ -5,12 +5,14 @@
// <version>$Revision$</version>
// </file>
// This file is automatically generated - any changes will be lost
namespace Debugger.Wrappers.CorDebug
{
using System;
public class ICorDebugErrorInfoEnum
public partial class ICorDebugErrorInfoEnum
{
private Debugger.Interop.CorDebug.ICorDebugErrorInfoEnum wrappedObject;
@ -26,11 +28,25 @@ namespace Debugger.Wrappers.CorDebug @@ -26,11 +28,25 @@ namespace Debugger.Wrappers.CorDebug
public ICorDebugErrorInfoEnum(Debugger.Interop.CorDebug.ICorDebugErrorInfoEnum wrappedObject)
{
this.wrappedObject = wrappedObject;
ResourceManager.TrackCOMObject(wrappedObject, typeof(ICorDebugErrorInfoEnum));
}
public static ICorDebugErrorInfoEnum Wrap(Debugger.Interop.CorDebug.ICorDebugErrorInfoEnum objectToWrap)
{
return new ICorDebugErrorInfoEnum(objectToWrap);
if ((objectToWrap != null))
{
return new ICorDebugErrorInfoEnum(objectToWrap);
} else
{
return null;
}
}
~ICorDebugErrorInfoEnum()
{
object o = wrappedObject;
wrappedObject = null;
ResourceManager.ReleaseCOMObject(o, typeof(ICorDebugErrorInfoEnum));
}
public bool Is<T>() where T: class

20
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/ICorDebugEval.cs → src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Wrappers/CorDebug/Autogenerated/ICorDebugEval.cs

@ -5,12 +5,14 @@ @@ -5,12 +5,14 @@
// <version>$Revision$</version>
// </file>
// This file is automatically generated - any changes will be lost
namespace Debugger.Wrappers.CorDebug
{
using System;
public class ICorDebugEval
public partial class ICorDebugEval
{
private Debugger.Interop.CorDebug.ICorDebugEval wrappedObject;
@ -26,11 +28,25 @@ namespace Debugger.Wrappers.CorDebug @@ -26,11 +28,25 @@ namespace Debugger.Wrappers.CorDebug
public ICorDebugEval(Debugger.Interop.CorDebug.ICorDebugEval wrappedObject)
{
this.wrappedObject = wrappedObject;
ResourceManager.TrackCOMObject(wrappedObject, typeof(ICorDebugEval));
}
public static ICorDebugEval Wrap(Debugger.Interop.CorDebug.ICorDebugEval objectToWrap)
{
return new ICorDebugEval(objectToWrap);
if ((objectToWrap != null))
{
return new ICorDebugEval(objectToWrap);
} else
{
return null;
}
}
~ICorDebugEval()
{
object o = wrappedObject;
wrappedObject = null;
ResourceManager.ReleaseCOMObject(o, typeof(ICorDebugEval));
}
public bool Is<T>() where T: class

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save