[Lldb-commits] [PATCH] D126013: Add [opt] suffix to optimized stack frame in lldb-vscode
jeffrey tan via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Fri May 20 10:22:07 PDT 2022
yinghuitan added inline comments.
================
Comment at: lldb/tools/lldb-vscode/JSONUtils.cpp:762
+ } else {
+ EmplaceSafeString(object, "name", frame.GetFunctionName());
+ }
----------------
clayborg wrote:
> We should probably get the function name with "const char *func_name = frame.GetFunctionName();" before the entire "if (is_optimized)" and use it here, and above
Thanks, seems we have this potential crash in existing code already. I will fix it.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D126013/new/
https://reviews.llvm.org/D126013
More information about the lldb-commits
mailing list