diff options
author | Greg Clayton <gclayton@apple.com> | 2013-07-12 22:07:46 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2013-07-12 22:07:46 +0000 |
commit | 2540a8a7bc063c4f5236578a5c93f1f5c46a138f (patch) | |
tree | 6e7cc6578129eb1cfbd8f820cd791a3416e68279 /lldb/source/Target/TargetList.cpp | |
parent | c6036aa83127c50162735e8a343623f03a3211fb (diff) | |
download | bcm5719-llvm-2540a8a7bc063c4f5236578a5c93f1f5c46a138f.tar.gz bcm5719-llvm-2540a8a7bc063c4f5236578a5c93f1f5c46a138f.zip |
Fixed GetModuleSpecifications() to work better overall:
- MachO files now correctly extract the UUID all the time
- More file size and offset verification done for universal mach-o files to watch for truncated files
- ObjectContainerBSDArchive now supports enumerating all objects in BSD archives (.a files)
- lldb_private::Module() can not be properly constructed using a ModuleSpec for a .o file in a .a file
- The BSD archive plug-in shares its cache for GetModuleSpecifications() and the create callback
- Improved printing for ModuleSpec objects
llvm-svn: 186211
Diffstat (limited to 'lldb/source/Target/TargetList.cpp')
-rw-r--r-- | lldb/source/Target/TargetList.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Target/TargetList.cpp b/lldb/source/Target/TargetList.cpp index 96cbc0a2106..5bd6ea9db64 100644 --- a/lldb/source/Target/TargetList.cpp +++ b/lldb/source/Target/TargetList.cpp @@ -92,7 +92,8 @@ TargetList::CreateTarget (Debugger &debugger, ModuleSpec module_spec; module_spec.GetFileSpec().SetFile(user_exe_path, true); lldb::offset_t file_offset = 0; - const size_t num_specs = ObjectFile::GetModuleSpecifications (module_spec.GetFileSpec(), file_offset, module_specs); + lldb::offset_t file_size = 0; + const size_t num_specs = ObjectFile::GetModuleSpecifications (module_spec.GetFileSpec(), file_offset, file_size, module_specs); if (num_specs > 0) { ModuleSpec matching_module_spec; |