From aeaec6f55abb2cb8b7e1a12c742b42790a65d944 Mon Sep 17 00:00:00 2001 From: Clayton Wheeler Date: Wed, 15 Dec 2021 18:23:41 -0600 Subject: [PATCH] Add note on Clang -gdwarf-aranges option to README --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 031716f3..36e4da0d 100644 --- a/README.md +++ b/README.md @@ -139,6 +139,11 @@ what I know). If you are missing debug information, the stack trace will lack details about your sources. +When using clang++ with libdw, it may be necessary to compile with +`-gdwarf-aranges` to make source locations visible. Libdw prefers to use a +`.debug_aranges` section for source location information, which clang++ doesn't +emit by default. + ### Libraries to read the debug info Backward supports pretty printed stack traces on GNU/Linux, macOS and Windows,