[Lldb-commits] [PATCH] Avoid leakage of file descriptors in LLDB and LLGS
labath at google.com
Tue Feb 3 08:47:30 PST 2015
On linux, you can just enumerate the files in /proc/PID/fd/. However, this approach does not work on mac (afaik there is no proc filesystem there). This was the most general solution I could think of, and it should work on most posix implementations (those that we care about at least). I am aware that it will likely not work on windows. If you have a proposal how to test it, I will be happy to add it.
I agree that file handle/descriptor inspection using the debugger is a very useful feature, but I think implementing it is out of scope of what I am trying to achieve here.
More information about the lldb-commits