Add support for auto-detecting or specifying dSYM files/directories to allow interleaving source with disassembly.
Details
Diff Detail
Event Timeline
llvm/tools/llvm-objdump/MachODump.cpp | ||
---|---|---|
7395 | unneeded blank line | |
7398 | End full sentences with . | |
7400 | https://llvm.org/docs/ProgrammersManual.html#the-twine-class Avoid using Twine as a local variable. |
llvm/test/tools/llvm-objdump/MachO/disassemble-source-dsym.test | ||
---|---|---|
1 ↗ | (On Diff #464851) | Optional: newer test/tools tests use ## for non-RUN non-CHECK comments. That makes comments stand out and helps possibly future FileCheck's more rigid rule catching unused prefixes. |
3 ↗ | (On Diff #464851) | Add a comment if this intentionally tests reading from stdin? |
9 ↗ | (On Diff #464851) | The line isn't long enough that needs wrapping... |
llvm/tools/llvm-objdump/MachODump.cpp | ||
7457 | ||
7484 | https://llvm.org/docs/CodingStandards.html#error-and-warning-messages The convention is omit the trailing period. |
- Used ## to start comments in the .test
- Addressed line length / grammar conventions
- Removed superfluous leading namespace (llvm::)
- Only stat(2) once when auto-detecting .dSYM files
llvm/test/tools/llvm-objdump/MachO/disassemble-source-dsym.test | ||
---|---|---|
3 ↗ | (On Diff #464851) | I hope the explicit - is enough to make it clear this is intentional. |
llvm/tools/llvm-objdump/MachODump.cpp | ||
7400 | I don't see any reference escaping here, AFAICT, but I'm new to llvm's string types. Could you offer a suggestion? | |
7484 | These messages are referenced in unrelated tests whose changes would only add noise here. Also, changing just these would make them inconsistent with the rest of the file. :( |
Merge with another similar patch to detect an alternate location (.build-id) for a debug object:
d033ece0c985d3f89c261d030ff2ff1d9c58bbc6 [llvm-objdump] Find debug information with Build ID/debuginfod
llvm/tools/llvm-objdump/llvm-objdump.cpp | ||
---|---|---|
1294 | Perhaps move DbgObj next to Obj? They are both related to ObjectFile. |
Update argument order to put DbgObj directly after Obj since they are related and usually equal.
unneeded blank line