Skip to content

Commit

Permalink
Fill in width field for DebugRegister in lldbadapter
Browse files Browse the repository at this point in the history
  • Loading branch information
galenbwill authored and xusheng6 committed May 10, 2023
1 parent 5fa9e34 commit 14b5afa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/adapters/lldbadapter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ std::unordered_map<std::string, DebugRegister> LldbAdapter::ReadAllRegisters()
{
std::string regName(regNameStr);
if (!regName.empty())
result[regName] = DebugRegister(regName, reg.GetValueAsUnsigned(), 0, regIndex++);
result[regName] = DebugRegister(regName, reg.GetValueAsUnsigned(), reg.GetByteSize() * 8, regIndex++);
}
}
}
Expand Down

0 comments on commit 14b5afa

Please sign in to comment.