[PATCH] D40317: [llvm-dwarfdump] Display DW_AT_high_pc as absolute value

Paul Robinson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 21 18:42:44 PST 2017


probinson added a comment.

I'm not seeing a test that -show-form actually affects how DW_AT_high_pc is displayed.



================
Comment at: test/tools/llvm-dwarfdump/X86/verify_debug_info.s:13
 # CHECK-NEXT: DW_AT_low_pc [DW_FORM_addr]	(0x0000000000000000)
-# CHECK-NEXT: DW_AT_high_pc [DW_FORM_data4]	(0x00000016){{[[:space:]]}}
+# CHECK-NEXT: DW_AT_high_pc [DW_FORM_data4]	(0x0000000000000016){{[[:space:]]}}
 # CHECK-NEXT: error: Compilation unit root DIE is not a unit DIE: DW_TAG_null.
----------------
So, the DIE that has the error gets printed with forms, but not in -show-form mode?  Is that why high_pc is still displayed as 8 bytes instead of 4?


Repository:
  rL LLVM

https://reviews.llvm.org/D40317





More information about the llvm-commits mailing list