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 | 5014000de7c9f2155f2645654249b51b2d58b32e (patch) | |
tree | 6673e31d8f8fe36d48c6f2f844a91a83f18a2ad3 /source/Plugins/SymbolFile/DWARF/DWARFDebugLine.h | |
parent | 488a9aac3e9e4dddab6ba0c20e2669a5570aa372 (diff) |
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
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@331049 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'source/Plugins/SymbolFile/DWARF/DWARFDebugLine.h')
-rw-r--r-- | source/Plugins/SymbolFile/DWARF/DWARFDebugLine.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/Plugins/SymbolFile/DWARF/DWARFDebugLine.h b/source/Plugins/SymbolFile/DWARF/DWARFDebugLine.h index ea02cfed6..3ab15ac59 100644 --- a/source/Plugins/SymbolFile/DWARF/DWARFDebugLine.h +++ b/source/Plugins/SymbolFile/DWARF/DWARFDebugLine.h @@ -90,7 +90,7 @@ public: include_directories.clear(); file_names.clear(); } - bool GetFile(uint32_t file_idx, const char *comp_dir, + bool GetFile(uint32_t file_idx, const lldb_private::FileSpec &cu_comp_dir, lldb_private::FileSpec &file) const; }; @@ -199,7 +199,8 @@ public: static bool ParseSupportFiles(const lldb::ModuleSP &module_sp, const lldb_private::DWARFDataExtractor &debug_line_data, - const char *cu_comp_dir, dw_offset_t stmt_list, + const lldb_private::FileSpec &cu_comp_dir, + dw_offset_t stmt_list, lldb_private::FileSpecList &support_files); static bool ParsePrologue(const lldb_private::DWARFDataExtractor &debug_line_data, |