llvm-project/lldb/test
Pavel Labath a40929dcd2 [lldb] Fix cross-platform kills
This patch fixes an amusing bug where a Platform::Kill operation would
happily terminate a proces on a completely different platform, as long
as they have the same process ID. This was due to the fact that the
implementation was iterating through all known (debugged) processes in
order terminate them directly.

This patch just deletes that logic, and makes everything go through the
OS process termination APIs. While it would be possible to fix the logic
to check for a platform match, it seemed to me that the implementation
was being too smart for its own good -- accessing random Process
objects without knowing anything about their state is risky at best.
Going through the os ensures we avoid any races.

I also "upgrade" the termination signal to a SIGKILL to ensure the
process really dies after this operation.

Differential Revision: https://reviews.llvm.org/D113184
2021-11-09 15:31:07 +01:00
..
API [lldb] Fix cross-platform kills 2021-11-09 15:31:07 +01:00
Shell [LIT] Add win32 PLATFORM env var to test config 2021-11-04 17:42:43 +05:00
Unit [lldb] Match test dependencies name to other LLVM projects. 2021-05-21 00:10:27 -07:00
CMakeLists.txt [lldb] Only specify LLVM_ENABLE_RUNTIMES in the libcxx error message. 2021-11-01 09:39:24 -07:00
lit.cfg.py [test] Cleanup top-level lit.cfg.py 2019-10-10 19:51:47 +00:00
lit.site.cfg.py.in [lldb] config.test_exec_root is set by lit.cfg.py 2021-03-22 14:36:43 -07:00