[Lldb-commits] [lldb] 562c346 - [LLDB] Fix aggregate-indirect-arg.cpp failure introduced by 227dffd0b6d78154516ace45f6ed28259c7baa48
Zequan Wu via lldb-commits
lldb-commits at lists.llvm.org
Thu Jul 7 15:01:14 PDT 2022
Author: Zequan Wu
Date: 2022-07-07T15:01:07-07:00
New Revision: 562c3467a6738aa89203f72fc1d1343e5baadf3c
URL: https://github.com/llvm/llvm-project/commit/562c3467a6738aa89203f72fc1d1343e5baadf3c
DIFF: https://github.com/llvm/llvm-project/commit/562c3467a6738aa89203f72fc1d1343e5baadf3c.diff
LOG: [LLDB] Fix aggregate-indirect-arg.cpp failure introduced by 227dffd0b6d78154516ace45f6ed28259c7baa48
Added:
Modified:
lldb/source/Expression/DWARFExpressionList.cpp
Removed:
################################################################################
diff --git a/lldb/source/Expression/DWARFExpressionList.cpp b/lldb/source/Expression/DWARFExpressionList.cpp
index e13a2931644b..68e3e8c611b9 100644
--- a/lldb/source/Expression/DWARFExpressionList.cpp
+++ b/lldb/source/Expression/DWARFExpressionList.cpp
@@ -204,8 +204,11 @@ bool DWARFExpressionList::Evaluate(ExecutionContext *exe_ctx,
}
addr_t addr = pc.GetFileAddress();
const auto *entry = m_exprs.FindEntryThatContains(addr);
- if (!entry)
+ if (!entry) {
+ if (error_ptr)
+ error_ptr->SetErrorString("variable not available");
return false;
+ }
expr = entry->data;
}
expr.GetExpressionData(data);
More information about the lldb-commits
mailing list