[Lldb-commits] [lldb] [LLDB] Don't ignore artificial variables and members for coroutines (PR #70779)
Adrian Vogelsgesang via lldb-commits
lldb-commits at lists.llvm.org
Tue Oct 31 04:21:27 PDT 2023
================
@@ -41,7 +41,10 @@ CPPLanguageRuntime::CPPLanguageRuntime(Process *process)
: LanguageRuntime(process) {}
bool CPPLanguageRuntime::IsAllowedRuntimeValue(ConstString name) {
- return name == g_this;
+ // FIXME: use a list when the list grows more.
+ return name == g_this ||
+ name == ConstString("__promise") ||
+ name == ConstString("__coro_frame");
----------------
vogelsgesang wrote:
I am not sure if I would expose the `__coro_frame` variable. Maybe I would only expose the `__promise` variable by default. The `__coro_frame` is usually out-of-sync and does not hold the up-to-date coroutine state while the coroutine is in flight
https://github.com/llvm/llvm-project/pull/70779
More information about the lldb-commits
mailing list