[PATCH] D70759: [llvm-symbolizer] Support debug file lookup using build ID

Petr Hosek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 26 19:13:07 PST 2019


phosek created this revision.
phosek added reviewers: dblaikie, rupprecht, samsonov.
Herald added subscribers: llvm-commits, hiraditya, krytarowski.
Herald added a project: LLVM.

Build ID is a protocol for looking up debug files that's already
supported by various tools including debuggers. For example, when
locating debug files, gdb would check the following directories:

- /usr/lib/debug/.build-id/ab/cdef1234.debug
- /usr/bin/ls.debug
- /usr/bin/.debug/ls.debug
- /usr/lib/debug/usr/bin/ls.debug

llvm-symbolizer currently consults all of these except for build ID
based one. This patch implements support for build ID lookup. The
set of debug directories to search is specified by the new option:
--debug-file-directory, whose name matches the debug-file-directory
variable used by gdb for the same purpose.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D70759

Files:
  llvm/include/llvm/DebugInfo/Symbolize/Symbolize.h
  llvm/lib/DebugInfo/Symbolize/Symbolize.cpp
  llvm/tools/llvm-symbolizer/llvm-symbolizer.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70759.231163.patch
Type: text/x-patch
Size: 6280 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191127/71b16e4c/attachment.bin>


More information about the llvm-commits mailing list