[PATCH] D85405: [obj2yaml] Test dumping an empty .debug_aranges section.
Xing GUO via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 6 00:18:06 PDT 2020
Higuoxing created this revision.
Higuoxing added reviewers: jhenderson, grimar, MaskRay.
Herald added subscribers: llvm-commits, emaste.
Herald added a reviewer: espindola.
Herald added a project: LLVM.
Higuoxing requested review of this revision.
This patch adds one test case that tests dumping an empty .debug_aranges
section.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D85405
Files:
llvm/test/tools/obj2yaml/ELF/DWARF/debug-aranges.yaml
Index: llvm/test/tools/obj2yaml/ELF/DWARF/debug-aranges.yaml
===================================================================
--- llvm/test/tools/obj2yaml/ELF/DWARF/debug-aranges.yaml
+++ llvm/test/tools/obj2yaml/ELF/DWARF/debug-aranges.yaml
@@ -170,3 +170,20 @@
- Length: 0x1234
Version: 2
CuOffset: 0x1234
+
+## e) Test dumping an empty .debug_aranges section.
+
+# RUN: yaml2obj --docnum=5 %s | obj2yaml | FileCheck %s --check-prefix=EMPTY-CONTENT
+
+# EMPTY-CONTENT: DWARF:
+# EMPTY-CONTENT-NEXT: debug_aranges: []
+# EMPTY-CONTENT-NEXT: ...
+
+--- !ELF
+FileHeader:
+ Class: ELFCLASS64
+ Data: ELFDATA2LSB
+ Type: ET_EXEC
+ Machine: EM_X86_64
+DWARF:
+ debug_aranges: []
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85405.283505.patch
Type: text/x-patch
Size: 723 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200806/b4486fcc/attachment.bin>
More information about the llvm-commits
mailing list