[libunwind] [libunwind] introduce _LIBUNWIND_TRACE_DWARF_EVAL for increased baremetal friendliness (PR #72040)

Michael Kenzel via cfe-commits cfe-commits at lists.llvm.org
Sat Nov 11 15:55:18 PST 2023


================
@@ -223,6 +223,21 @@
     } while (0)
 #endif
 
+#define _LIBUNWIND_TRACING_DWARF_EVAL (0)
----------------
michael-kenzel wrote:

Yeah, I figured if anyone ever actually needed to turn this on for debug builds in general, they'd have added that option. It seemed to me like this is more just some convenience thing for whoever was working on that code. I didn't want to couple this to `NDEBUG` or some external function like the other stuff does since this output so far wasn't turned on that way either. And adding a whole CMake build option just for this seemed like overkill. Given the way it's been used so far, doing it via a CMake option would likely get in the way more than anything else since that would force a wider rebuild every time you switch. So I just kept the overall behavior as-is. With the macro in the config header now, it will be trivial to add a build flag or something, should the need ever arise.

https://github.com/llvm/llvm-project/pull/72040


More information about the cfe-commits mailing list