Browse Source

Support for new dynamic debugging features in .NET 4.0

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@6110 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
pull/1/head
David Srbecký 16 years ago
parent
commit
6af3e43629
  1. 7
      src/AddIns/Debugger/Debugger.Core/Interop/CorDebug.cs
  2. 11
      src/AddIns/Debugger/Debugger.Core/Interop/CorDebugExtensionMethods.generated.cs
  3. 2
      src/Tools/ComExtensionMethodGenerator/ComExtensionMethodGenerator.cs

7
src/AddIns/Debugger/Debugger.Core/Interop/CorDebug.cs

@ -1153,6 +1153,13 @@ namespace Debugger.Interop.CorDebug
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void __ResolveAssembly([In] uint tkAssemblyRef, [In, MarshalAs(UnmanagedType.Interface)] ref ICorDebugAssembly ppAssembly); void __ResolveAssembly([In] uint tkAssemblyRef, [In, MarshalAs(UnmanagedType.Interface)] ref ICorDebugAssembly ppAssembly);
} }
[ComImport, InterfaceType((short) 1), Guid("86F012BF-FF15-4372-BD30-B6F11CAAE1DD")]
public interface ICorDebugModule3
{
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType=MethodCodeType.Runtime)]
void __CreateReaderForInMemorySymbols([In] ref Guid riid, [MarshalAs(UnmanagedType.Interface)] out object ppObj);
}
[ComImport, Guid("CC7BCAEA-8A68-11D2-983C-0000F808342D"), InterfaceType((short) 1)] [ComImport, Guid("CC7BCAEA-8A68-11D2-983C-0000F808342D"), InterfaceType((short) 1)]
public interface ICorDebugModuleBreakpoint : ICorDebugBreakpoint public interface ICorDebugModuleBreakpoint : ICorDebugBreakpoint

11
src/AddIns/Debugger/Debugger.Core/Interop/CorDebugExtensionMethods.generated.cs

@ -1,4 +1,4 @@
// <file> // <file>
// <copyright see="prj:///doc/copyright.txt"/> // <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/> // <license see="prj:///doc/license.txt"/>
// <owner name="David Srbecký" email="dsrbecky@gmail.com"/> // <owner name="David Srbecký" email="dsrbecky@gmail.com"/>
@ -2187,6 +2187,14 @@ namespace Debugger.Interop.CorDebug
ProcessOutParameter(ppAssembly); ProcessOutParameter(ppAssembly);
} }
public static object CreateReaderForInMemorySymbols(this ICorDebugModule3 instance, ref Guid riid)
{
object ppObj;
instance.__CreateReaderForInMemorySymbols(ref riid, out ppObj);
ProcessOutParameter(ppObj);
return ppObj;
}
public static void Activate(this ICorDebugModuleBreakpoint instance, int bActive) public static void Activate(this ICorDebugModuleBreakpoint instance, int bActive)
{ {
instance.__Activate(bActive); instance.__Activate(bActive);
@ -3149,6 +3157,7 @@ namespace Debugger.Interop.CorDebug
{ {
uint pceltFetched; uint pceltFetched;
instance.__Next(celt, threads, out pceltFetched); instance.__Next(celt, threads, out pceltFetched);
ProcessOutParameter(threads);
return pceltFetched; return pceltFetched;
} }

2
src/Tools/ComExtensionMethodGenerator/ComExtensionMethodGenerator.cs

@ -28,7 +28,7 @@ namespace ComExtensionMethodGenerator
"// <version>$Revision$</version>" + "\r\n" + "// <version>$Revision$</version>" + "\r\n" +
"// </file>" + "\r\n" + "\r\n"; "// </file>" + "\r\n" + "\r\n";
static string path = Path.Combine(Assembly.GetExecutingAssembly().Location, @"..\..\..\..\..\..\src\AddIns\Misc\Debugger\Debugger.Core\Project\Src\Interop\"); static string path = Path.Combine(Assembly.GetExecutingAssembly().Location, @"..\..\..\..\..\..\src\AddIns\Debugger\Debugger.Core\Interop\");
public static void Main(string[] args) public static void Main(string[] args)
{ {

Loading…
Cancel
Save