From 44435ed07a3688b737813ca691c7cf78e086a6c8 Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Thu, 12 Jan 2012 05:25:17 +0000 Subject: Big change in the way ObjectFile file contents are managed. We now mmap() the entire object file contents into memory with MAP_PRIVATE. We do this because object file contents can change on us and currently this helps alleviate this situation. It also make the code for accessing object file data much easier to manage and we don't end up opening the file, reading some data and closing the file over and over. llvm-svn: 148017 --- lldb/source/Core/ModuleList.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lldb/source/Core/ModuleList.cpp') diff --git a/lldb/source/Core/ModuleList.cpp b/lldb/source/Core/ModuleList.cpp index 47ca09c5399..339e460f911 100644 --- a/lldb/source/Core/ModuleList.cpp +++ b/lldb/source/Core/ModuleList.cpp @@ -878,6 +878,8 @@ ModuleList::GetSharedModule if (!file_spec.Exists()) { file_spec.GetPath(path, sizeof(path)); + if (path[0] == '\0') + in_file_spec.GetPath(path, sizeof(path)); if (file_spec.Exists()) { if (uuid_ptr && uuid_ptr->IsValid()) -- cgit v1.2.3