[llvm-bugs] [Bug 32477] New: Expose ValueObject::Clone at the SB API
llvm-bugs at lists.llvm.org
Thu Mar 30 13:14:23 PDT 2017
Bug ID: 32477
Summary: Expose ValueObject::Clone at the SB API
Component: All Bugs
Assignee: lldb-dev at lists.llvm.org
Reporter: tberghammer at google.com
CC: llvm-bugs at lists.llvm.org
When writing a new synthetic child provider it is often useful to return an
existing ValueObject (SBValue) belonging to some internal data member as a
synthetic child (e.g. the internal pointer inside a unique_ptr).
The current API provides an easy way for doing it (you can access the SBValue
and then return it) but provides no way to change the name of the returned
value object meaning that the returned child will have a strange name (e.g.
_M_ptr). We should have a way to create a synthetic child from an existing
SBValue with a new name.
Note: We should *not* expose ValueObject::SetName as an SB API because that
function should *not* be called from a synthetic child provider as it changes
the name of the underlying non-synthetic child as well.
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-bugs