From 18a9135d56522bb585ae005fdafa4678048d0214 Mon Sep 17 00:00:00 2001 From: Adrian McCarthy Date: Wed, 28 Oct 2015 18:21:45 +0000 Subject: Refactor Windows process plugin to allow code sharing between live and mini dump debugging. llvm-svn: 251540 --- .../Process/Windows/Common/ProcessWindows.h | 41 ++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 lldb/source/Plugins/Process/Windows/Common/ProcessWindows.h (limited to 'lldb/source/Plugins/Process/Windows/Common/ProcessWindows.h') diff --git a/lldb/source/Plugins/Process/Windows/Common/ProcessWindows.h b/lldb/source/Plugins/Process/Windows/Common/ProcessWindows.h new file mode 100644 index 00000000000..d367dcdc044 --- /dev/null +++ b/lldb/source/Plugins/Process/Windows/Common/ProcessWindows.h @@ -0,0 +1,41 @@ +//===-- ProcessWindows.h ----------------------------------------*- C++ -*-===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +#ifndef liblldb_Plugins_Process_Windows_Common_ProcessWindows_H_ +#define liblldb_Plugins_Process_Windows_Common_ProcessWindows_H_ + +// Other libraries and framework includes +#include "lldb/lldb-forward.h" +#include "lldb/Core/Error.h" +#include "lldb/Target/Process.h" + +namespace lldb_private +{ + +class ProcessWindows : public lldb_private::Process +{ +public: + //------------------------------------------------------------------ + // Constructors and destructors + //------------------------------------------------------------------ + ProcessWindows(lldb::TargetSP target_sp, + lldb_private::Listener &listener); + + ~ProcessWindows(); + + size_t GetSTDOUT(char *buf, size_t buf_size, lldb_private::Error &error) override; + size_t GetSTDERR(char *buf, size_t buf_size, lldb_private::Error &error) override; + size_t PutSTDIN(const char *buf, size_t buf_size, lldb_private::Error &error) override; + + lldb::addr_t GetImageInfoAddress() override; +}; + +} + +#endif // liblldb_Plugins_Process_Windows_Common_ProcessWindows_H_ -- cgit v1.2.3