[lldb] Fix 8be139fc12 for propery value changes

Fix 8be139fc12 for mid-air collision with the propery value changes.
This commit is contained in:
Jonas Devlieghere
2023-05-02 11:09:48 -07:00
parent 8be139fc12
commit 30c1f31274

View File

@@ -4588,20 +4588,20 @@ uint64_t TargetProperties::GetExprErrorLimit() const {
uint64_t TargetProperties::GetExprAllocAddress() const {
const uint32_t idx = ePropertyExprAllocAddress;
return m_collection_sp->GetPropertyAtIndexAsUInt64(
nullptr, idx, g_target_properties[idx].default_uint_value);
return m_collection_sp->GetPropertyAtIndexAsUInt64(idx).value_or(
g_target_properties[idx].default_uint_value);
}
uint64_t TargetProperties::GetExprAllocSize() const {
const uint32_t idx = ePropertyExprAllocSize;
return m_collection_sp->GetPropertyAtIndexAsUInt64(
nullptr, idx, g_target_properties[idx].default_uint_value);
return m_collection_sp->GetPropertyAtIndexAsUInt64(idx).value_or(
g_target_properties[idx].default_uint_value);
}
uint64_t TargetProperties::GetExprAllocAlign() const {
const uint32_t idx = ePropertyExprAllocAlign;
return m_collection_sp->GetPropertyAtIndexAsUInt64(
nullptr, idx, g_target_properties[idx].default_uint_value);
return m_collection_sp->GetPropertyAtIndexAsUInt64(idx).value_or(
g_target_properties[idx].default_uint_value);
}
bool TargetProperties::GetBreakpointsConsultPlatformAvoidList() {