Differential D56233 Diff 194380 source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp
Changeset View
Changeset View
Standalone View
Standalone View
source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp
Show First 20 Lines • Show All 1,183 Lines • ▼ Show 20 Lines | if (proc_arch.IsValid()) { | ||||
response.PutStringAsRawHex8(proc_triple.getTriple()); | response.PutStringAsRawHex8(proc_triple.getTriple()); | ||||
response.PutChar(';'); | response.PutChar(';'); | ||||
} | } | ||||
} | } | ||||
void GDBRemoteCommunicationServerCommon:: | void GDBRemoteCommunicationServerCommon:: | ||||
CreateProcessInfoResponse_DebugServerStyle( | CreateProcessInfoResponse_DebugServerStyle( | ||||
const ProcessInstanceInfo &proc_info, StreamString &response) { | const ProcessInstanceInfo &proc_info, StreamString &response) { | ||||
#if !defined(_WIN32) | |||||
response.Printf("pid:%" PRIx64 ";parent-pid:%" PRIx64 | response.Printf("pid:%" PRIx64 ";parent-pid:%" PRIx64 | ||||
";real-uid:%x;real-gid:%x;effective-uid:%x;effective-gid:%x;", | ";real-uid:%x;real-gid:%x;effective-uid:%x;effective-gid:%x;", | ||||
proc_info.GetProcessID(), proc_info.GetParentProcessID(), | proc_info.GetProcessID(), proc_info.GetParentProcessID(), | ||||
proc_info.GetUserID(), proc_info.GetGroupID(), | proc_info.GetUserID(), proc_info.GetGroupID(), | ||||
proc_info.GetEffectiveUserID(), | proc_info.GetEffectiveUserID(), | ||||
proc_info.GetEffectiveGroupID()); | proc_info.GetEffectiveGroupID()); | ||||
#else | |||||
response.Printf("pid:%" PRIx64 ";parent-pid:%" PRIx64 ";", | |||||
proc_info.GetProcessID(), proc_info.GetParentProcessID()); | |||||
#endif | |||||
const ArchSpec &proc_arch = proc_info.GetArchitecture(); | const ArchSpec &proc_arch = proc_info.GetArchitecture(); | ||||
if (proc_arch.IsValid()) { | if (proc_arch.IsValid()) { | ||||
const llvm::Triple &proc_triple = proc_arch.GetTriple(); | const llvm::Triple &proc_triple = proc_arch.GetTriple(); | ||||
#if defined(__APPLE__) | #if defined(__APPLE__) | ||||
// We'll send cputype/cpusubtype. | // We'll send cputype/cpusubtype. | ||||
const uint32_t cpu_type = proc_arch.GetMachOCPUType(); | const uint32_t cpu_type = proc_arch.GetMachOCPUType(); | ||||
if (cpu_type != 0) | if (cpu_type != 0) | ||||
▲ Show 20 Lines • Show All 88 Lines • Show Last 20 Lines |