[Lldb-commits] [lldb] [LLDB] Don't ignore artificial variables and members for coroutines (PR #70779)

Michael Buch via lldb-commits lldb-commits at lists.llvm.org
Tue Oct 31 18:40:02 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");
----------------
Michael137 wrote:

Any chance we can get the `Type` from the `Variable` in `CommandObjectFrameVariable` and can re-use the `IsCoroutineFrameType` check?

https://github.com/llvm/llvm-project/pull/70779


More information about the lldb-commits mailing list