[lldb-dev] Dynamic types
jingham at apple.com
Fri Oct 7 10:28:22 PDT 2011
SBFrame::EvaluateExpression has a variant that takes a bool for whether you want the dynamic type or not, so you can request the dynamic value when you make the SBValue. But for some reason we didn't make a binding in SBValue to the ValueObject method GetDynamicValue, so you can't get to the dynamic value after you've made the SBValue. That is most likely just an oversight. If you need it right away, feel free to add the accessor. Otherwise I'll get around to it when I have a free minute.
On Oct 7, 2011, at 9:36 AM, Andrey Zaytsev wrote:
> Hello everyone!
> I have an issue with getting dynamic type of variable object. I've got an SBValue from SBFrame::EvaluateExpression. It has some type. But it's id for objc object.
> "expr <my_expression>"
> shows me both types. static and dynamic. How can I get dynamic type programmatically?
> Thanks a lot.
> lldb-dev mailing list
> lldb-dev at cs.uiuc.edu
More information about the lldb-dev