haxe-genc icon indicating copy to clipboard operation
haxe-genc copied to clipboard

Stack traces

Open waneck opened this issue 12 years ago • 2 comments

Seems like we can support stack traces through http://www.nongnu.org/libunwind See http://www.raylikestocode.com/2011/09/unwind-programs-stack.html

It's got a nice license, and seems pretty self-contained. Also setjmp seems to be pratically free, at the cost of a heavier longjmp (because of stack unwinding), which leaves me thinking if it should only be used in debug mode or not.

waneck avatar Jul 10 '13 21:07 waneck

From what I read libunwind does not support Windows.

Simn avatar Oct 03 '13 19:10 Simn

There's a Windows API for walking stacks: http://msdn.microsoft.com/en-us/library/windows/desktop/ms680650(v=vs.85).aspx

waneck avatar Oct 04 '13 12:10 waneck