LLDB mainline
|
#include <PlatformiOSSimulatorCoreSimulatorSupport.h>
Public Types | |
enum class | State : NSUInteger { Creating , Shutdown , Booting , Booted , ShuttingDown } |
Public Member Functions | |
Device () | |
Device (id d) | |
operator bool () | |
std::string | GetName () const |
DeviceType | GetDeviceType () |
DeviceRuntime | GetDeviceRuntime () |
State | GetState () |
bool | Boot (lldb_private::Status &err) |
bool | Shutdown (lldb_private::Status &err) |
std::string | GetUDID () const |
Process | Spawn (lldb_private::ProcessLaunchInfo &launch_info) |
Private Types | |
typedef unsigned long int | NSUInteger |
Private Attributes | |
id | m_dev = nullptr |
std::optional< DeviceType > | m_dev_type |
std::optional< DeviceRuntime > | m_dev_runtime |
Friends | |
class | DeviceSet |
Definition at line 137 of file PlatformiOSSimulatorCoreSimulatorSupport.h.
|
private |
Definition at line 139 of file PlatformiOSSimulatorCoreSimulatorSupport.h.
|
strong |
Enumerator | |
---|---|
Creating | |
Shutdown | |
Booting | |
Booted | |
ShuttingDown |
Definition at line 142 of file PlatformiOSSimulatorCoreSimulatorSupport.h.
CoreSimulatorSupport::Device::Device | ( | ) |
Definition at line 100 of file PlatformiOSSimulatorCoreSimulatorSupport.mm.
CoreSimulatorSupport::Device::Device | ( | id | d | ) |
Definition at line 102 of file PlatformiOSSimulatorCoreSimulatorSupport.mm.
bool CoreSimulatorSupport::Device::Boot | ( | lldb_private::Status & | err | ) |
Definition at line 342 of file PlatformiOSSimulatorCoreSimulatorSupport.mm.
References lldb_private::Status::Clear(), error(), kSimDeviceBootPersist, and lldb_private::Status::SetErrorString().
Referenced by lldb_private::PlatformAppleSimulator::LaunchProcess().
CoreSimulatorSupport::DeviceRuntime CoreSimulatorSupport::Device::GetDeviceRuntime | ( | ) |
Definition at line 228 of file PlatformiOSSimulatorCoreSimulatorSupport.mm.
CoreSimulatorSupport::DeviceType CoreSimulatorSupport::Device::GetDeviceType | ( | ) |
Definition at line 220 of file PlatformiOSSimulatorCoreSimulatorSupport.mm.
std::string CoreSimulatorSupport::Device::GetName | ( | ) | const |
Definition at line 205 of file PlatformiOSSimulatorCoreSimulatorSupport.mm.
References m_dev.
Referenced by lldb_private::PlatformAppleSimulator::ConnectRemote(), and lldb_private::PlatformAppleSimulator::GetStatus().
CoreSimulatorSupport::Device::State CoreSimulatorSupport::Device::GetState | ( | ) |
Definition at line 107 of file PlatformiOSSimulatorCoreSimulatorSupport.mm.
References m_dev.
Referenced by lldb_private::PlatformAppleSimulator::LaunchProcess().
std::string CoreSimulatorSupport::Device::GetUDID | ( | ) | const |
Definition at line 212 of file PlatformiOSSimulatorCoreSimulatorSupport.mm.
References m_dev.
Referenced by lldb_private::PlatformAppleSimulator::ConnectRemote(), and lldb_private::PlatformAppleSimulator::GetStatus().
|
explicit |
Definition at line 105 of file PlatformiOSSimulatorCoreSimulatorSupport.mm.
bool CoreSimulatorSupport::Device::Shutdown | ( | lldb_private::Status & | err | ) |
Definition at line 367 of file PlatformiOSSimulatorCoreSimulatorSupport.mm.
References lldb_private::Status::Clear(), and lldb_private::Status::SetErrorString().
CoreSimulatorSupport::Process CoreSimulatorSupport::Device::Spawn | ( | lldb_private::ProcessLaunchInfo & | launch_info | ) |
Definition at line 448 of file PlatformiOSSimulatorCoreSimulatorSupport.mm.
References error(), lldb_private::Args::GetArgumentAtIndex(), lldb_private::Args::GetArgumentCount(), lldb_private::ProcessInfo::GetArguments(), lldb_private::ProcessInfo::GetEnvironment(), lldb_private::ProcessLaunchInfo::GetFlags(), HandleFileAction(), kSimDeviceSpawnStderr, kSimDeviceSpawnStdin, kSimDeviceSpawnStdout, kSimDeviceSpawnWaitForDebugger, m_dev, and lldb_private::Flags::Test().
Referenced by lldb_private::PlatformAppleSimulator::LaunchProcess().
|
friend |
Definition at line 177 of file PlatformiOSSimulatorCoreSimulatorSupport.h.
|
private |
Definition at line 173 of file PlatformiOSSimulatorCoreSimulatorSupport.h.
Referenced by GetName(), GetState(), GetUDID(), and Spawn().
|
private |
Definition at line 175 of file PlatformiOSSimulatorCoreSimulatorSupport.h.
|
private |
Definition at line 174 of file PlatformiOSSimulatorCoreSimulatorSupport.h.