Skip to content

Commit

Permalink
Fix crash on Windows when de-referencing the strings
Browse files Browse the repository at this point in the history
  • Loading branch information
xusheng6 committed Mar 8, 2023
1 parent 9c38f97 commit e97d17d
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions core/debuggerstate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,15 @@ std::vector<DebugRegister> DebuggerRegisters::GetAllRegisters()
{
auto it = regHints.find(reg.m_value);
if (it != regHints.end())
reg.m_hint = it->second;
{
reg.m_hint = it->second;
}
else
it->second = controller->GetAddressInformation(reg.m_value);

reg.m_hint = it->second;
{
const std::string hint = controller->GetAddressInformation(reg.m_value);
regHints[reg.m_value] = hint;
reg.m_hint = hint;
}
}

return result;
Expand Down

0 comments on commit e97d17d

Please sign in to comment.