llvm-project/lldb/source/Host
Michał Górny f893b29397 [lldb] [Host/{free,net}bsd] Fix process matching by name
Fix process matching by name to make 'process attach -n ...' work.

The process finding code has an optimization that defers getting
the process name and executable format after the numeric (PID, UID...)
parameters are tested.  However, the ProcessInstanceInfoMatch.Matches()
method has been matching process name against the incomplete process
information as well, and effectively no process ever matched.

In order to fix this, create a copy of ProcessInstanceInfoMatch, set
it to ignore process name and se this copy for the initial match.
The same fix applies to FreeBSD and NetBSD host code.

Differential Revision: https://reviews.llvm.org/D90454
2020-11-03 09:45:50 +01:00
..
android [lldb][NFC] Fix all formatting errors in .cpp file headers 2020-01-24 08:52:55 +01:00
common [NFC][lldb] Silence unused variable warning 2020-11-01 14:37:06 +00:00
freebsd [lldb] [Host/{free,net}bsd] Fix process matching by name 2020-11-03 09:45:50 +01:00
linux [lldb/Host] Add missing proc states 2020-09-02 08:24:06 -07:00
macosx [lldb] Change the xcrun (fallback) logic in GetXcodeSDK 2020-10-06 15:55:06 -07:00
netbsd [lldb] [Host/{free,net}bsd] Fix process matching by name 2020-11-03 09:45:50 +01:00
openbsd [lldb/Reproducers] Intercept the FindProcesses API 2020-03-13 09:31:35 -07:00
posix [lldb] Use std::make_unique<> (NFC) 2020-06-24 17:48:40 -07:00
windows [lldb] [Windows] Remove unused functions. NFC. 2020-10-10 20:47:40 +03:00
CMakeLists.txt Build a flat LLDB.framework for embedded Darwin targets 2020-08-12 13:34:29 -07:00