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

Vincent Belliard via lldb-commits lldb-commits at lists.llvm.org
Wed Jul 3 10:14:16 PDT 2024


v-bulle wrote:

> The one thing about this that strikes me as odd is that if you have an SBValue that doesn't have a Synthetic Value, this will return the non-synthetic value. The GetNonSyntheticValue didn't have this problem because there's always a non-synthetic value, so provided the SBValue was valid you could always hand that out.
> 
> Would it make more sense to make the ValueImpl that's going to represent the synthetic value then check whether that really is synthetic, and return an empty SBValue if it is not?

done

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


More information about the lldb-commits mailing list