projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b299814
)
[LLDB] Fix aggregate-indirect-arg.cpp failure introduced by 227dffd0b6d78154516ace45f...
author
Zequan Wu
<zequanwu@google.com>
Thu, 7 Jul 2022 21:56:19 +0000
(14:56 -0700)
committer
Zequan Wu
<zequanwu@google.com>
Thu, 7 Jul 2022 22:01:07 +0000
(15:01 -0700)
lldb/source/Expression/DWARFExpressionList.cpp
patch
|
blob
|
history
diff --git
a/lldb/source/Expression/DWARFExpressionList.cpp
b/lldb/source/Expression/DWARFExpressionList.cpp
index
e13a293
..
68e3e8c
100644
(file)
--- 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);