[Lldb-commits] [lldb] r339130 - Fix a couple of extended-offsetof warnings that had slipped through

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Tue Aug 7 05:16:49 PDT 2018


Author: labath
Date: Tue Aug  7 05:16:49 2018
New Revision: 339130

URL: http://llvm.org/viewvc/llvm-project?rev=339130&view=rev
Log:
Fix a couple of extended-offsetof warnings that had slipped through

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

Modified: lldb/trunk/source/Plugins/Process/minidump/RegisterContextMinidump_ARM64.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/minidump/RegisterContextMinidump_ARM64.cpp?rev=339130&r1=339129&r2=339130&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/minidump/RegisterContextMinidump_ARM64.cpp (original)
+++ lldb/trunk/source/Plugins/Process/minidump/RegisterContextMinidump_ARM64.cpp Tue Aug  7 05:16:49 2018
@@ -313,7 +313,7 @@ static RegisterInfo g_reg_infos[] = {
     {"fp",
      "x29",
      8,
-     OFFSET(x[29]),
+     OFFSET(x) + 29 * 8,
      eEncodingUint,
      eFormatHex,
      {INV, arm64_dwarf::x29, LLDB_REGNUM_GENERIC_FP, INV, reg_fp},
@@ -324,7 +324,7 @@ static RegisterInfo g_reg_infos[] = {
     {"lr",
      "x30",
      8,
-     OFFSET(x[30]),
+     OFFSET(x) + 30 * 8,
      eEncodingUint,
      eFormatHex,
      {INV, arm64_dwarf::x30, LLDB_REGNUM_GENERIC_RA, INV, reg_lr},
@@ -335,7 +335,7 @@ static RegisterInfo g_reg_infos[] = {
     {"sp",
      "x31",
      8,
-     OFFSET(x[31]),
+     OFFSET(x) + 31 * 8,
      eEncodingUint,
      eFormatHex,
      {INV, arm64_dwarf::x31, LLDB_REGNUM_GENERIC_SP, INV, reg_sp},




More information about the lldb-commits mailing list