public static OperatingSystemBackend CreateOperatingSystemBackend(Process process)
{
ServerType type = mono_debugger_server_get_server_type ();
switch (type) {
case ServerType.LINUX_PTRACE:
return new LinuxOperatingSystem (process);
case ServerType.DARWIN:
return new DarwinOperatingSystem (process);
case ServerType.WINDOWS:
return new WindowsOperatingSystem (process);
default:
throw new NotSupportedException (String.Format ("Unknown server type {0}.", type));
}
}