When calling "settings set target.source-map <old-path> <new-path>", make sure that...
authorGreg Clayton <gclayton@apple.com>
Fri, 8 Jul 2016 23:06:38 +0000 (23:06 +0000)
committerGreg Clayton <gclayton@apple.com>
Fri, 8 Jul 2016 23:06:38 +0000 (23:06 +0000)
commit6a3116415b04f040e2034ae578667e11418081b0
tree4b3adc9b2e75ef3816c7222530391788b40d3b32
parent3b77612839390d0dc6ebe3c8cb570dddae124fcf
When calling "settings set target.source-map <old-path> <new-path>", make sure that <new-path> exists before accepting it as a remapping.

We had some clients that had added old source paths remappings to their .lldbinit files and they were causing trouble at a later date. This fix should help mitigate these issues.

<rdar://problem/26358860>

llvm-svn: 274948
lldb/packages/Python/lldbsuite/test/source-manager/TestSourceManager.py
lldb/source/Interpreter/OptionValuePathMappings.cpp