[Lldb-commits] [lldb] [API] add GetSyntheticValue (PR #95959)

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Fri Jun 21 08:42:15 PDT 2024


================
@@ -155,6 +155,18 @@ def cleanup():
             ],
         )
----------------
labath wrote:

You have two categories, but they both have a summary provider for the same type (`CCC`). (Enabling one category does not automatically disable the other ones.) Right now, lldb seems to pick the one you want, but I don't think we promise that anywhere (in fact, I wouldn't be surprised if this comes down to some (nondeterministic) ordering in some hash container). By disabling the first category, we make sure that lldb always pick the one we want (in case, e.g., the container ordering changes). Alternatively, you could just attach the summary provider to a different type (CCC2?)

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


More information about the lldb-commits mailing list