JMC support in MDbg?  
Author Message
PWDawson





PostPosted: Building Development and Diagnostic Tools for .Net, JMC support in MDbg? Top

I would like to verify support for JMC within MDbg.

I've found signs of JMC support within the MDbg layers: CorFunction::JMCStatus and CorModule::SetJMCStatus calls, but when I set them it has no effect. After further review of MDbg source, the ICorDebugStepper interface is used. Does the ICorDebugStepper2 interface need to be used to support JMC

That said, what are my options for supporting JMC and still use MDbg

MDbg is pretty cool!

Thanks for your help,

Patrick



.NET Development21  
 
 
Mike Stall - MSFT





PostPosted: Building Development and Diagnostic Tools for .Net, JMC support in MDbg? Top

Currently, Mdbg as a de**** does not have JMC support. But it includes managed wrappers that would allow somebody to add JMC support (eg, in an extension or future version)

"Does the ICorDebugStepper2 interface need to be used to support JMC"
Yes.
More on actually using ICorDebug for JMC is here: http://www.hide-link.com/ , and http://www.hide-link.com/

More specifically Mdbg has multiple layers:
1) "Wrappers": There are the managed wrappers for ICorDebug
a) that includes the raw ICorDebug imports,
b) and the managed wrappers that smooth out the warts in the raw ICorDebug imports. These are the Cor* wrappers. This has very little policy.
2) "Engine". This has a lot of additional functionality (eg, symbol support, naming resolution, etc). This is the Mdbg* stuff (like MdbgProcess.cs).
3) "De****/Shell": And then there's the actual de**** / shell that builds on the engine / wrappers.

Ideally, all of the COM-classic ICorDebug has been wrapped in the in Cor* functions ("The wrappers"); but that doesn't mean that "MDbg the De****" uses it all.



 
 
PWDawson





PostPosted: Building Development and Diagnostic Tools for .Net, JMC support in MDbg? Top

Thanks for the quick reply!

This definitely provides me with a huge start. I choose to use MDbg at the Engine (#2) layer. I like the fact that the 'Cor' classes are still exposed at this layer (in case I need them).

Thanks again,

Patrick.


 
 
Mike Stall - MSFT





PostPosted: Building Development and Diagnostic Tools for .Net, JMC support in MDbg? Top

Great! Be sure to post a comment back on the forum if you do anything cool.