This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix early debug regression with DW_AT_string_length (PR debug/71906)


On 07/21/2016 12:53 PM, Jakub Jelinek wrote:
          size = int_size_in_bytes (TREE_TYPE (szdecl));
...
+                 if (size != DWARF2_ADDR_SIZE)
+                   add_AT_unsigned (array_die, DW_AT_byte_size, size);

For DWARF5, where DW_AT_byte_size is always the size of the array type, I think this should be DW_AT_string_length_byte_size.

OK with that change.

Jason


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]