|
|
@ -5,9 +5,11 @@ |
|
|
|
// <version>$Revision$</version>
|
|
|
|
// <version>$Revision$</version>
|
|
|
|
// </file>
|
|
|
|
// </file>
|
|
|
|
|
|
|
|
|
|
|
|
using Debugger.Interop; |
|
|
|
|
|
|
|
using System; |
|
|
|
using System; |
|
|
|
using System.Collections.Generic; |
|
|
|
using System.Collections.Generic; |
|
|
|
|
|
|
|
using System.Runtime.InteropServices; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
using Debugger.Interop; |
|
|
|
using Debugger.Interop.CorDebug; |
|
|
|
using Debugger.Interop.CorDebug; |
|
|
|
using Debugger.Interop.CorSym; |
|
|
|
using Debugger.Interop.CorSym; |
|
|
|
using Debugger.Interop.MetaData; |
|
|
|
using Debugger.Interop.MetaData; |
|
|
@ -226,7 +228,16 @@ namespace Debugger |
|
|
|
this.CorModule2.SetJMCStatus(0, 0, ref unused); |
|
|
|
this.CorModule2.SetJMCStatus(0, 0, ref unused); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
this.CorModule2.SetJMCStatus(1, 0, ref unused); |
|
|
|
try { |
|
|
|
|
|
|
|
this.CorModule2.SetJMCStatus(1, 0, ref unused); |
|
|
|
|
|
|
|
} catch (COMException e) { |
|
|
|
|
|
|
|
// Cannot use JMC on this code (likely wrong JIT settings).
|
|
|
|
|
|
|
|
if ((uint)e.ErrorCode == 0x80131323) { |
|
|
|
|
|
|
|
process.TraceMessage("Cannot use JMC on this code. Release build?"); |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
throw; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void ApplyChanges(byte[] metadata, byte[] il) |
|
|
|
public void ApplyChanges(byte[] metadata, byte[] il) |
|
|
|