[PATCH] D118174: [Symbolize][DebugInfoD] Try looking up failed paths as Build IDs.

Petr Hosek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 26 00:06:50 PST 2022


phosek added inline comments.


================
Comment at: llvm/docs/CommandGuide/llvm-symbolizer.rst:31
 
+wherever a binary filename is accepted, a Build ID can be provided instead to
+search for the binary. Various cache directories are searched first, followed by
----------------
Nit: spelling.


================
Comment at: llvm/lib/DebugInfo/Symbolize/Symbolize.cpp:522
+          reinterpret_cast<const uint8_t *>(Bytes.data()), Bytes.size());
+      if (BuildID.size() != 20)
+        return BinOrErr.takeError();
----------------
Build ID doesn't have any prescribed length, and linkers typically support a number of hashing algorithms (see https://github.com/llvm/llvm-project/blob/3704abaa166bec865f56f48337a1732eab77dc68/lld/ELF/Driver.cpp#L764) so this isn't going to work.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D118174



More information about the llvm-commits mailing list