[PATCH] D111189: Debuginfod Client library based on libcurl

Noah Shutty via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 5 15:26:57 PDT 2021


noajshu created this revision.
noajshu added projects: LLVM, debug-info.
Herald added subscribers: dexonsmith, ormris, hiraditya, mgorny.
noajshu requested review of this revision.
Herald added a subscriber: llvm-commits.

This patch implements debuginfod and http client libraries with local caching. A few unit and lit tests are included.
The client libraries are only built if the cmake configuration flag is passed:

  cmake [...] -DLLVM_ENABLE_DEBUGINFOD_CLIENT=1 

LibCURL is required to build the clients.
The standalone tool `llvm-debuginfod-find` is also provided; it wraps the debuginfod client library.
The lit tests specific to this tool can be run e.g. with:

  LIT_FILTER='.*llvm-debuginfod.* ninja -C build check-llvm'

Thanks in advance for comments and critiques!


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D111189

Files:
  llvm/CMakeLists.txt
  llvm/include/llvm/Support/Debuginfod.h
  llvm/include/llvm/Support/HTTPClient.h
  llvm/lib/Support/CMakeLists.txt
  llvm/lib/Support/Debuginfod.cpp
  llvm/lib/Support/HTTPClient.cpp
  llvm/test/tools/llvm-debuginfod/Inputs/buildid/fake_build_id/debuginfo
  llvm/test/tools/llvm-debuginfod/Inputs/buildid/fake_build_id/executable
  llvm/test/tools/llvm-debuginfod/Inputs/buildid/fake_build_id/source/directory/file.c
  llvm/test/tools/llvm-debuginfod/find-test.sh
  llvm/test/tools/llvm-debuginfod/llvm-debuginfod-find.sh
  llvm/test/tools/llvm-debuginfod/llvm-debuginfod-find.test
  llvm/tools/llvm-debuginfod/CMakeLists.txt
  llvm/tools/llvm-debuginfod/llvm-debuginfod-find.cpp
  llvm/unittests/Support/CMakeLists.txt
  llvm/unittests/Support/Debuginfod.cpp
  llvm/unittests/Support/HTTPClient.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D111189.377366.patch
Type: text/x-patch
Size: 21139 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211005/3a02a954/attachment.bin>


More information about the llvm-commits mailing list