aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/PythonExceptionState.cpp
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2016-04-12 16:33:53 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2016-04-12 16:33:53 +0000
commit1834dc752065a701493194af8c61c6a346adcd4e (patch)
treee03debfefc518ad983c32d976581661e8c0e22ef /lldb/source/Plugins/ScriptInterpreter/Python/PythonExceptionState.cpp
parent279970c0dc769dc24e5b66ed8fa6fcdc7653d4f4 (diff)
downloadllvm-1834dc752065a701493194af8c61c6a346adcd4e.zip
llvm-1834dc752065a701493194af8c61c6a346adcd4e.tar.gz
llvm-1834dc752065a701493194af8c61c6a346adcd4e.tar.bz2
[FileManager] Don't crash if reading from stdin and stat(".") fails
addAncestorsAsVirtualDirs("<stdin>") quickly returns without doing work because "<stdin>" has no parent_path. This violates the expectation that a subsequent call to getDirectoryFromFile("<stdin>") would succeed. Instead, it fails because it uses the "." if the file has no path component. Fix this by keeping the behavior between addAncestorsAsVirtualDirs and getDirectoryFromFile symmetric. llvm-svn: 266089
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonExceptionState.cpp')
0 files changed, 0 insertions, 0 deletions