aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.h
diff options
context:
space:
mode:
authorTamas Berghammer <tberghammer@google.com>2015-03-31 09:52:22 +0000
committerTamas Berghammer <tberghammer@google.com>2015-03-31 09:52:22 +0000
commitdb264a6d09b04f6794e786078bf727c1c10c798a (patch)
tree9da2cc27520248bda09229b65a3c1b5b8fc68964 /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.h
parent96d1779e23fad278e9f48ebb0ae6450e7395d6e7 (diff)
downloadllvm-db264a6d09b04f6794e786078bf727c1c10c798a.zip
llvm-db264a6d09b04f6794e786078bf727c1c10c798a.tar.gz
llvm-db264a6d09b04f6794e786078bf727c1c10c798a.tar.bz2
Move several plugin to its own namespace
Affected paths: * Plugins/Platform/Android/* * Plugins/Platform/Linux/* * Plugins/Platform/gdb-server/* * Plugins/Process/Linux/* * Plugins/Process/gdb-remote/* Differential revision: http://reviews.llvm.org/D8654 llvm-svn: 233679
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.h')
-rw-r--r--lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.h45
1 files changed, 26 insertions, 19 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.h b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.h
index d7fc115..a47e9a1 100644
--- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.h
+++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.h
@@ -23,12 +23,16 @@
// Project includes
#include "GDBRemoteCommunicationServerCommon.h"
-class ProcessGDBRemote;
class StringExtractorGDBRemote;
+namespace lldb_private {
+namespace process_gdb_remote {
+
+class ProcessGDBRemote;
+
class GDBRemoteCommunicationServerLLGS :
public GDBRemoteCommunicationServerCommon,
- public lldb_private::NativeProcessProtocol::NativeDelegate
+ public NativeProcessProtocol::NativeDelegate
{
public:
//------------------------------------------------------------------
@@ -53,7 +57,7 @@ public:
/// An Error object indicating the success or failure of making
/// the setting.
//------------------------------------------------------------------
- lldb_private::Error
+ Error
SetLaunchArguments (const char *const args[], int argc);
//------------------------------------------------------------------
@@ -66,7 +70,7 @@ public:
/// An Error object indicating the success or failure of making
/// the setting.
//------------------------------------------------------------------
- lldb_private::Error
+ Error
SetLaunchFlags (unsigned int launch_flags);
//------------------------------------------------------------------
@@ -80,7 +84,7 @@ public:
/// An Error object indicating the success or failure of the
/// launch.
//------------------------------------------------------------------
- lldb_private::Error
+ Error
LaunchProcess () override;
//------------------------------------------------------------------
@@ -93,33 +97,33 @@ public:
/// An Error object indicating the success or failure of the
/// attach operation.
//------------------------------------------------------------------
- lldb_private::Error
+ Error
AttachToProcess (lldb::pid_t pid);
//------------------------------------------------------------------
// NativeProcessProtocol::NativeDelegate overrides
//------------------------------------------------------------------
void
- InitializeDelegate (lldb_private::NativeProcessProtocol *process) override;
+ InitializeDelegate (NativeProcessProtocol *process) override;
void
- ProcessStateChanged (lldb_private::NativeProcessProtocol *process, lldb::StateType state) override;
+ ProcessStateChanged (NativeProcessProtocol *process, lldb::StateType state) override;
void
- DidExec (lldb_private::NativeProcessProtocol *process) override;
+ DidExec (NativeProcessProtocol *process) override;
protected:
lldb::PlatformSP m_platform_sp;
lldb::thread_t m_async_thread;
lldb::tid_t m_current_tid;
lldb::tid_t m_continue_tid;
- lldb_private::Mutex m_debugged_process_mutex;
- lldb_private::NativeProcessProtocolSP m_debugged_process_sp;
+ Mutex m_debugged_process_mutex;
+ NativeProcessProtocolSP m_debugged_process_sp;
lldb::DebuggerSP m_debugger_sp;
Communication m_stdio_communication;
lldb::StateType m_inferior_prev_state;
lldb::DataBufferSP m_active_auxv_buffer_sp;
- lldb_private::Mutex m_saved_registers_mutex;
+ Mutex m_saved_registers_mutex;
std::unordered_map<uint32_t, lldb::DataBufferSP> m_saved_registers_map;
uint32_t m_next_saved_registers_id;
@@ -127,7 +131,7 @@ protected:
SendONotification (const char *buffer, uint32_t len);
PacketResult
- SendWResponse (lldb_private::NativeProcessProtocol *process);
+ SendWResponse (NativeProcessProtocol *process);
PacketResult
SendStopReplyPacketForThread (lldb::tid_t tid);
@@ -246,14 +250,14 @@ protected:
lldb::tid_t
GetContinueThreadID () const { return m_continue_tid; }
- lldb_private::Error
+ Error
SetSTDIOFileDescriptor (int fd);
static void
STDIOReadThreadBytesReceived (void *baton, const void *src, size_t src_len);
- lldb_private::FileSpec
- FindModuleFile (const std::string& module_path, const lldb_private::ArchSpec& arch) override;
+ FileSpec
+ FindModuleFile (const std::string& module_path, const ArchSpec& arch) override;
private:
bool
@@ -267,15 +271,15 @@ private:
int status);
void
- HandleInferiorState_Exited (lldb_private::NativeProcessProtocol *process);
+ HandleInferiorState_Exited (NativeProcessProtocol *process);
void
- HandleInferiorState_Stopped (lldb_private::NativeProcessProtocol *process);
+ HandleInferiorState_Stopped (NativeProcessProtocol *process);
void
FlushInferiorOutput ();
- lldb_private::NativeThreadProtocolSP
+ NativeThreadProtocolSP
GetThreadFromSuffix (StringExtractorGDBRemote &packet);
uint32_t
@@ -296,4 +300,7 @@ private:
DISALLOW_COPY_AND_ASSIGN (GDBRemoteCommunicationServerLLGS);
};
+} // namespace process_gdb_remote
+} // namespace lldb_private
+
#endif // liblldb_GDBRemoteCommunicationServerLLGS_h_