[lldb-dev] Help with C++ API
Jakob Leben
jakob.leben at gmail.com
Tue Aug 27 20:50:50 PDT 2013
Hi Jim,
On Tue, Aug 27, 2013 at 7:31 PM, <jingham at apple.com> wrote:
> For question 2, that's really a bit of missing API. There's an SBValue::CreateValueFromAddress which takes one SBValue an address, and an SBType to make a new value object that is just tied to that address and type. That was an SBValue method because that's what was convenient to implement the Synthetic types. But since all that it uses from the original SBValue is the process, it really should just be a method on SBProcess. That would be perfect for you. It would be pretty easy to add that API, if you want to give it a try.
That's exactly what I was thinking when looking at
SBValue::CreateValueFromAddress! If you'd make this method independent
of a SBValue instance - that would be fabulous!
> Otherwise, you can cons up a new expression from the type and address of the original SBValue, and use SBTarget::EvaluateExpression to make a free-standing SBValue from that.
Good idea, thanks!
Cheers,
Jakob
More information about the lldb-dev
mailing list