================
@@ -12,12 +12,24 @@
 #include "lldb/Host/PosixApi.h"
 #include "lldb/Utility/Stream.h"
 
+#ifdef _WIN32
+#include "lldb/Host/windows/windows.h"
+#endif
+
 using namespace lldb_private;
 
 // FileAction member functions
 
 FileAction::FileAction() : m_file_spec() {}
 
+#ifdef _WIN32
+HANDLE FileAction::GetHandle() const {
+  if (m_fd == -1)
+    return INVALID_HANDLE_VALUE;
+  return reinterpret_cast<HANDLE>(_get_osfhandle(m_fd));
+}
+#endif
----------------
DavidSpickett wrote:

Are we missing a non-Windows version of this function?

That might be ok, but it does look strange to me.

https://github.com/llvm/llvm-project/pull/178238
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to