[lldb] Fix arm breakages from D130985
authorPavel Labath <pavel@labath.sk>
Thu, 4 Aug 2022 11:55:35 +0000 (13:55 +0200)
committerPavel Labath <pavel@labath.sk>
Thu, 4 Aug 2022 11:55:35 +0000 (13:55 +0200)
The kernel was rejecting sizeof(struct GPR) as it was not a multiple of
8. Add a padding field to fix that.

One also wonders whether "cpsr" is right register name for aarch64.

lldb/source/Plugins/Process/Utility/RegisterInfoPOSIX_arm64.h

index 3e992ac..7f7c3ee 100644 (file)
@@ -47,6 +47,7 @@ public:
     uint64_t sp;    // x31
     uint64_t pc;    // pc
     uint32_t cpsr;  // cpsr
+    uint32_t pad;
   };
   LLVM_PACKED_END