diff options
| author | Greg Clayton <gclayton@apple.com> | 2018-04-27 15:45:58 +0000 |
|---|---|---|
| committer | Greg Clayton <gclayton@apple.com> | 2018-04-27 15:45:58 +0000 |
| commit | 776cd7ad44881d78e7f674aec092107dbfc1f56d (patch) | |
| tree | e88f3b0604ba07542f776f3a138186eb64ddee93 /lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp | |
| parent | 1b5533c9e848940570638f34d05106f1642dec2f (diff) | |
| download | bcm5719-llvm-776cd7ad44881d78e7f674aec092107dbfc1f56d.tar.gz bcm5719-llvm-776cd7ad44881d78e7f674aec092107dbfc1f56d.zip | |
Always normalize FileSpec paths.
Always normalizing lldb_private::FileSpec paths will help us get a consistent results from comparisons when setting breakpoints and when looking for source files. This also removes a lot of complexity from the comparison routines. Modified the DWARF line table parser to use the normalized compile unit directory if needed.
Differential Revision: https://reviews.llvm.org/D45977
llvm-svn: 331049
Diffstat (limited to 'lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp')
| -rw-r--r-- | lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp b/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp index 8318023ad3c..7364fbd1779 100644 --- a/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp +++ b/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp @@ -5098,9 +5098,6 @@ uint32_t ObjectFileMachO::GetDependentModules(FileSpecList &files) { // It is OK to resolve this path because we must find a file on // disk for us to accept it anyway if it is rpath relative. FileSpec file_spec(path, true); - // Remove any redundant parts of the path (like "../foo") since - // LC_RPATH values often contain "..". - file_spec = file_spec.GetNormalizedPath(); if (file_spec.Exists() && files.AppendIfUnique(file_spec)) { count++; break; @@ -5118,7 +5115,6 @@ uint32_t ObjectFileMachO::GetDependentModules(FileSpecList &files) { for (const auto &at_exec_relative_path : at_exec_relative_paths) { FileSpec file_spec = exec_dir.CopyByAppendingPathComponent(at_exec_relative_path); - file_spec = file_spec.GetNormalizedPath(); if (file_spec.Exists() && files.AppendIfUnique(file_spec)) count++; } |

