summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/lang/cpp/exceptions/exceptions.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2019-02-06 00:50:35 +0000
committerZachary Turner <zturner@google.com>2019-02-06 00:50:35 +0000
commitc5d68d499ab6c2b05652c0476008f0005b5730c6 (patch)
tree19c3e8897bf7f945c67a564c809541ca18391bc7 /lldb/packages/Python/lldbsuite/test/lang/cpp/exceptions/exceptions.cpp
parent997b2aba58ddbf6038fc52f20d5ed94edcfe8d00 (diff)
downloadbcm5719-llvm-c5d68d499ab6c2b05652c0476008f0005b5730c6.tar.gz
bcm5719-llvm-c5d68d499ab6c2b05652c0476008f0005b5730c6.zip
[PDB] Remove dots and normalize slashes with /PDBSOURCEPATH.
In a previous patch, I made changes so that PDBs which were generated on non-Windows platforms contained sensical paths for the host. While this is an esoteric use case, we need it to be supported for certain cross compilation scenarios especially with LLDB, which can debug things on non-Windows platforms. However, this regressed a case where you specify /PDBSOURCEPATH and use a windows-style path. Previously, we would still remove dots and canonicalize slashes to backslashes, but since my change intentionally tried to support non-backslash paths, this was broken. This patch fixes the situation by trying to guess which path style the user is specifying when /PDBSOURCEPATH is passed. It is intentionally conservative, erring on the side of a Windows path style unless absolutely certain. All dots are removed and slashes canonicalized to whatever the deduced path style is after appending the file path to the /PDBSOURCEPATH argument. Differential Revision: https://reviews.llvm.org/D57769 llvm-svn: 353250
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lang/cpp/exceptions/exceptions.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud