Interix SUA Community Forum

Full Version: backtrace functions?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,
Is there support for the backtrace functions of execinfo.h available? If so, where can I find them? If not, is there a recommended alternative?

Thanks in advance!
In particular, the functions: backtrace, backtrace_symbols, and backtrace_symbols_fd

Hi,

Even though this question has not been answered I also have the same requirement. Is there any known alternative for Interix 3.5?

Thanks,
J
The backtrace() function (and similar calls) aren't available with Interix 3.5 (or 6.0).
Alternative? Not in a convenient API way.
You can look at the gdb source for Interix 3.5 to see how 'bt' (the backtrace command) is implemented.
The gdb source is included in the gcc tarball.
When you extract/unzip the Interix download the gcc sources are there.
I'm not having any luck find the gcc tarball. I try the gcc source (from the tools page) and I get a page not found. I can't reach the package page either.
/sources/interix/gnu/gcc.tgz within Interix (assumes you have GCC installed)
Reference URL's