Menu

- Learn
- Documentation
  - Language Reference
  - Library Reference
  - Command-line Reference
  - Feature Overview
  - Articles
- Downloads
- Packages
- Community
  - Blog
  - Orgs using D
  - Twitter
  - Forums
  - IRC
  - Community Discord
  - Wiki
  - GitHub
  - Issues
  - Get involved
  - Contributors
  - Foundation
  - Security Team
  - Donate
  - Sponsors
- Resources
  - Tour
  - Books
  - Tutorials
  - Tools
  - Editors
  - IDEs
  - run.dlang.io
  - Visual D
  - Acknowledgments
  - D Style
  - Glossary
  - Sitemap

Search
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:
https://www.nongnu.org/libunwind/man/libunwind(3).html
Copyright © 1999-2023 by the D Language Foundation | Page generated by Ddoc on Fri Sep 1 19:44:56 2023