summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/Linux/NativeProcessLinux.h
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Plugins/Process/Linux/NativeProcessLinux.h')
-rw-r--r--lldb/source/Plugins/Process/Linux/NativeProcessLinux.h57
1 files changed, 30 insertions, 27 deletions
diff --git a/lldb/source/Plugins/Process/Linux/NativeProcessLinux.h b/lldb/source/Plugins/Process/Linux/NativeProcessLinux.h
index b9aff86c984..3c597b64e73 100644
--- a/lldb/source/Plugins/Process/Linux/NativeProcessLinux.h
+++ b/lldb/source/Plugins/Process/Linux/NativeProcessLinux.h
@@ -27,13 +27,14 @@
#include "lldb/Host/common/NativeProcessProtocol.h"
-namespace lldb_private
-{
+namespace lldb_private {
class Error;
class Module;
- class ThreadStateCoordinator;
class Scalar;
+namespace process_linux {
+ class ThreadStateCoordinator;
+
/// @class NativeProcessLinux
/// @brief Manages communication with the inferior (debugee) process.
///
@@ -45,17 +46,17 @@ namespace lldb_private
{
public:
- static lldb_private::Error
+ static Error
LaunchProcess (
Module *exe_module,
ProcessLaunchInfo &launch_info,
- lldb_private::NativeProcessProtocol::NativeDelegate &native_delegate,
+ NativeProcessProtocol::NativeDelegate &native_delegate,
NativeProcessProtocolSP &native_process_sp);
- static lldb_private::Error
+ static Error
AttachToProcess (
lldb::pid_t pid,
- lldb_private::NativeProcessProtocol::NativeDelegate &native_delegate,
+ NativeProcessProtocol::NativeDelegate &native_delegate,
NativeProcessProtocolSP &native_process_sp);
// ---------------------------------------------------------------------
@@ -122,7 +123,7 @@ namespace lldb_private
/// This method is provided for use by RegisterContextLinux derivatives.
Error
ReadRegisterValue(lldb::tid_t tid, unsigned offset, const char *reg_name,
- unsigned size, lldb_private::RegisterValue &value);
+ unsigned size, RegisterValue &value);
/// Writes the given value to the register identified by the given
/// (architecture dependent) offset.
@@ -130,7 +131,7 @@ namespace lldb_private
/// This method is provided for use by RegisterContextLinux derivatives.
Error
WriteRegisterValue(lldb::tid_t tid, unsigned offset, const char *reg_name,
- const lldb_private::RegisterValue &value);
+ const RegisterValue &value);
/// Reads all general purpose registers into the specified buffer.
Error
@@ -170,23 +171,23 @@ namespace lldb_private
private:
- lldb_private::ArchSpec m_arch;
+ ArchSpec m_arch;
HostThread m_operation_thread;
HostThread m_monitor_thread;
// current operation which must be executed on the priviliged thread
void *m_operation;
- lldb_private::Mutex m_operation_mutex;
+ Mutex m_operation_mutex;
// semaphores notified when Operation is ready to be processed and when
// the operation is complete.
sem_t m_operation_pending;
sem_t m_operation_done;
- lldb_private::LazyBool m_supports_mem_region;
+ LazyBool m_supports_mem_region;
std::vector<MemoryRegionInfo> m_mem_region_cache;
- lldb_private::Mutex m_mem_region_cache_mutex;
+ Mutex m_mem_region_cache_mutex;
std::unique_ptr<ThreadStateCoordinator> m_coordinator_up;
HostThread m_coordinator_thread;
@@ -199,7 +200,7 @@ namespace lldb_private
NativeProcessLinux *m_monitor; // The monitor performing the attach.
sem_t m_semaphore; // Posted to once operation complete.
- lldb_private::Error m_error; // Set if process operation failed.
+ Error m_error; // Set if process operation failed.
};
/// @class LauchArgs
@@ -209,25 +210,25 @@ namespace lldb_private
struct LaunchArgs : OperationArgs
{
LaunchArgs(NativeProcessLinux *monitor,
- lldb_private::Module *module,
+ Module *module,
char const **argv,
char const **envp,
const std::string &stdin_path,
const std::string &stdout_path,
const std::string &stderr_path,
const char *working_dir,
- const lldb_private::ProcessLaunchInfo &launch_info);
+ const ProcessLaunchInfo &launch_info);
~LaunchArgs();
- lldb_private::Module *m_module; // The executable image to launch.
- char const **m_argv; // Process arguments.
- char const **m_envp; // Process environment.
+ Module *m_module; // The executable image to launch.
+ char const **m_argv; // Process arguments.
+ char const **m_envp; // Process environment.
const std::string &m_stdin_path; // Redirect stdin if not empty.
const std::string &m_stdout_path; // Redirect stdout if not empty.
const std::string &m_stderr_path; // Redirect stderr if not empty.
- const char *m_working_dir; // Working directory or NULL.
- const lldb_private::ProcessLaunchInfo &m_launch_info;
+ const char *m_working_dir; // Working directory or NULL.
+ const ProcessLaunchInfo &m_launch_info;
};
struct AttachArgs : OperationArgs
@@ -256,7 +257,7 @@ namespace lldb_private
const std::string &stdout_path,
const std::string &stderr_path,
const char *working_dir,
- const lldb_private::ProcessLaunchInfo &launch_info,
+ const ProcessLaunchInfo &launch_info,
Error &error);
/// Attaches to an existing process. Forms the
@@ -265,7 +266,7 @@ namespace lldb_private
AttachToInferior (lldb::pid_t pid, Error &error);
void
- StartLaunchOpThread(LaunchArgs *args, lldb_private::Error &error);
+ StartLaunchOpThread(LaunchArgs *args, Error &error);
static void *
LaunchOpThread(void *arg);
@@ -274,7 +275,7 @@ namespace lldb_private
Launch(LaunchArgs *args);
void
- StartAttachOpThread(AttachArgs *args, lldb_private::Error &error);
+ StartAttachOpThread(AttachArgs *args, Error &error);
static void *
AttachOpThread(void *args);
@@ -412,12 +413,14 @@ namespace lldb_private
lldb::tid_t skip_stop_request_tid,
const std::function<void (lldb::tid_t tid)> &call_after_function);
- lldb_private::Error
+ Error
Detach(lldb::tid_t tid);
- lldb_private::Error
+ Error
RequestThreadStop (const lldb::pid_t pid, const lldb::tid_t tid);
};
-} // End lldb_private namespace.
+
+} // namespace process_linux
+} // namespace lldb_private
#endif // #ifndef liblldb_NativeProcessLinux_H_
OpenPOWER on IntegriCloud