diff options
author | Med Ismail Bennani <medismail.bennani@gmail.com> | 2021-12-13 10:34:49 -0800 |
---|---|---|
committer | Med Ismail Bennani <medismail.bennani@gmail.com> | 2021-12-13 11:05:06 -0800 |
commit | 72e25978f93f0bf7577593aba9591c727526423c (patch) | |
tree | cbe54cbfd98c40d32edc7ed0c549c114ab7776be /lldb/unittests/ScriptInterpreter/Python/PythonDataObjectsTests.cpp | |
parent | bbfaf0b170b6070e08f1dc22419dfedc75b9a0fe (diff) | |
download | llvm-72e25978f93f0bf7577593aba9591c727526423c.zip llvm-72e25978f93f0bf7577593aba9591c727526423c.tar.gz llvm-72e25978f93f0bf7577593aba9591c727526423c.tar.bz2 |
[lldb/API] Add SetDataWithOwnership method to SBData
This patch introduces a new method to SBData: SetDataWithOwnership.
Instead of referencing the pointer to the data, this method copies the
data buffer into lldb's heap memory.
This can prevent having the underlying DataExtractor object point to
freed/garbage-collected memory.
Differential Revision: https://reviews.llvm.org/D115652
Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>
Diffstat (limited to 'lldb/unittests/ScriptInterpreter/Python/PythonDataObjectsTests.cpp')
0 files changed, 0 insertions, 0 deletions