Searched refs:match_info (Results 1 - 15 of 15) sorted by relevance

/freebsd-10.1-release/contrib/llvm/tools/lldb/source/Commands/
H A DCommandObjectPlatform.cpp1436 lldb::pid_t pid = m_options.match_info.GetProcessInfo().GetProcessID();
1455 const uint32_t matches = platform_sp->FindProcesses (m_options.match_info, proc_infos);
1457 const char *match_name = m_options.match_info.GetProcessInfo().GetName();
1460 switch (m_options.match_info.GetNameMatchType())
1522 match_info ()
1541 match_info.GetProcessInfo().SetProcessID (Args::StringToUInt32 (option_arg, LLDB_INVALID_PROCESS_ID, 0, &success));
1547 match_info.GetProcessInfo().SetParentProcessID (Args::StringToUInt32 (option_arg, LLDB_INVALID_PROCESS_ID, 0, &success));
1553 match_info.GetProcessInfo().SetUserID (Args::StringToUInt32 (option_arg, UINT32_MAX, 0, &success));
1559 match_info.GetProcessInfo().SetEffectiveUserID (Args::StringToUInt32 (option_arg, UINT32_MAX, 0, &success));
1565 match_info
1641 ProcessInstanceInfoMatch match_info; member in class:CommandObjectPlatformProcessList::CommandOptions
1878 ProcessInstanceInfoMatch match_info; local
[all...]
H A DCommandObjectProcess.cpp409 ProcessInstanceInfoMatch match_info; local
412 match_info.GetProcessInfo().GetExecutableFile().SetFile(partial_name, false);
413 match_info.SetNameMatchType(eNameMatchStartsWith);
415 platform_sp->FindProcesses (match_info, process_infos);
/freebsd-10.1-release/contrib/llvm/tools/lldb/source/Host/freebsd/
H A DHost.cpp287 Host::FindProcesses (const ProcessInstanceInfoMatch &match_info, ProcessInstanceInfoList &process_infos) argument
308 bool all_users = match_info.GetMatchAllUsers();
350 if (match_info.Matches (process_info) &&
351 GetFreeBSDProcessArgs (&match_info, process_info))
354 if (match_info.Matches (process_info))
/freebsd-10.1-release/contrib/llvm/tools/lldb/source/Plugins/Process/gdb-remote/
H A DGDBRemoteCommunicationServer.cpp527 ProcessInstanceInfoMatch match_info;
542 match_info.GetProcessInfo().GetExecutableFile().SetFile(value.c_str(), false);
548 match_info.SetNameMatchType (eNameMatchEquals);
552 match_info.SetNameMatchType (eNameMatchStartsWith);
556 match_info.SetNameMatchType (eNameMatchEndsWith);
560 match_info.SetNameMatchType (eNameMatchContains);
564 match_info.SetNameMatchType (eNameMatchRegularExpression);
573 match_info.GetProcessInfo().SetProcessID (Args::StringToUInt32(value.c_str(), LLDB_INVALID_PROCESS_ID, 0, &success));
577 match_info.GetProcessInfo().SetParentProcessID (Args::StringToUInt32(value.c_str(), LLDB_INVALID_PROCESS_ID, 0, &success));
581 match_info
359 assert(packet_len < (int)sizeof(packet)); return SendPacketNoLock (packet, packet_len); } GDBRemoteCommunication::PacketResult GDBRemoteCommunicationServer::SendOKResponse () { return SendPacketNoLock (�, 2); } bool GDBRemoteCommunicationServer::HandshakeWithClient(Error *error_ptr) { return GetAck() == PacketResult::Success; } GDBRemoteCommunication::PacketResult GDBRemoteCommunicationServer::Handle_qHostInfo (StringExtractorGDBRemote &packet) { StreamString response; ArchSpec host_arch (Host::GetArchitecture ()); const llvm::Triple &host_triple = host_arch.GetTriple(); response.PutCString(�); response.PutCStringAsRawHex8(host_triple.getTriple().c_str()); response.Printf (�,host_arch.GetAddressByteSize()); const char* distribution_id = host_arch.GetDistributionId ().AsCString (); if (distribution_id) { response.PutCString(�); response.PutCStringAsRawHex8(distribution_id); response.PutCString(�); } uint32_t cpu = host_arch.GetMachOCPUType(); uint32_t sub = host_arch.GetMachOCPUSubType(); if (cpu != LLDB_INVALID_CPUTYPE) response.Printf (�, cpu); if (sub != LLDB_INVALID_CPUTYPE) response.Printf (�, sub); if (cpu == ArchSpec::kCore_arm_any) response.Printf(�); else response.Printf(�); switch (lldb::endian::InlHostByteOrder()) { case eByteOrderBig: response.PutCString (�); break; case eByteOrderLittle: response.PutCString (�); break; case eByteOrderPDP: response.PutCString (�); break; default: response.PutCString (�); break; } uint32_t major = UINT32_MAX; uint32_t minor = UINT32_MAX; uint32_t update = UINT32_MAX; if (Host::GetOSVersion (major, minor, update)) { if (major != UINT32_MAX) { response.Printf(�, major); if (minor != UINT32_MAX) { response.Printf(�, minor); if (update != UINT32_MAX) response.Printf(�, update); } response.PutChar(�); } } std::string s; if (Host::GetOSBuildString (s)) { response.PutCString (�); response.PutCStringAsRawHex8(s.c_str()); response.PutChar(�); } if (Host::GetOSKernelDescription (s)) { response.PutCString (�); response.PutCStringAsRawHex8(s.c_str()); response.PutChar(�); } response.PutCString (�); response.PutCStringAsRawHex8(�); response.PutChar(�); return SendPacketNoLock (response.GetData(), response.GetSize()); } static void CreateProcessInfoResponse (const ProcessInstanceInfo &proc_info, StreamString &response) { response.Printf (� PRIu64 � PRIu64 �, proc_info.GetProcessID(), proc_info.GetParentProcessID(), proc_info.GetUserID(), proc_info.GetGroupID(), proc_info.GetEffectiveUserID(), proc_info.GetEffectiveGroupID()); response.PutCString (�); response.PutCStringAsRawHex8(proc_info.GetName()); response.PutChar(�); const ArchSpec &proc_arch = proc_info.GetArchitecture(); if (proc_arch.IsValid()) { const llvm::Triple &proc_triple = proc_arch.GetTriple(); response.PutCString(�); response.PutCStringAsRawHex8(proc_triple.getTriple().c_str()); response.PutChar(�); } } GDBRemoteCommunication::PacketResult GDBRemoteCommunicationServer::Handle_qProcessInfoPID (StringExtractorGDBRemote &packet) { packet.SetFilePos(::strlen (�)); lldb::pid_t pid = packet.GetU32 (LLDB_INVALID_PROCESS_ID); if (pid != LLDB_INVALID_PROCESS_ID) { ProcessInstanceInfo proc_info; if (Host::GetProcessInfo(pid, proc_info)) { StreamString response; CreateProcessInfoResponse (proc_info, response); return SendPacketNoLock (response.GetData(), response.GetSize()); } } return SendErrorResponse (1); } GDBRemoteCommunication::PacketResult GDBRemoteCommunicationServer::Handle_qfProcessInfo (StringExtractorGDBRemote &packet) { m_proc_infos_index = 0; m_proc_infos.Clear(); ProcessInstanceInfoMatch match_info; packet.SetFilePos(::strlen (�)); if (packet.GetChar() == �) { std::string key; std::string value; while (packet.GetNameColonValue(key, value)) { bool success = true; if (key.compare(�) == 0) { StringExtractor extractor; extractor.GetStringRef().swap(value); extractor.GetHexByteString (value); match_info.GetProcessInfo().GetExecutableFile().SetFile(value.c_str(), false); } else if (key.compare(�) == 0) { if (value.compare(�) == 0) { match_info.SetNameMatchType (eNameMatchEquals); } else if (value.compare(�) == 0) { match_info.SetNameMatchType (eNameMatchStartsWith); } else if (value.compare(�) == 0) { match_info.SetNameMatchType (eNameMatchEndsWith); } else if (value.compare(�) == 0) { match_info.SetNameMatchType (eNameMatchContains); } else if (value.compare(�) == 0) { match_info.SetNameMatchType (eNameMatchRegularExpression); } else { success = false; } } else if (key.compare(�) == 0) { match_info.GetProcessInfo().SetProcessID (Args::StringToUInt32(value.c_str(), LLDB_INVALID_PROCESS_ID, 0, &success)); } else if (key.compare(�) == 0) { match_info.GetProcessInfo().SetParentProcessID (Args::StringToUInt32(value.c_str(), LLDB_INVALID_PROCESS_ID, 0, &success)); } else if (key.compare(�) == 0) { match_info.GetProcessInfo().SetUserID (Args::StringToUInt32(value.c_str(), UINT32_MAX, 0, &success)); } else if (key.compare(�) == 0) { match_info.GetProcessInfo().SetGroupID (Args::StringToUInt32(value.c_str(), UINT32_MAX, 0, &success)); } else if (key.compare(�) == 0) { match_info.GetProcessInfo().SetEffectiveUserID (Args::StringToUInt32(value.c_str(), UINT32_MAX, 0, &success)); } else if (key.compare(�) == 0) { match_info.GetProcessInfo().SetEffectiveGroupID (Args::StringToUInt32(value.c_str(), UINT32_MAX, 0, &success)); } else if (key.compare(�) == 0) { match_info.SetMatchAllUsers(Args::StringToBoolean(value.c_str(), false, &success)); } else if (key.compare(�) == 0) { match_info.GetProcessInfo().GetArchitecture().SetTriple (value.c_str(), NULL); } else { success = false; } if (!success) return SendErrorResponse (2); } } if (Host::FindProcesses (match_info, m_proc_infos)) { return Handle_qsProcessInfo (packet); } return SendErrorResponse (3); } GDBRemoteCommunication::PacketResult GDBRemoteCommunicationServer::Handle_qsProcessInfo (StringExtractorGDBRemote &packet) { if (m_proc_infos_index < m_proc_infos.GetSize()) { StreamString response; CreateProcessInfoResponse (m_proc_infos.GetProcessInfoAtIndex(m_proc_infos_index), response); ++m_proc_infos_index; return SendPacketNoLock (response.GetData(), response.GetSize()); } return SendErrorResponse (4); } GDBRemoteCommunication::PacketResult GDBRemoteCommunicationServer::Handle_qUserName (StringExtractorGDBRemote &packet) { packet.SetFilePos(::strlen (�)); uint32_t uid = packet.GetU32 (UINT32_MAX); if (uid != UINT32_MAX) { std::string name; if (Host::GetUserName (uid, name)) { StreamString response; response.PutCStringAsRawHex8 (name.c_str()); return SendPacketNoLock (response.GetData(), response.GetSize()); } } return SendErrorResponse (5); } GDBRemoteCommunication::PacketResult GDBRemoteCommunicationServer::Handle_qGroupName (StringExtractorGDBRemote &packet) { packet.SetFilePos(::strlen (�)); uint32_t gid = packet.GetU32 (UINT32_MAX); if (gid != UINT32_MAX) { std::string name; if (Host::GetGroupName (gid, name)) { StreamString response; response.PutCStringAsRawHex8 (name.c_str()); return SendPacketNoLock (response.GetData(), response.GetSize()); } } return SendErrorResponse (6); } GDBRemoteCommunication::PacketResult GDBRemoteCommunicationServer::Handle_qSpeedTest (StringExtractorGDBRemote &packet) { packet.SetFilePos(::strlen (�)); std::string key; std::string value; bool success = packet.GetNameColonValue(key, value); if (success && key.compare(�) == 0) { uint32_t response_size = Args::StringToUInt32(value.c_str(), 0, 0, &success); if (success) { if (response_size == 0) return SendOKResponse(); StreamString response; uint32_t bytes_left = response_size; response.PutCString(�); while (bytes_left > 0) { if (bytes_left >= 26) argument
[all...]
H A DGDBRemoteCommunicationClient.cpp2265 GDBRemoteCommunicationClient::FindProcesses (const ProcessInstanceInfoMatch &match_info,
2274 if (!match_info.MatchAllProcesses())
2277 const char *name = match_info.GetProcessInfo().GetName();
2282 NameMatchType name_match_type = match_info.GetNameMatchType();
2317 if (match_info.GetProcessInfo().ProcessIDIsValid())
2318 packet.Printf("pid:%" PRIu64 ";",match_info.GetProcessInfo().GetProcessID());
2319 if (match_info.GetProcessInfo().ParentProcessIDIsValid())
2320 packet.Printf("parent_pid:%" PRIu64 ";",match_info.GetProcessInfo().GetParentProcessID());
2321 if (match_info.GetProcessInfo().UserIDIsValid())
2322 packet.Printf("uid:%u;",match_info
[all...]
/freebsd-10.1-release/contrib/llvm/tools/lldb/source/Plugins/Platform/FreeBSD/
H A DPlatformFreeBSD.h128 FindProcesses (const lldb_private::ProcessInstanceInfoMatch &match_info,
H A DPlatformFreeBSD.cpp464 PlatformFreeBSD::FindProcesses (const ProcessInstanceInfoMatch &match_info, argument
471 match_count = Platform::FindProcesses (match_info, process_infos);
477 match_count = m_remote_platform_sp->FindProcesses (match_info, process_infos);
/freebsd-10.1-release/contrib/llvm/tools/lldb/source/Plugins/Platform/gdb-server/
H A DPlatformRemoteGDBServer.h85 FindProcesses (const lldb_private::ProcessInstanceInfoMatch &match_info,
H A DPlatformRemoteGDBServer.cpp333 PlatformRemoteGDBServer::FindProcesses (const ProcessInstanceInfoMatch &match_info, argument
336 return m_gdb_client.FindProcesses (match_info, process_infos);
/freebsd-10.1-release/contrib/llvm/tools/lldb/include/lldb/Host/
H A DHost.h469 FindProcesses (const ProcessInstanceInfoMatch &match_info,
/freebsd-10.1-release/contrib/gcc/
H A Dtree-ssa-alias-warnings.c316 struct match_info
522 variables given in ((struct match_info*)DATA)->OBJS or
523 ((struct match_info*)DATA)->PTRS. The total number of references
314 struct match_info struct
/freebsd-10.1-release/contrib/llvm/tools/lldb/source/Target/
H A DPlatform.cpp976 Platform::FindProcesses (const ProcessInstanceInfoMatch &match_info, argument
983 match_count = Host::FindProcesses (match_info, process_infos);
H A DProcess.cpp3265 ProcessInstanceInfoMatch match_info;
3266 match_info.GetProcessInfo() = attach_info;
3267 match_info.SetNameMatchType (eNameMatchEquals);
3268 platform_sp->FindProcesses (match_info, process_infos);
3277 match_info.GetProcessInfo().GetExecutableFile().GetPath (process_name, sizeof(process_name));
/freebsd-10.1-release/contrib/llvm/tools/lldb/include/lldb/Target/
H A DPlatform.h461 FindProcesses (const ProcessInstanceInfoMatch &match_info,
/freebsd-10.1-release/contrib/llvm/tools/lldb/source/Host/common/
H A DHost.cpp1418 Host::FindProcesses (const ProcessInstanceInfoMatch &match_info, ProcessInstanceInfoList &process_infos) argument

Completed in 205 milliseconds