Index: source/Plugins/Platform/POSIX/PlatformPOSIX.h =================================================================== --- source/Plugins/Platform/POSIX/PlatformPOSIX.h +++ source/Plugins/Platform/POSIX/PlatformPOSIX.h @@ -134,6 +134,9 @@ lldb_private::Error LaunchProcess (lldb_private::ProcessLaunchInfo &launch_info) override; + lldb_private::Error + KillProcess (const lldb::pid_t pid) override; + lldb::ProcessSP Attach (lldb_private::ProcessAttachInfo &attach_info, lldb_private::Debugger &debugger, Index: source/Plugins/Platform/POSIX/PlatformPOSIX.cpp =================================================================== --- source/Plugins/Platform/POSIX/PlatformPOSIX.cpp +++ source/Plugins/Platform/POSIX/PlatformPOSIX.cpp @@ -714,6 +714,18 @@ return error; } +lldb_private::Error +PlatformPOSIX::KillProcess (const lldb::pid_t pid) +{ + if (IsHost()) + return Platform::KillProcess (pid); + + if (m_remote_platform_sp) + return m_remote_platform_sp->KillProcess (pid); + + return Error ("the platform is not currently connected"); +} + lldb::ProcessSP PlatformPOSIX::Attach (ProcessAttachInfo &attach_info, Debugger &debugger,