Re: Stack traces in own program in cygwin

2007-08-01 Thread Christopher Faylor
On Wed, Aug 01, 2007 at 04:31:52PM -0700, Brian Dessent wrote: >Bas Vodde wrote: >>Thanks for the reply. Where can I find the cygwin code that unwinds >>the stack? I might have a look at it anyway :) > >Look at class stack_info in winsup/cygwin/exceptions.cc. It's pretty >simplistic, and I'm pre

Re: Stack traces in own program in cygwin

2007-08-01 Thread Brian Dessent
Bas Vodde wrote: > Thanks for the reply. Where can I find the cygwin code that unwinds the > stack? I might have a look at it anyway :) Look at class stack_info in winsup/cygwin/exceptions.cc. It's pretty simplistic, and I'm pretty sure it will be rendered totally ineffective by -fomit-frame-poi

Re: Stack traces in own program in cygwin

2007-08-01 Thread Bas Vodde
Hi Brian, Thanks for the reply. Where can I find the cygwin code that unwinds the stack? I might have a look at it anyway :) The problem I have with dbghelp is not whether the DLL is available, but whether the WinSDK is... It would require a header file (which is possible to fake) and a .li

Re: Stack traces in own program in cygwin

2007-08-01 Thread Brian Dessent
Bas Vodde wrote: > I'm working on some unit testing framework and was thinking of building > in some functionality for stack traces. I checked what functionality is > available and found glibc contains execinfo.h with backtrace which can > be used (for linux). Yes, that's glibc-specific functiona

Stack traces in own program in cygwin

2007-08-01 Thread Bas Vodde
Hi, I'm working on some unit testing framework and was thinking of building in some functionality for stack traces. I checked what functionality is available and found glibc contains execinfo.h with backtrace which can be used (for linux). For Windows, I use gcc and cygwin. I cannot find th