Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Walking a .NET callstack using native C++

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?

like image 977
Idov Avatar asked Nov 05 '22 11:11

Idov


1 Answers

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.

like image 124
Ben Voigt Avatar answered Nov 15 '22 04:11

Ben Voigt