llvm-project/lldb/source/Host/posix
Greg Clayton 58c65f0243 Avoid a recursive function call that could run LLDB out of file descriptors in FileSystem::DeleteDirectory(...).
Fixes include:
- use FileSystem::Unlink() instead of a direct call to ::unlink(...) when deleting files when iterating through the current directory
- save directories from current directory in a list and iterate through those _after_ the current directory has been iterated
- Use new FileSpec::ForEachItemInDirectory() instead of manually iterating across directories with opendir()/readdir()/closedir()

We should switch all code over to using FileSpec::ForEachItemInDirectory(...) in the near future and get rid of FileSpec::EnumerateDirectory().

This is a follow up patch to:

http://reviews.llvm.org/D10787

llvm-svn: 240978
2015-06-29 18:29:00 +00:00
..
ConnectionFileDescriptorPosix.cpp Did some cleanup to stop us from leaking Pipe file descriptors. 2015-05-23 03:54:53 +00:00
FileSystem.cpp Avoid a recursive function call that could run LLDB out of file descriptors in FileSystem::DeleteDirectory(...). 2015-06-29 18:29:00 +00:00
HostInfoPosix.cpp Re-add #include "lldb-python.h" back in two places. 2015-05-29 18:18:26 +00:00
HostProcessPosix.cpp Refactor many file functions to use FileSpec over strings. 2015-05-29 19:52:29 +00:00
HostThreadPosix.cpp Fix being able to get a thread result when calling HostThreadPosix::Join(). It was broken when initially checked in by getting the thread result into a temporary variable and never doing anything with it. Most threads in LLDB don't look at their thread results, but launching processes in a terminal window on MacOSX does require getting a thread result and this broke "process launch --tty" on darwin. 2015-01-06 00:21:29 +00:00
LockFilePosix.cpp Use file locks to synchronize access to ModuleCache. 2015-05-07 15:28:49 +00:00
Makefile
PipePosix.cpp Refactor many file functions to use FileSpec over strings. 2015-05-29 19:52:29 +00:00
ProcessLauncherPosix.cpp Create a process launcher abstraction. 2014-10-14 21:55:08 +00:00