* Fixed issue, when structures with many fields had wrong size in dwarf (dotnet/corec...
authorBuyduck <ivan.vagin@partner.samsung.com>
Mon, 10 Apr 2017 12:48:57 +0000 (16:48 +0400)
committerJan Vorlicek <janvorli@microsoft.com>
Mon, 10 Apr 2017 12:48:57 +0000 (14:48 +0200)
Commit migrated from https://github.com/dotnet/coreclr/commit/468d9a3197378511e4106160fbb07cc91c3baa97

src/coreclr/src/vm/gdbjit.cpp

index 1f2bedf..fe8e211 100644 (file)
@@ -722,7 +722,7 @@ const unsigned char AbbrevTable[] = {
         DW_FORM_ref4, DW_AT_location, DW_FORM_exprloc, 0, 0,
 
     7, DW_TAG_class_type, DW_CHILDREN_yes,
-        DW_AT_name, DW_FORM_strp, DW_AT_byte_size, DW_FORM_data1, 0, 0,
+        DW_AT_name, DW_FORM_strp, DW_AT_byte_size, DW_FORM_data4, 0, 0,
 
     8, DW_TAG_member, DW_CHILDREN_no,
         DW_AT_name, DW_FORM_strp, DW_AT_type, DW_FORM_ref4, DW_AT_data_member_location, DW_FORM_data4, 0, 0,
@@ -871,7 +871,7 @@ struct __attribute__((packed)) DebugInfoClassType
 {
     uint8_t m_type_abbrev;
     uint32_t m_type_name;
-    uint8_t m_byte_size;
+    uint32_t m_byte_size;
 };
 
 struct __attribute__((packed)) DebugInfoInheritance