Skip to content

Commit c12459a

Browse files
committed
Clarify ownership of buffer
1 parent 50218a6 commit c12459a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lldb/include/lldb/Target/LanguageRuntime.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,9 @@ class LanguageRuntime : public Runtime, public PluginInterface {
108108
/// This call should return true if it could set the name and/or the type
109109
/// Sets address to the address of the dynamic type if value_type is set to
110110
/// a file or load address. Sets local_buffer to a buffer containing the data
111-
/// of the dynamic type if value_type is set to a host address.
111+
/// of the dynamic type if value_type is set to a host address. Callers should
112+
/// copy local_buffer over into their own buffer if they want to keep the data
113+
///alive.
112114
virtual bool GetDynamicTypeAndAddress(
113115
ValueObject &in_value, lldb::DynamicValueType use_dynamic,
114116
TypeAndOrName &class_type_or_name, Address &address,

0 commit comments

Comments
 (0)