[haiku-development] Log the backtrace
- From: Mat Hounsell <mat_geek@xxxxxxxxxxxx>
- To: haiku-development@xxxxxxxxxxxxx
- Date: Sun, 23 Nov 2008 21:01:38 -0800 (PST)
User space with glibc and gcc:
void *array[128]; // 128 is just an arbitrary number.
size_t size;
size = backtrace (array, 128);
backtrace_symbols_fd (array, size, fd));
Set up fd as desired.
Haiku OS - Free, Open, and Fantastic: http://haiku-os.org/
Help Me Internet, You're My Only Hope!
http://stackoverflow.com/users/11032/matgeek
Start your day with Yahoo!7 and win a Sony Bravia TV. Enter now
http://au.docs.yahoo.com/homepageset/?p1=other&p2=au&p3=tagline
Other related posts: