[Lldb-commits] [lldb] r218684 - Fixup some minor issues with HostProcess.
Zachary Turner
zturner at google.com
Tue Sep 30 09:56:40 PDT 2014
Author: zturner
Date: Tue Sep 30 11:56:40 2014
New Revision: 218684
URL: http://llvm.org/viewvc/llvm-project?rev=218684&view=rev
Log:
Fixup some minor issues with HostProcess.
Modified:
lldb/trunk/source/Host/common/HostProcess.cpp
lldb/trunk/source/Host/posix/HostProcessPosix.cpp
lldb/trunk/source/Host/windows/HostProcessWindows.cpp
Modified: lldb/trunk/source/Host/common/HostProcess.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/common/HostProcess.cpp?rev=218684&r1=218683&r2=218684&view=diff
==============================================================================
--- lldb/trunk/source/Host/common/HostProcess.cpp (original)
+++ lldb/trunk/source/Host/common/HostProcess.cpp Tue Sep 30 11:56:40 2014
@@ -23,6 +23,10 @@ HostProcess::HostProcess(lldb::process_t
{
}
+HostProcess::~HostProcess()
+{
+}
+
Error HostProcess::Terminate()
{
return m_native_process->Terminate();
Modified: lldb/trunk/source/Host/posix/HostProcessPosix.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/posix/HostProcessPosix.cpp?rev=218684&r1=218683&r2=218684&view=diff
==============================================================================
--- lldb/trunk/source/Host/posix/HostProcessPosix.cpp (original)
+++ lldb/trunk/source/Host/posix/HostProcessPosix.cpp Tue Sep 30 11:56:40 2014
@@ -100,6 +100,9 @@ lldb::pid_t HostProcessPosix::GetProcess
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();
Modified: lldb/trunk/source/Host/windows/HostProcessWindows.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/windows/HostProcessWindows.cpp?rev=218684&r1=218683&r2=218684&view=diff
==============================================================================
--- lldb/trunk/source/Host/windows/HostProcessWindows.cpp (original)
+++ lldb/trunk/source/Host/windows/HostProcessWindows.cpp Tue Sep 30 11:56:40 2014
@@ -17,6 +17,11 @@
using namespace lldb_private;
+HostProcessWindows::HostProcessWindows()
+ : HostNativeProcessBase()
+{
+}
+
HostProcessWindows::HostProcessWindows(lldb::process_t process)
: HostNativeProcessBase(process)
{
More information about the lldb-commits
mailing list