[PATCH] D54049: [DWARF v5] Verifier: Add checks for DW_FORM_strx* forms.
Wolfgang Pieb via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 2 14:37:48 PDT 2018
wolfgangp added inline comments.
================
Comment at: test/DebugInfo/X86/dwarfdump-str-offsets.s:3
# RUN: llvm-dwarfdump -v %t.o 2> %t.err | FileCheck --check-prefix=COMMON --check-prefix=SPLIT %s
+# RUN: llvm-dwarfdump -verify %t.o | FileCheck --check-prefix=VERIFY %s
#
----------------
Enhance this test case to pass the verifier. We're adding a DW_AT_base_type attribute to the variable DIEs to make it do so.
================
Comment at: test/tools/llvm-dwarfdump/X86/verify_debug_info.s:10
# CHECK-NEXT: DW_AT_name [DW_FORM_strp] ( .debug_str[0x00000037] = "basic.c")
-# CHECK-NEXT: DW_AT_stmt_list [DW_FORM_strx4] ( indexed (00000000) string = )
+# CHECK-NEXT: DW_AT_stmt_list [DW_FORM_block4]
# CHECK-NEXT: DW_AT_comp_dir [DW_FORM_strp] ( .debug_str[0x0000003f] = "/Users/sgravani/Development/tests")
----------------
This test case was using DW_FORM_strx4 as an invalid form for DW_AT_stmt_list. Now that we're verifying strx4, this is causing confusion. Replace the strx4 with a different, suitable, invalid form, such as block4.
https://reviews.llvm.org/D54049
More information about the llvm-commits
mailing list