Author: gclayton
Date: Mon Aug  6 10:26:53 2018
New Revision: 339034

URL: http://llvm.org/viewvc/llvm-project?rev=339034&view=rev
Log:
Fix more offsetof issues.


Modified:
    lldb/trunk/source/Plugins/Process/minidump/RegisterContextMinidump_ARM.cpp

Modified: 
lldb/trunk/source/Plugins/Process/minidump/RegisterContextMinidump_ARM.cpp
URL: 
http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/minidump/RegisterContextMinidump_ARM.cpp?rev=339034&r1=339033&r2=339034&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/minidump/RegisterContextMinidump_ARM.cpp 
(original)
+++ lldb/trunk/source/Plugins/Process/minidump/RegisterContextMinidump_ARM.cpp 
Mon Aug  6 10:26:53 2018
@@ -171,7 +171,7 @@ static RegisterInfo g_reg_info_apple_fp
     "fp",
     "r7",
     4,
-    OFFSET(r[7]),
+    OFFSET(r) + 7 * 4,
     eEncodingUint,
     eFormatHex,
     {INV, dwarf_r7, LLDB_REGNUM_GENERIC_FP, INV, reg_r7},
@@ -184,7 +184,7 @@ static RegisterInfo g_reg_info_fp = {
     "fp",
     "r11",
     4,
-    OFFSET(r[11]),
+    OFFSET(r) + 11 * 4,
     eEncodingUint,
     eFormatHex,
     {INV, dwarf_r11, LLDB_REGNUM_GENERIC_FP, INV, reg_r11},
@@ -211,7 +211,7 @@ static RegisterInfo g_reg_infos[] = {
     {"sp",
      "r13",
      4,
-     OFFSET(r[13]),
+     OFFSET(r) + 13 * 4,
      eEncodingUint,
      eFormatHex,
      {INV, dwarf_sp, LLDB_REGNUM_GENERIC_SP, INV, reg_sp},
@@ -222,7 +222,7 @@ static RegisterInfo g_reg_infos[] = {
     {"lr",
      "r14",
      4,
-     OFFSET(r[14]),
+     OFFSET(r) + 14 * 4,
      eEncodingUint,
      eFormatHex,
      {INV, dwarf_lr, LLDB_REGNUM_GENERIC_RA, INV, reg_lr},
@@ -233,7 +233,7 @@ static RegisterInfo g_reg_infos[] = {
     {"pc",
      "r15",
      4,
-     OFFSET(r[15]),
+     OFFSET(r) + 15 * 4,
      eEncodingUint,
      eFormatHex,
      {INV, dwarf_pc, LLDB_REGNUM_GENERIC_PC, INV, reg_pc},


_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to