This revision was automatically updated to reflect the committed changes. Closed by commit rGb4133a21cef4: [lldb] [Windows] Fix an incorrect assert in NativeRegisterContextWindows_arm (authored by mstorsjo).
Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D109778/new/ https://reviews.llvm.org/D109778 Files: lldb/source/Plugins/Process/Windows/Common/NativeRegisterContextWindows_arm.cpp Index: lldb/source/Plugins/Process/Windows/Common/NativeRegisterContextWindows_arm.cpp =================================================================== --- lldb/source/Plugins/Process/Windows/Common/NativeRegisterContextWindows_arm.cpp +++ lldb/source/Plugins/Process/Windows/Common/NativeRegisterContextWindows_arm.cpp @@ -80,8 +80,8 @@ static RegisterInfoInterface * CreateRegisterInfoInterface(const ArchSpec &target_arch) { - assert((HostInfo::GetArchitecture().GetAddressByteSize() == 8) && - "Register setting path assumes this is a 64-bit host"); + assert((HostInfo::GetArchitecture().GetAddressByteSize() == 4) && + "Register setting path assumes this is a 32-bit host"); return new RegisterInfoPOSIX_arm(target_arch); }
Index: lldb/source/Plugins/Process/Windows/Common/NativeRegisterContextWindows_arm.cpp =================================================================== --- lldb/source/Plugins/Process/Windows/Common/NativeRegisterContextWindows_arm.cpp +++ lldb/source/Plugins/Process/Windows/Common/NativeRegisterContextWindows_arm.cpp @@ -80,8 +80,8 @@ static RegisterInfoInterface * CreateRegisterInfoInterface(const ArchSpec &target_arch) { - assert((HostInfo::GetArchitecture().GetAddressByteSize() == 8) && - "Register setting path assumes this is a 64-bit host"); + assert((HostInfo::GetArchitecture().GetAddressByteSize() == 4) && + "Register setting path assumes this is a 32-bit host"); return new RegisterInfoPOSIX_arm(target_arch); }
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits