llvm-project/lldb/source
Pavel Labath 493c3a127f Avoid leakage of file descriptors in LLDB and LLGS
Summary:
Both LLDB and LLGS are leaking file descriptors into the debugged process. This plugs the leak by
closing the unneeded descriptors. In one case I use O_CLOEXEC, which I hope is supported on
relevant platforms. I also added a regression test and plugged a fd leak in dosep.py.

Reviewers: vharron, clayborg

Subscribers: lldb-commits

Differential Revision: http://reviews.llvm.org/D7372

llvm-svn: 228130
2015-02-04 10:36:57 +00:00
..
API Change void* name_token to const void* to address warnings. 2015-02-03 08:01:34 +00:00
Breakpoint Make sure that when a breakpoint is hit but its condition is not met, 2015-01-15 01:41:04 +00:00
Commands Small fix for the "memory write -i filename" command -- if the user fails to specify the 2015-02-03 23:39:47 +00:00
Core Fixed bugs in the multi-threaded access in HostInfoBase. Prior to this fix, static bool variables were used but this is not sufficient. We now use std::call_once in all places where the previous static bool code was used to try to implement thread safety. 2015-02-03 02:05:44 +00:00
DataFormatters Harden against the process pointer being null - this seems like it shouldn't happen, except it did - by a user stopping the debugger while the variables view was refreshing 2015-01-28 19:23:51 +00:00
Expression Fixed bugs in the multi-threaded access in HostInfoBase. Prior to this fix, static bool variables were used but this is not sufficient. We now use std::call_once in all places where the previous static bool code was used to try to implement thread safety. 2015-02-03 02:05:44 +00:00
Host Fix compilation failure on Windows. 2015-02-03 18:26:00 +00:00
Interpreter Change void* name_token to const void* to address warnings. 2015-02-03 08:01:34 +00:00
Plugins Avoid leakage of file descriptors in LLDB and LLGS 2015-02-04 10:36:57 +00:00
Symbol Fixed bugs in the multi-threaded access in HostInfoBase. Prior to this fix, static bool variables were used but this is not sufficient. We now use std::call_once in all places where the previous static bool code was used to try to implement thread safety. 2015-02-03 02:05:44 +00:00
Target Avoid leakage of file descriptors in LLDB and LLGS 2015-02-04 10:36:57 +00:00
Utility UriParser - fixed potential buffer overrun 2015-01-15 20:57:01 +00:00
CMakeLists.txt Moved Args::StringToXIntYZ to StringConvert::ToXIntYZ 2015-01-15 20:08:35 +00:00
Makefile Use PARALLEL_DIRS instead of DIRS in the Makefile 2014-10-14 06:26:33 +00:00
lldb-log.cpp Make sure to #include <atomic> when using std::atomic. 2014-09-19 20:12:32 +00:00
lldb.cpp Add a method to disable the Windows crash / assert dialogs. 2014-12-12 18:10:52 +00:00