[Lldb-commits] [lldb] r251871 - Fix module cache sym links' creation for symbol files.
Oleksiy Vyalov via lldb-commits
lldb-commits at lists.llvm.org
Mon Nov 2 16:30:19 PST 2015
Author: ovyalov
Date: Mon Nov 2 18:30:19 2015
New Revision: 251871
URL: http://llvm.org/viewvc/llvm-project?rev=251871&view=rev
Log:
Fix module cache sym links' creation for symbol files.
http://reviews.llvm.org/D14264
Modified:
lldb/trunk/source/Utility/ModuleCache.cpp
Modified: lldb/trunk/source/Utility/ModuleCache.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Utility/ModuleCache.cpp?rev=251871&r1=251870&r2=251871&view=diff
==============================================================================
--- lldb/trunk/source/Utility/ModuleCache.cpp (original)
+++ lldb/trunk/source/Utility/ModuleCache.cpp Mon Nov 2 18:30:19 2015
@@ -304,13 +304,13 @@ ModuleCache::GetAndPut (const FileSpec &
// contain the neccessary symbols and the debugging is also possible without a symfile.
return Error ();
- FileSpec symfile_spec = GetSymbolFileSpec (cached_module_sp->GetFileSpec ());
- error = Put (root_dir_spec, hostname, module_spec, tmp_download_sym_file_spec, symfile_spec);
+ error = Put (root_dir_spec, hostname, module_spec, tmp_download_sym_file_spec, GetSymbolFileSpec(module_spec.GetFileSpec ()));
if (error.Fail ())
return Error ("Failed to put symbol file into cache: %s", error.AsCString ());
tmp_symfile_remover.releaseFile();
+ FileSpec symfile_spec = GetSymbolFileSpec (cached_module_sp->GetFileSpec ());
cached_module_sp->SetSymbolFileFileSpec (symfile_spec);
return Error ();
}
More information about the lldb-commits
mailing list