Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-10 08:42:48

0001 //===-- HostProcessWindows.h ------------------------------------*- C++ -*-===//
0002 //
0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0004 // See https://llvm.org/LICENSE.txt for license information.
0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0006 //
0007 //===----------------------------------------------------------------------===//
0008 
0009 #ifndef lldb_Host_HostProcessWindows_h_
0010 #define lldb_Host_HostProcessWindows_h_
0011 
0012 #include "lldb/Host/HostNativeProcessBase.h"
0013 #include "lldb/lldb-types.h"
0014 
0015 namespace lldb_private {
0016 
0017 class FileSpec;
0018 
0019 class HostProcessWindows : public HostNativeProcessBase {
0020 public:
0021   HostProcessWindows();
0022   explicit HostProcessWindows(lldb::process_t process);
0023   ~HostProcessWindows();
0024 
0025   void SetOwnsHandle(bool owns);
0026 
0027   Status Terminate() override;
0028 
0029   lldb::pid_t GetProcessId() const override;
0030   bool IsRunning() const override;
0031 
0032   virtual llvm::Expected<HostThread>
0033   StartMonitoring(const Host::MonitorChildProcessCallback &callback) override;
0034 
0035 private:
0036   void Close();
0037 
0038   bool m_owns_handle;
0039 };
0040 }
0041 
0042 #endif