When a binary is missing section headers or symbols, objdump can't
provide as good of a disassembly. This change makes objdump try to fetch
a better verion of the binary by its build ID.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/tools/llvm-objdump/llvm-objdump.cpp | ||
---|---|---|
1865 | There's a lot of if clauses in this new area of code, so I'd expect to see a corresponding number of new test cases, but there's only one. Please make sure there's a test case that exercises each of the different possible code paths. | |
1984–1986 | Might want to hold off on this usage here: there's an active discussion on whether we a) should allow it (due to potential footguns), and b) what the style of the C++17 if with initializer should be. See https://discourse.llvm.org/t/rfc-code-style-of-initializer-in-if-statement/65357/1. |
LGTM, with small nit.
llvm/test/tools/llvm-objdump/debuginfod.test | ||
---|---|---|
56–58 | Small nit: I'd reorder these to match the order they're used in. |
Small nit: I'd reorder these to match the order they're used in.