llvm-project/lldb/include/lldb/Utility
Pavel Labath a8b18baa0f ProcessInstanceInfoMatch: Don't match processes with no name if a name match was requested, take 2
Summary:
The previous attempt at making nameless process not match when searching for a
given name failed because the macos implementation was depending on this detail
in its partial matching strategy. Doing partial matching to avoid expensive
lookups is a perfectly valid thing to do, the way it was implemented seems
somewhat unexpected.

This patch implements it differently by providing special
methods in the ProcessInstanceInfoMatch which match only a subset of fields,
and changes mac host code to use those instead.

Then, it re-applies r373925 to get make the ProcessInstanceInfoMatch with a
name *not* match a nameless process.

Reviewers: JDevlieghere, teemperor, jingham

Subscribers: wallace, lldb-commits

Differential Revision: https://reviews.llvm.org/D68631

llvm-svn: 374529
2019-10-11 10:56:54 +00:00
..
AnsiTerminal.h [NFC] Remove lldb_utility namespace. 2019-08-21 00:50:46 +00:00
ArchSpec.h [lldb][NFC] Remove WordComplete mode, make result array indexed from 0 and remove any undocumented/redundant return values 2019-08-22 07:41:23 +00:00
Args.h [lldb][NFC] Remove ArgEntry::ref member 2019-09-13 11:26:48 +00:00
Baton.h C.128 override, virtual keyword handling 2019-05-03 10:03:28 +00:00
Broadcaster.h [Utility] Small improvements to the Broadcaster class (NFC) 2019-05-24 04:41:47 +00:00
CompletionRequest.h [lldb][NFC] Remove CompletionRequest::GetCursorArgument and GetRawLineUntilCursor 2019-09-25 12:55:30 +00:00
Connection.h Group forward declarations in one namespace lldb_private {} 2019-05-15 09:15:13 +00:00
ConstString.h ObjectFileMachO: Replace std::map with llvm::DenseMap (NFC) 2019-10-08 16:59:24 +00:00
DataBuffer.h [NFC] Remove ASCII lines from comments 2019-04-10 20:48:55 +00:00
DataBufferHeap.h [NFC] Remove ASCII lines from comments 2019-04-10 20:48:55 +00:00
DataBufferLLVM.h C.128 override, virtual keyword handling 2019-05-03 10:03:28 +00:00
DataEncoder.h [NFC] Fix -Wdocumentation warnings in Utility. 2019-08-20 22:20:46 +00:00
DataExtractor.h Use llvm for dumping DWARF expressions 2019-09-30 13:44:17 +00:00
Endian.h [Utility] Modernize C-style cats 2019-05-23 05:12:11 +00:00
Environment.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Event.h Group forward declarations in one namespace lldb_private {} 2019-05-15 09:15:13 +00:00
FileSpec.h [NFC] Fix documentation for some utility classes. 2019-08-15 04:35:46 +00:00
Flags.h [lldb] Remove SetCount/ClearCount from Flags 2019-09-16 18:02:49 +00:00
GDBRemote.h [NFC] Move dumping into GDBRemotePacket 2019-09-16 20:02:57 +00:00
IOObject.h refactor: move IOObject::m_should_close_fd into subclasses 2019-09-27 20:43:50 +00:00
Iterable.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
LLDBAssert.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Listener.h [Utility] Avoid a few unnecessary copies (NFC) 2019-05-23 20:05:21 +00:00
Log.h [lldb] Add completion support for log enable/disable/list 2019-09-24 07:18:09 +00:00
Logging.h [Logging] Replace LogIfAnyCategoriesSet with LLDB_LOG. 2019-07-22 23:48:01 +00:00
NameMatches.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Predicate.h [NFC] Fix -Wdocumentation warnings in Utility. 2019-08-20 22:20:46 +00:00
ProcessInfo.h ProcessInstanceInfoMatch: Don't match processes with no name if a name match was requested, take 2 2019-10-11 10:56:54 +00:00
RangeMap.h [lldb] Early exit in RangeDataVector:FindEntryIndexesThatContain 2019-09-04 11:40:29 +00:00
RegisterValue.h [Utility] Modernize C-style cats 2019-05-23 05:12:11 +00:00
RegularExpression.h [lldb] Process formatters in reverse-chronological order 2019-09-20 20:19:18 +00:00
Reproducer.h [Reproducer] Add convenience methods IsCapturing and IsReplaying. 2019-10-09 21:47:49 +00:00
ReproducerInstrumentation.h SBFile support in SBCommandReturnObject 2019-10-09 21:50:49 +00:00
Scalar.h Implement DW_OP_convert 2019-09-10 16:17:38 +00:00
SelectHelper.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
SharedCluster.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
SharingPtr.h Mark private unimplemented functions as deleted 2019-05-15 05:31:14 +00:00
State.h [NFC] Remove ASCII lines from comments 2019-04-10 20:48:55 +00:00
Status.h [Status] Add a LLDB_ERRORF macro for error reporting (similar to LLDB_LOGF) 2019-09-11 21:23:42 +00:00
Stream.h [NFC] Fix -Wdocumentation warnings in Utility. 2019-08-20 22:20:46 +00:00
StreamCallback.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
StreamString.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
StreamTee.h Use the multi-lockable form of std::lock for operator= 2019-03-29 17:07:30 +00:00
StringExtractor.h [NFC] Return llvm::StringRef from StringExtractor::GetStringRef. 2019-08-21 04:55:56 +00:00
StringExtractorGDBRemote.h Create a generic handler for Xfer packets 2019-06-10 20:59:58 +00:00
StringLexer.h [NFC] Remove lldb_utility namespace. 2019-08-21 00:50:46 +00:00
StringList.h [lldb][NFC] Remove StringList::AutoComplete 2019-08-19 08:15:46 +00:00
StructuredData.h [JSON] Use LLVM's library for decoding JSON in StructuredData 2019-10-01 17:41:52 +00:00
TildeExpressionResolver.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Timeout.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Timer.h Add more information to the log timer dump 2019-05-29 16:31:32 +00:00
TraceOptions.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
UUID.h [NFC] Fix -Wdocumentation warnings in Utility. 2019-08-20 22:20:46 +00:00
UriParser.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
UserID.h Group forward declarations in one namespace lldb_private {} 2019-05-15 09:15:13 +00:00
UserIDResolver.h Refactor user/group name resolving code 2019-03-04 18:48:00 +00:00
VASPrintf.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
VMRange.h [NFC] Remove ASCII lines from comments 2019-04-10 20:48:55 +00:00