Reputation: 5124
Is there a way to walk a .NET callstack using native c++?
I read the dbgHelp only handles native frames.
Also, I tried finding information about how the .NET callstack is built but didn't find anything.
Does anybody know a link for this?
Upvotes: 5
Views: 272
Reputation: 283793
DbgHelp only handles native frames, but the Managed Debugging API is actually a native API (naturally, since you can't use managed code to debug when the managed runtime is stopped at a breakpoint).
And here's a sample.
Of particular interest will be the ICorDebugStackWalk interface.
Upvotes: 2