[Lldb-commits] [PATCH] D126014: Show error message for optimized variables
Jorge Gorbe Moya via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Thu Oct 27 14:56:25 PDT 2022
jgorbe added inline comments.
================
Comment at: lldb/tools/lldb-vscode/JSONUtils.cpp:136-156
llvm::StringRef value = v.GetValue();
llvm::StringRef summary = v.GetSummary();
llvm::StringRef type_name = v.GetType().GetDisplayTypeName();
+ lldb::SBError error = v.GetError();
std::string result;
llvm::raw_string_ostream strm(result);
----------------
clayborg wrote:
> Another way to fix this is to re-org the code a bit. We don't need the value, summary or typename if there is an error.
Going with this for now in https://reviews.llvm.org/D136890.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D126014/new/
https://reviews.llvm.org/D126014
More information about the lldb-commits
mailing list