diff options
author | Oleksiy Vyalov <ovyalov@google.com> | 2015-11-03 00:30:19 +0000 |
---|---|---|
committer | Oleksiy Vyalov <ovyalov@google.com> | 2015-11-03 00:30:19 +0000 |
commit | 1ef2cb9f71876086b4e5f7e4d83097d65eb80f1a (patch) | |
tree | 5d6d70ea3d352977dbdfcbc576c555202c05cb9f /lldb/source/Utility/ModuleCache.cpp | |
parent | dca2837b76e91aff38f5db2d3e20d45c2fdd006f (diff) | |
download | bcm5719-llvm-1ef2cb9f71876086b4e5f7e4d83097d65eb80f1a.tar.gz bcm5719-llvm-1ef2cb9f71876086b4e5f7e4d83097d65eb80f1a.zip |
Fix module cache sym links' creation for symbol files.
http://reviews.llvm.org/D14264
llvm-svn: 251871
Diffstat (limited to 'lldb/source/Utility/ModuleCache.cpp')
-rw-r--r-- | lldb/source/Utility/ModuleCache.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Utility/ModuleCache.cpp b/lldb/source/Utility/ModuleCache.cpp index b7deed7d473..b1cb2f27f31 100644 --- a/lldb/source/Utility/ModuleCache.cpp +++ b/lldb/source/Utility/ModuleCache.cpp @@ -304,13 +304,13 @@ ModuleCache::GetAndPut (const FileSpec &root_dir_spec, // 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 (); } |