- Hide .debug_str offset
- Hide offset into the CU of a die reference
Before:
0x0000002a: DW_TAG_subprogram DW_AT_low_pc (0x0000000100000fb0) DW_AT_high_pc (0x00000008) DW_AT_frame_base (<0x1> 56 ) DW_AT_name ( .debug_str[0x00000056] = "main") DW_AT_decl_file ("/Users/jonas/llvm/brief/a.c") DW_AT_decl_line (1) DW_AT_type (cu + 0x0043 => {0x00000043}) DW_AT_external (true)
After:
0x0000002a: DW_TAG_subprogram DW_AT_low_pc (0x0000000100000fb0) DW_AT_high_pc (0x00000008) DW_AT_frame_base (<0x1> 56 ) DW_AT_name ( .debug_str = "main") DW_AT_decl_file ("/Users/jonas/llvm/brief/a.c") DW_AT_decl_line (1) DW_AT_type (cu + 0x0043) DW_AT_external (true)
It's probably worth having a positive test for what the string printing looks like in brief mode? I know it was mentioned in the patch description, but it was revised before committing & I was curious to see how it actually prints out now.
FWIW, I'd think we might want to drive towards printing something as simple as:
(ie: dropping as much of the ()[]{} sort of stuff as possible, and dropping the DW_*_ prefixes too - since they're unambiguous as to what's a DW_TAG, DW_AT, DW_OP, etc, based on context)