@@ -152,6 +152,7 @@ class CommandObjectFrameDiagnose : public CommandObjectParsed {
152152 return ;
153153 }
154154
155+ result.GetValueObjectList ().Append (valobj_sp);
155156 DumpValueObjectOptions::DeclPrintingHelper helper =
156157 [&valobj_sp](ConstString type, ConstString var,
157158 const DumpValueObjectOptions &opts,
@@ -317,10 +318,10 @@ class CommandObjectFrameSelect : public CommandObjectParsed {
317318 } else if (*m_options.relative_frame_offset > 0 ) {
318319 // I don't want "up 20" where "20" takes you past the top of the stack
319320 // to produce an error, but rather to just go to the top. OTOH, start
320- // by seeing if the requested frame exists, in which case we can avoid
321+ // by seeing if the requested frame exists, in which case we can avoid
321322 // counting the stack here...
322- const uint32_t frame_requested = frame_idx
323- + *m_options.relative_frame_offset ;
323+ const uint32_t frame_requested =
324+ frame_idx + *m_options.relative_frame_offset ;
324325 StackFrameSP frame_sp = thread->GetStackFrameAtIndex (frame_requested);
325326 if (frame_sp)
326327 frame_idx = frame_requested;
@@ -515,8 +516,8 @@ may even involve JITing and running code in the target program.)");
515516
516517 if (error.Fail () && (!variable_list || variable_list->GetSize () == 0 )) {
517518 result.AppendError (error.AsCString ());
518-
519519 }
520+
520521 ValueObjectSP valobj_sp;
521522
522523 TypeSummaryImplSP summary_format_sp;
@@ -564,6 +565,8 @@ may even involve JITing and running code in the target program.)");
564565 valobj_sp = frame->GetValueObjectForFrameVariable (
565566 var_sp, m_varobj_options.use_dynamic );
566567 if (valobj_sp) {
568+ result.GetValueObjectList ().Append (valobj_sp);
569+
567570 std::string scope_string;
568571 if (m_option_variable.show_scope )
569572 scope_string = GetScopeString (var_sp).str ();
@@ -604,6 +607,8 @@ may even involve JITing and running code in the target program.)");
604607 entry.ref (), m_varobj_options.use_dynamic , expr_path_options,
605608 var_sp, error);
606609 if (valobj_sp) {
610+ result.GetValueObjectList ().Append (valobj_sp);
611+
607612 std::string scope_string;
608613 if (m_option_variable.show_scope )
609614 scope_string = GetScopeString (var_sp).str ();
@@ -653,6 +658,8 @@ may even involve JITing and running code in the target program.)");
653658 valobj_sp = frame->GetValueObjectForFrameVariable (
654659 var_sp, m_varobj_options.use_dynamic );
655660 if (valobj_sp) {
661+ result.GetValueObjectList ().Append (valobj_sp);
662+
656663 // When dumping all variables, don't print any variables that are
657664 // not in scope to avoid extra unneeded output
658665 if (valobj_sp->IsInScope ()) {
@@ -694,6 +701,7 @@ may even involve JITing and running code in the target program.)");
694701 recognized_frame->GetRecognizedArguments ();
695702 if (recognized_arg_list) {
696703 for (auto &rec_value_sp : recognized_arg_list->GetObjects ()) {
704+ result.GetValueObjectList ().Append (rec_value_sp);
697705 options.SetFormat (m_option_format.GetFormat ());
698706 options.SetVariableFormatDisplayLanguage (
699707 rec_value_sp->GetPreferredDisplayLanguage ());
0 commit comments