[Lldb-commits] [lldb] b4133a2 - [lldb] [Windows] Fix an incorrect assert in NativeRegisterContextWindows_arm
Martin Storsjö via lldb-commits
lldb-commits at lists.llvm.org
Wed Sep 15 05:03:55 PDT 2021
Author: Martin Storsjö
Date: 2021-09-15T15:03:20+03:00
New Revision: b4133a21cef49edb57cf96bb7d7518099d61e910
URL: https://github.com/llvm/llvm-project/commit/b4133a21cef49edb57cf96bb7d7518099d61e910
DIFF: https://github.com/llvm/llvm-project/commit/b4133a21cef49edb57cf96bb7d7518099d61e910.diff
LOG: [lldb] [Windows] Fix an incorrect assert in NativeRegisterContextWindows_arm
This codepath hadn't been exercised in a build with asserts before.
Differential Revision: https://reviews.llvm.org/D109778
Added:
Modified:
lldb/source/Plugins/Process/Windows/Common/NativeRegisterContextWindows_arm.cpp
Removed:
################################################################################
diff --git a/lldb/source/Plugins/Process/Windows/Common/NativeRegisterContextWindows_arm.cpp b/lldb/source/Plugins/Process/Windows/Common/NativeRegisterContextWindows_arm.cpp
index d2b1bc1a13c61..5cfd790c624a3 100644
--- a/lldb/source/Plugins/Process/Windows/Common/NativeRegisterContextWindows_arm.cpp
+++ b/lldb/source/Plugins/Process/Windows/Common/NativeRegisterContextWindows_arm.cpp
@@ -80,8 +80,8 @@ enum { k_num_register_sets = 2 };
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);
}
More information about the lldb-commits
mailing list