aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/API/SBModule.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/API/SBModule.cpp')
-rw-r--r--lldb/source/API/SBModule.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/lldb/source/API/SBModule.cpp b/lldb/source/API/SBModule.cpp
index a1ec557..09f354e 100644
--- a/lldb/source/API/SBModule.cpp
+++ b/lldb/source/API/SBModule.cpp
@@ -46,7 +46,14 @@ SBModule::SBModule (lldb::SBProcess &process, lldb::addr_t header_addr) :
{
ProcessSP process_sp (process.GetSP());
if (process_sp)
- m_opaque_sp = process_sp->ReadModuleFromMemory (FileSpec(), header_addr);
+ {
+ const bool add_image_to_target = true;
+ const bool load_image_sections_in_target = true;
+ m_opaque_sp = process_sp->ReadModuleFromMemory (FileSpec(),
+ header_addr,
+ add_image_to_target,
+ load_image_sections_in_target);
+ }
}
const SBModule &