Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page.
Requires a signed-in GitHub account. This works well for small changes.
If you'd like to make larger changes you may want to consider using
a local clone.
core.internal.backtrace.handler
Libunwind-based implementation of TraceInfo
This module exposes an handler that uses libunwind to print stack traces.
It is used when druntime is packaged with DRuntime_Use_Libunwind or when
the user uses the following in main:
import core.runtime; import core.internal.backtrace.handler; Runtime.traceHandler = &libunwindDefaultTraceHandler;Note that this module uses dladdr to retrieve the function's name. To ensure that local (non-library) functions have their name printed, the flag -L--export-dynamic must be used while compiling, otherwise only the executable name will be available.
Authors:
Mathias 'Geod24' Lang
See Also:
Copyright © 1999-2024 by the D Language Foundation | Page generated by
Ddoc on (no date time)