[fpc-devel] CaptureBacktrace
Karoly Balogh
charlie at scenergy.dfmk.hu
Fri Oct 4 17:44:46 CEST 2024
Hi,
On Fri, 4 Oct 2024, Adriaan van Os via fpc-devel wrote:
> My question now is if there is a reason why FPC doesn't call backtrace (see
> man backtrace) on Linux and Unix (including MacOS) platforms ?
It seems this is a relatively recent addition to libc, which means, after
2000. :)
I suppose we could call it on macOS, as we always link against libc there.
Althouh we used support earlier systems than OS X 10.5, where it first
appeared, according to the macOS man page. I guess Jonas could say
something more about that.
Same applies to BSDs. We used to support earlier BSD version than where
this call existed. Not sure that is still true tho'.
But on Linux we don't always link against libc, and we do support just
running on top of kernel. In fact this is the default. We only link
against libc, when multithreading is involved, or linking against any
other C-style library.
Charlie
More information about the fpc-devel
mailing list