summaryrefslogtreecommitdiffstats
path: root/lldb/source
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source')
-rw-r--r--lldb/source/Host/common/HostProcess.cpp4
-rw-r--r--lldb/source/Host/posix/HostProcessPosix.cpp3
-rw-r--r--lldb/source/Host/windows/HostProcessWindows.cpp5
3 files changed, 12 insertions, 0 deletions
diff --git a/lldb/source/Host/common/HostProcess.cpp b/lldb/source/Host/common/HostProcess.cpp
index 97ae6780521..9339d37b912 100644
--- a/lldb/source/Host/common/HostProcess.cpp
+++ b/lldb/source/Host/common/HostProcess.cpp
@@ -23,6 +23,10 @@ HostProcess::HostProcess(lldb::process_t process)
{
}
+HostProcess::~HostProcess()
+{
+}
+
Error HostProcess::Terminate()
{
return m_native_process->Terminate();
diff --git a/lldb/source/Host/posix/HostProcessPosix.cpp b/lldb/source/Host/posix/HostProcessPosix.cpp
index 13de84170ff..0d9f85377dd 100644
--- a/lldb/source/Host/posix/HostProcessPosix.cpp
+++ b/lldb/source/Host/posix/HostProcessPosix.cpp
@@ -100,6 +100,9 @@ lldb::pid_t HostProcessPosix::GetProcessId() const
bool HostProcessPosix::IsRunning() const
{
+ if (m_process == kInvalidPosixProcess)
+ return false;
+
// Send this process the null signal. If it succeeds the process is running.
Error error = Signal(0);
return error.Success();
diff --git a/lldb/source/Host/windows/HostProcessWindows.cpp b/lldb/source/Host/windows/HostProcessWindows.cpp
index bf54e587912..447f672ac77 100644
--- a/lldb/source/Host/windows/HostProcessWindows.cpp
+++ b/lldb/source/Host/windows/HostProcessWindows.cpp
@@ -17,6 +17,11 @@
using namespace lldb_private;
+HostProcessWindows::HostProcessWindows()
+ : HostNativeProcessBase()
+{
+}
+
HostProcessWindows::HostProcessWindows(lldb::process_t process)
: HostNativeProcessBase(process)
{
OpenPOWER on IntegriCloud