summaryrefslogtreecommitdiff
path: root/libunwindstack/JitDebug.cpp
diff options
context:
space:
mode:
authorDavid Srbecky <dsrbecky@google.com>2021-05-06 14:30:57 +0100
committerDavid Srbecky <dsrbecky@google.com>2021-05-08 01:05:30 +0000
commitf20cbc9f92a33078a586252938a261edf6aac7c0 (patch)
tree8cd5a13c0603ce48d757f9415b3271503955efc5 /libunwindstack/JitDebug.cpp
parentc606cf71c464bb32d662ab280113931692041d01 (diff)
downloadunwinding-f20cbc9f92a33078a586252938a261edf6aac7c0.tar.gz
Pass DexFile as shared_ptr
Trivial change in preparation for the next CL. Multiple processes can open the same dex file, so this is first step to making it shareable. Test: m libunwindstack_unit_test Change-Id: I4d053b57fdc97becb7a84767ae3b0d0edaf862ca
Diffstat (limited to 'libunwindstack/JitDebug.cpp')
-rw-r--r--libunwindstack/JitDebug.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libunwindstack/JitDebug.cpp b/libunwindstack/JitDebug.cpp
index 7699e5e..1aebcf5 100644
--- a/libunwindstack/JitDebug.cpp
+++ b/libunwindstack/JitDebug.cpp
@@ -25,7 +25,7 @@ namespace unwindstack {
template <>
bool GlobalDebugInterface<Elf>::Load(Maps*, std::shared_ptr<Memory>& memory, uint64_t addr,
- uint64_t size, /*out*/ std::unique_ptr<Elf>& elf) {
+ uint64_t size, /*out*/ std::shared_ptr<Elf>& elf) {
std::unique_ptr<MemoryBuffer> copy(new MemoryBuffer());
if (!copy->Resize(size) || !memory->ReadFully(addr, copy->GetPtr(0), size)) {
return false;