[lldb] Fix two bugs in ObjectContainerMachOFileset

Fix two small issues in the live-memory variant of ObjectContainerMachOFileset.

Differential revision: https://reviews.llvm.org/D132973
This commit is contained in:
Jonas Devlieghere 2022-08-30 14:01:49 -07:00
parent 8c9d685fa8
commit 0044cb4b20
No known key found for this signature in database
GPG Key ID: 49CC0BD90FDEED4D

View File

@ -42,8 +42,9 @@ ObjectContainerMachOFileset::ObjectContainerMachOFileset(
ObjectContainerMachOFileset::ObjectContainerMachOFileset(
const lldb::ModuleSP &module_sp, lldb::WritableDataBufferSP data_sp,
const lldb::ProcessSP &process_sp, lldb::addr_t header_addr)
: ObjectContainer(module_sp, nullptr, 0, 0, data_sp, 0),
m_memory_addr(header_addr) {}
: ObjectContainer(module_sp, nullptr, 0, data_sp->GetByteSize(), data_sp,
0),
m_process_wp(process_sp), m_memory_addr(header_addr) {}
ObjectContainer *ObjectContainerMachOFileset::CreateInstance(
const lldb::ModuleSP &module_sp, DataBufferSP &data_sp,