-
Notifications
You must be signed in to change notification settings - Fork 15.9k
Avoid expression evaluation in libStdC++ std::vector<bool> synthetic children provider #108414
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 7 commits
6e84ab9
b23f3ea
b8ec0fb
1a350e4
d56c9b3
37a5ffa
257cd0d
713242a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -645,6 +645,23 @@ lldb::SBValue SBValue::CreateValueFromData(const char *name, SBData data, | |
| return sb_value; | ||
| } | ||
|
|
||
| lldb::SBValue SBValue::CreateBoolValue(const char *name, bool value) { | ||
| LLDB_INSTRUMENT_VA(this, name); | ||
|
|
||
| lldb::SBValue sb_value; | ||
| lldb::ValueObjectSP new_value_sp; | ||
| ValueLocker locker; | ||
| lldb::ValueObjectSP value_sp(GetSP(locker)); | ||
| lldb::TargetSP target_sp = m_opaque_sp->GetTargetSP(); | ||
| if (value_sp && target_sp) { | ||
| new_value_sp = | ||
| ValueObject::CreateValueObjectFromBool(target_sp, value, name); | ||
| new_value_sp->SetAddressTypeOfChildren(eAddressTypeLoad); | ||
|
||
| } | ||
| sb_value.SetSP(new_value_sp); | ||
| return sb_value; | ||
| } | ||
|
|
||
| SBValue SBValue::GetChildAtIndex(uint32_t idx) { | ||
| LLDB_INSTRUMENT_VA(this, idx); | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would add a blurb this is created from data not address