Skip to content

Commit 0d10c4a

Browse files
committed
Use command's dynamic type value
1 parent cce676f commit 0d10c4a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lldb/source/Commands/CommandObjectDWIMPrint.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,10 +161,10 @@ void CommandObjectDWIMPrint::DoExecute(StringRef command,
161161
// how the expression is handled. Additionally, `*` and `&` are not supported.
162162
bool try_variable_path = expr.find_first_of("*&->[]") == StringRef::npos;
163163
if (frame && try_variable_path) {
164-
Status status;
165164
VariableSP var_sp;
165+
Status status;
166166
auto valobj_sp = frame->GetValueForVariableExpressionPath(
167-
expr, eDynamicDontRunTarget,
167+
expr, eval_options.GetUseDynamic(),
168168
StackFrame::eExpressionPathOptionsAllowDirectIVarAccess, var_sp,
169169
status);
170170
if (valobj_sp && status.Success() && valobj_sp->GetError().Success()) {

0 commit comments

Comments
 (0)