1 //===-- ProcessFreeBSD.h ------------------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef liblldb_ProcessFreeBSD_H_
11 #define liblldb_ProcessFreeBSD_H_
18 // Other libraries and framework includes
19 #include "lldb/Target/Process.h"
20 #include "lldb/Target/ThreadList.h"
21 #include "ProcessMessage.h"
22 #include "ProcessPOSIX.h"
26 class ProcessFreeBSD :
31 //------------------------------------------------------------------
33 //------------------------------------------------------------------
34 static lldb::ProcessSP
35 CreateInstance(lldb_private::Target& target,
36 lldb_private::Listener &listener,
37 const lldb_private::FileSpec *crash_file_path);
45 static lldb_private::ConstString
46 GetPluginNameStatic();
49 GetPluginDescriptionStatic();
51 //------------------------------------------------------------------
52 // Constructors and destructors
53 //------------------------------------------------------------------
54 ProcessFreeBSD(lldb_private::Target& target,
55 lldb_private::Listener &listener);
57 virtual lldb_private::Error
58 DoDetach(bool keep_stopped);
61 UpdateThreadList(lldb_private::ThreadList &old_thread_list, lldb_private::ThreadList &new_thread_list);
63 virtual lldb_private::Error
66 virtual lldb_private::Error
70 SendMessage(const ProcessMessage &message);
72 //------------------------------------------------------------------
73 // PluginInterface protocol
74 //------------------------------------------------------------------
75 virtual lldb_private::ConstString
82 GetPluginCommandHelp(const char *command, lldb_private::Stream *strm);
84 virtual lldb_private::Error
85 ExecutePluginCommand(lldb_private::Args &command,
86 lldb_private::Stream *strm);
88 virtual lldb_private::Log *
89 EnablePluginLogging(lldb_private::Stream *strm,
90 lldb_private::Args &command);
93 friend class FreeBSDThread;
95 typedef std::vector<lldb::tid_t> tid_collection;
96 tid_collection m_suspend_tids;
97 tid_collection m_run_tids;
98 tid_collection m_step_tids;
104 #endif // liblldb_ProcessFreeBSD_H_