normalize file path when searching the source map
authorXu Jun <jun1.xu@intel.com>
Tue, 2 Nov 2021 05:13:30 +0000 (22:13 -0700)
committerWalter Erquinigo <wallace@fb.com>
Tue, 2 Nov 2021 05:13:55 +0000 (22:13 -0700)
commitfe19ae352ce201e7bab8baac4587cc4334e742e4
tree708fedfd6f1b1a45750515d916b95f8201c57517
parent8cabd8f0d26c3cff03faec9b1cea974f08618d6d
normalize file path when searching the source map

The key stored in the source map is a normalized path string with host's
path style, so it is also necessary to normalize the file path during
searching the map

Reviewed By: wallace, aprantl

Differential Revision: https://reviews.llvm.org/D112439
lldb/source/Target/PathMappingList.cpp
lldb/unittests/Target/CMakeLists.txt
lldb/unittests/Target/FindFileTest.cpp [new file with mode: 0644]