Skip to content

Commit b2fb392

Browse files
author
Matej Košík
committed
[lldb] fix the "RegisterValue::SetValueFromData" method
Fix the "RegisterValue::SetValueFromData" so that it works also for 128-bit registers that contain integers.
1 parent b936f2c commit b2fb392

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/source/Utility/RegisterValue.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ Status RegisterValue::SetValueFromData(const RegisterInfo &reg_info,
199199
else if (reg_info.byte_size <= 16) {
200200
uint64_t data1 = src.GetU64(&src_offset);
201201
uint64_t data2 = src.GetU64(&src_offset);
202-
if (src.GetByteOrder() == eByteOrderBig) {
202+
if (src.GetByteOrder() == eByteOrderLittle) {
203203
int128.x[0] = data1;
204204
int128.x[1] = data2;
205205
} else {

0 commit comments

Comments
 (0)