Stephen Wilson | f6f4033 | 2010-07-24 02:19:04 +0000 | [diff] [blame] | 1 | //===-- ProcessLinux.h ------------------------------------------*- C++ -*-===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | |
| 10 | #ifndef liblldb_ProcessLinux_H_ |
| 11 | #define liblldb_ProcessLinux_H_ |
| 12 | |
| 13 | // C Includes |
| 14 | |
| 15 | // C++ Includes |
| 16 | #include <queue> |
| 17 | |
| 18 | // Other libraries and framework includes |
| 19 | #include "lldb/Target/Process.h" |
Stephen Wilson | 67d9f7e | 2011-03-30 15:55:52 +0000 | [diff] [blame] | 20 | #include "LinuxSignals.h" |
Stephen Wilson | f6f4033 | 2010-07-24 02:19:04 +0000 | [diff] [blame] | 21 | #include "ProcessMessage.h" |
Johnny Chen | 7e99647 | 2012-01-05 19:17:38 +0000 | [diff] [blame] | 22 | #include "ProcessPOSIX.h" |
Stephen Wilson | f6f4033 | 2010-07-24 02:19:04 +0000 | [diff] [blame] | 23 | |
| 24 | class ProcessMonitor; |
| 25 | |
| 26 | class ProcessLinux : |
Johnny Chen | 7e99647 | 2012-01-05 19:17:38 +0000 | [diff] [blame] | 27 | public ProcessPOSIX |
Stephen Wilson | f6f4033 | 2010-07-24 02:19:04 +0000 | [diff] [blame] | 28 | { |
| 29 | public: |
| 30 | //------------------------------------------------------------------ |
| 31 | // Static functions. |
| 32 | //------------------------------------------------------------------ |
| 33 | static Process* |
| 34 | CreateInstance(lldb_private::Target& target, |
| 35 | lldb_private::Listener &listener); |
| 36 | |
| 37 | static void |
| 38 | Initialize(); |
| 39 | |
| 40 | static void |
| 41 | Terminate(); |
| 42 | |
| 43 | static const char * |
| 44 | GetPluginNameStatic(); |
| 45 | |
| 46 | static const char * |
| 47 | GetPluginDescriptionStatic(); |
| 48 | |
| 49 | //------------------------------------------------------------------ |
| 50 | // Constructors and destructors |
| 51 | //------------------------------------------------------------------ |
| 52 | ProcessLinux(lldb_private::Target& target, |
| 53 | lldb_private::Listener &listener); |
| 54 | |
Stephen Wilson | f6f4033 | 2010-07-24 02:19:04 +0000 | [diff] [blame] | 55 | virtual uint32_t |
Johnny Chen | 7e99647 | 2012-01-05 19:17:38 +0000 | [diff] [blame] | 56 | UpdateThreadList(lldb_private::ThreadList &old_thread_list, lldb_private::ThreadList &new_thread_list); |
Stephen Wilson | f6f4033 | 2010-07-24 02:19:04 +0000 | [diff] [blame] | 57 | //------------------------------------------------------------------ |
| 58 | // PluginInterface protocol |
| 59 | //------------------------------------------------------------------ |
| 60 | virtual const char * |
| 61 | GetPluginName(); |
| 62 | |
| 63 | virtual const char * |
| 64 | GetShortPluginName(); |
| 65 | |
| 66 | virtual uint32_t |
| 67 | GetPluginVersion(); |
| 68 | |
| 69 | virtual void |
| 70 | GetPluginCommandHelp(const char *command, lldb_private::Stream *strm); |
| 71 | |
| 72 | virtual lldb_private::Error |
| 73 | ExecutePluginCommand(lldb_private::Args &command, |
| 74 | lldb_private::Stream *strm); |
| 75 | |
| 76 | virtual lldb_private::Log * |
| 77 | EnablePluginLogging(lldb_private::Stream *strm, |
| 78 | lldb_private::Args &command); |
| 79 | |
Stephen Wilson | f6f4033 | 2010-07-24 02:19:04 +0000 | [diff] [blame] | 80 | private: |
Stephen Wilson | 67d9f7e | 2011-03-30 15:55:52 +0000 | [diff] [blame] | 81 | |
| 82 | /// Linux-specific signal set. |
| 83 | LinuxSignals m_linux_signals; |
| 84 | |
Stephen Wilson | f6f4033 | 2010-07-24 02:19:04 +0000 | [diff] [blame] | 85 | }; |
| 86 | |
| 87 | #endif // liblldb_MacOSXProcess_H_ |