[PATCH] D111252: [llvm] [Support] [Debuginfo] Add http and debuginfod client libraries and llvm-debuginfod-find tool
Noah Shutty via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 6 11:27:55 PDT 2021
noajshu created this revision.
Herald added subscribers: dexonsmith, hiraditya, mgorny.
noajshu requested review of this revision.
Herald added a project: LLVM.
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/D111252
Files:
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.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: D111252.377620.patch
Type: text/x-patch
Size: 19075 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211006/00d8c1f9/attachment.bin>
More information about the llvm-commits
mailing list