In article <[EMAIL PROTECTED]>, Tilghman Lesher <[EMAIL PROTECTED]> wrote: > 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.
Thanks - that could well be useful. However, it doesn't appear to be in 1.2. Certainly a cool tool for the future though. Cheers Tony -- Tony Mountifield Work: [EMAIL PROTECTED] - http://www.softins.co.uk Play: [EMAIL PROTECTED] - http://tony.mountifield.org _______________________________________________ --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
