@@ -152,7 +152,7 @@ class CommandObjectFrameDiagnose : public CommandObjectParsed {
152152 return ;
153153 }
154154
155- result.SetValueObjectSP (valobj_sp);
155+ result.GetValueObjectList (). Append (valobj_sp);
156156 DumpValueObjectOptions::DeclPrintingHelper helper =
157157 [&valobj_sp](ConstString type, ConstString var,
158158 const DumpValueObjectOptions &opts,
@@ -318,10 +318,10 @@ class CommandObjectFrameSelect : public CommandObjectParsed {
318318 } else if (*m_options.relative_frame_offset > 0 ) {
319319 // I don't want "up 20" where "20" takes you past the top of the stack
320320 // to produce an error, but rather to just go to the top. OTOH, start
321- // 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
322322 // counting the stack here...
323- const uint32_t frame_requested = frame_idx
324- + *m_options.relative_frame_offset ;
323+ const uint32_t frame_requested =
324+ frame_idx + *m_options.relative_frame_offset ;
325325 StackFrameSP frame_sp = thread->GetStackFrameAtIndex (frame_requested);
326326 if (frame_sp)
327327 frame_idx = frame_requested;
@@ -516,8 +516,8 @@ may even involve JITing and running code in the target program.)");
516516
517517 if (error.Fail () && (!variable_list || variable_list->GetSize () == 0 )) {
518518 result.AppendError (error.AsCString ());
519-
520519 }
520+
521521 ValueObjectSP valobj_sp;
522522
523523 TypeSummaryImplSP summary_format_sp;
@@ -565,6 +565,8 @@ may even involve JITing and running code in the target program.)");
565565 valobj_sp = frame->GetValueObjectForFrameVariable (
566566 var_sp, m_varobj_options.use_dynamic );
567567 if (valobj_sp) {
568+ result.GetValueObjectList ().Append (valobj_sp);
569+
568570 std::string scope_string;
569571 if (m_option_variable.show_scope )
570572 scope_string = GetScopeString (var_sp).str ();
@@ -605,6 +607,8 @@ may even involve JITing and running code in the target program.)");
605607 entry.ref (), m_varobj_options.use_dynamic , expr_path_options,
606608 var_sp, error);
607609 if (valobj_sp) {
610+ result.GetValueObjectList ().Append (valobj_sp);
611+
608612 std::string scope_string;
609613 if (m_option_variable.show_scope )
610614 scope_string = GetScopeString (var_sp).str ();
@@ -654,6 +658,8 @@ may even involve JITing and running code in the target program.)");
654658 valobj_sp = frame->GetValueObjectForFrameVariable (
655659 var_sp, m_varobj_options.use_dynamic );
656660 if (valobj_sp) {
661+ result.GetValueObjectList ().Append (valobj_sp);
662+
657663 // When dumping all variables, don't print any variables that are
658664 // not in scope to avoid extra unneeded output
659665 if (valobj_sp->IsInScope ()) {
@@ -695,6 +701,7 @@ may even involve JITing and running code in the target program.)");
695701 recognized_frame->GetRecognizedArguments ();
696702 if (recognized_arg_list) {
697703 for (auto &rec_value_sp : recognized_arg_list->GetObjects ()) {
704+ result.GetValueObjectList ().Append (rec_value_sp);
698705 options.SetFormat (m_option_format.GetFormat ());
699706 options.SetVariableFormatDisplayLanguage (
700707 rec_value_sp->GetPreferredDisplayLanguage ());
0 commit comments