On Thursday 09 November 2006 06:10, Tony Mountifield wrote: > Is it possible from within a function to get a backtrace of where it was > called from? I would do this if I determined I was closing an unexpected > fd. Or perhaps I just do a crash and use gdb on the core dump. > Unfortunately, people are trying to use this system in beta testing (and I > need them to, to provoke the error), and they are 8 hours ahead of me in > timezone!
If you're running on Linux, ast_backtrace() will allow you to obtain a stack backtrace of your current running location. You'll need to have STACK_BACKTRACES defined for main/logger.c. I'll look at getting menuselect to properly generate that define in the next couple of days. -- Tilghman _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- asterisk-dev mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-dev
