When obj2yaml encounters a string without the null terminator, it should
stop parsing the debug_str section. This patch addresses comments in
D86867.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Event Timeline
llvm/test/ObjectYAML/MachO/DWARF-debug_str.yaml | ||
---|---|---|
325 | ||
327 | Might be worth an --implicit-check-not to show that a DWARF tag is not included (or a NO-TERMINATOR-NOT: DWARF before the Sections block). | |
llvm/test/tools/obj2yaml/ELF/DWARF/debug-str.yaml | ||
103 | May be worth extending this comment saying that it uses raw content instead of the DWARF tag in this situation. Also, see comment above re. checking there is no DWARF tag in the YAML output. |
LGTM with comment update.
llvm/test/tools/obj2yaml/ELF/DWARF/debug-str.yaml | ||
---|---|---|
104–105 | This is what I meant. Your comment suggested it was the input that was important, whereas I'm interested in explaining that it's the output that we're testing here. |