Skip to content
Commit 72e25978 authored by Med Ismail Bennani's avatar Med Ismail Bennani
Browse files

[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: default avatarMed Ismail Bennani <medismail.bennani@gmail.com>
parent bbfaf0b1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment