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

Haojian Wu via lldb-commits lldb-commits at lists.llvm.org
Thu Nov 9 05:28:57 PST 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");
----------------
hokein wrote:

I removed this change from this pull request now (will sent as a followup). Let's focus on addressing the ignore-artificial-fields issue in `DWARFASTParserClang.cpp`.

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


More information about the lldb-commits mailing list