[Lldb-commits] [lldb] [lldb-dap] Add clipboard context support (PR #170644)
John Harrison via lldb-commits
lldb-commits at lists.llvm.org
Tue Dec 16 09:23:16 PST 2025
================
@@ -1261,15 +1262,31 @@ lldb::SBValue SBValue::EvaluateExpression(const char *expr,
bool SBValue::GetDescription(SBStream &description) {
LLDB_INSTRUMENT_VA(this, description);
+ return GetDescription(description, eDescriptionLevelFull);
+}
+
+bool SBValue::GetDescription(SBStream &description,
+ lldb::DescriptionLevel description_level) {
+ LLDB_INSTRUMENT_VA(this, description, description_level);
Stream &strm = description.ref();
ValueLocker locker;
lldb::ValueObjectSP value_sp(GetSP(locker));
if (value_sp) {
DumpValueObjectOptions options;
- options.SetUseDynamicType(m_opaque_sp->GetUseDynamic());
- options.SetUseSyntheticValue(m_opaque_sp->GetUseSynthetic());
+ if (description_level != eDescriptionLevelInitial) {
+ options.SetUseDynamicType(m_opaque_sp->GetUseDynamic());
+ options.SetUseSyntheticValue(m_opaque_sp->GetUseSynthetic());
+ }
+ if (description_level == eDescriptionLevelBrief) {
----------------
ashgti wrote:
Should this be an `else if`?
https://github.com/llvm/llvm-project/pull/170644
More information about the lldb-commits
mailing list