@@ -152,6 +152,7 @@ class CommandObjectFrameDiagnose : public CommandObjectParsed {
152
152
return ;
153
153
}
154
154
155
+ result.GetValueObjectList ().Append (valobj_sp);
155
156
DumpValueObjectOptions::DeclPrintingHelper helper =
156
157
[&valobj_sp](ConstString type, ConstString var,
157
158
const DumpValueObjectOptions &opts,
@@ -317,10 +318,10 @@ class CommandObjectFrameSelect : public CommandObjectParsed {
317
318
} else if (*m_options.relative_frame_offset > 0 ) {
318
319
// I don't want "up 20" where "20" takes you past the top of the stack
319
320
// 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
321
322
// 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 ;
324
325
StackFrameSP frame_sp = thread->GetStackFrameAtIndex (frame_requested);
325
326
if (frame_sp)
326
327
frame_idx = frame_requested;
@@ -515,8 +516,8 @@ may even involve JITing and running code in the target program.)");
515
516
516
517
if (error.Fail () && (!variable_list || variable_list->GetSize () == 0 )) {
517
518
result.AppendError (error.AsCString ());
518
-
519
519
}
520
+
520
521
ValueObjectSP valobj_sp;
521
522
522
523
TypeSummaryImplSP summary_format_sp;
@@ -564,6 +565,8 @@ may even involve JITing and running code in the target program.)");
564
565
valobj_sp = frame->GetValueObjectForFrameVariable (
565
566
var_sp, m_varobj_options.use_dynamic );
566
567
if (valobj_sp) {
568
+ result.GetValueObjectList ().Append (valobj_sp);
569
+
567
570
std::string scope_string;
568
571
if (m_option_variable.show_scope )
569
572
scope_string = GetScopeString (var_sp).str ();
@@ -604,6 +607,8 @@ may even involve JITing and running code in the target program.)");
604
607
entry.ref (), m_varobj_options.use_dynamic , expr_path_options,
605
608
var_sp, error);
606
609
if (valobj_sp) {
610
+ result.GetValueObjectList ().Append (valobj_sp);
611
+
607
612
std::string scope_string;
608
613
if (m_option_variable.show_scope )
609
614
scope_string = GetScopeString (var_sp).str ();
@@ -653,6 +658,8 @@ may even involve JITing and running code in the target program.)");
653
658
valobj_sp = frame->GetValueObjectForFrameVariable (
654
659
var_sp, m_varobj_options.use_dynamic );
655
660
if (valobj_sp) {
661
+ result.GetValueObjectList ().Append (valobj_sp);
662
+
656
663
// When dumping all variables, don't print any variables that are
657
664
// not in scope to avoid extra unneeded output
658
665
if (valobj_sp->IsInScope ()) {
@@ -694,6 +701,7 @@ may even involve JITing and running code in the target program.)");
694
701
recognized_frame->GetRecognizedArguments ();
695
702
if (recognized_arg_list) {
696
703
for (auto &rec_value_sp : recognized_arg_list->GetObjects ()) {
704
+ result.GetValueObjectList ().Append (rec_value_sp);
697
705
options.SetFormat (m_option_format.GetFormat ());
698
706
options.SetVariableFormatDisplayLanguage (
699
707
rec_value_sp->GetPreferredDisplayLanguage ());
0 commit comments