[PATCH] D142283: [Support] Make llvm-symbolizer runs for stack traces work on Apple platforms

David Blaikie via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 14 15:22:59 PST 2023


dblaikie added inline comments.


================
Comment at: llvm/lib/Support/Signals.cpp:227
+        Args.push_back("--dsym-hint");
+        Args.push_back(DSymHintArgs.back());
+      }
----------------
aprantl wrote:
> The correct way of locating dSYMs on macOS is to run `mdfind` with the UUID of binary (e.g., https://github.com/llvm/llvm-project/blob/b40bfc1b9e389c154f6c60550dfc010ff8b3658f/lldb/examples/python/crashlog.py#L303).  The UUID can be extracted with `dwarfdump --uuid` for example.
Does that cover the non-dsym case (debugging/symbolizing from raw .o files) too?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D142283/new/

https://reviews.llvm.org/D142283



More information about the llvm-commits mailing list