@@ -523,6 +523,17 @@ ValueObjectSP StackFrame::GetValueForVariableExpressionPath(
523523 var_sp, error);
524524}
525525
526+ ValueObjectSP StackFrame::GetValueForVariableExpressionPath (
527+ llvm::StringRef var_expr, DynamicValueType use_dynamic, uint32_t options,
528+ VariableSP &var_sp, Status &error, bool use_DIL) {
529+ if (use_DIL)
530+ return DILGetValueForVariableExpressionPath (var_expr, use_dynamic, options,
531+ var_sp, error);
532+
533+ return LegacyGetValueForVariableExpressionPath (var_expr, use_dynamic, options,
534+ var_sp, error);
535+ }
536+
526537ValueObjectSP StackFrame::DILGetValueForVariableExpressionPath (
527538 llvm::StringRef var_expr, lldb::DynamicValueType use_dynamic,
528539 uint32_t options, lldb::VariableSP &var_sp, Status &error) {
@@ -538,7 +549,7 @@ ValueObjectSP StackFrame::DILGetValueForVariableExpressionPath(
538549 auto lex_or_err = dil::DILLexer::Create (var_expr);
539550 if (!lex_or_err) {
540551 error = Status::FromError (lex_or_err.takeError ());
541- return ValueObjectSP ( );
552+ return ValueObjectConstResult::Create ( nullptr , std::move (error) );
542553 }
543554
544555 // Parse the expression.
@@ -547,7 +558,7 @@ ValueObjectSP StackFrame::DILGetValueForVariableExpressionPath(
547558 !no_synth_child, !no_fragile_ivar, check_ptr_vs_member);
548559 if (!tree_or_error) {
549560 error = Status::FromError (tree_or_error.takeError ());
550- return ValueObjectSP ( );
561+ return ValueObjectConstResult::Create ( nullptr , std::move (error) );
551562 }
552563
553564 // Evaluate the parsed expression.
@@ -558,7 +569,7 @@ ValueObjectSP StackFrame::DILGetValueForVariableExpressionPath(
558569 auto valobj_or_error = interpreter.Evaluate ((*tree_or_error).get ());
559570 if (!valobj_or_error) {
560571 error = Status::FromError (valobj_or_error.takeError ());
561- return ValueObjectSP ( );
572+ return ValueObjectConstResult::Create ( nullptr , std::move (error) );
562573 }
563574
564575 return *valobj_or_error;
0 commit comments