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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment