diff options
author | Jim Ingham <jingham@apple.com> | 2014-02-25 04:53:13 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2014-02-25 04:53:13 +0000 |
commit | 5881318c8877e67bb6e3c5f67a249bb8ca54043e (patch) | |
tree | e5c65d2b73c5093d9f84af0444665e8c1eb1c477 /lldb/tools/debugserver/source/RNBContext.h | |
parent | 47ff9ab1be165d83063036f2630df794db008b4b (diff) | |
download | bcm5719-llvm-5881318c8877e67bb6e3c5f67a249bb8ca54043e.tar.gz bcm5719-llvm-5881318c8877e67bb6e3c5f67a249bb8ca54043e.zip |
Allow debugserver to detach from the target if the connection is
unexpectedly closed.
llvm-svn: 202110
Diffstat (limited to 'lldb/tools/debugserver/source/RNBContext.h')
-rw-r--r-- | lldb/tools/debugserver/source/RNBContext.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lldb/tools/debugserver/source/RNBContext.h b/lldb/tools/debugserver/source/RNBContext.h index e8292bdc559..69bba2c3270 100644 --- a/lldb/tools/debugserver/source/RNBContext.h +++ b/lldb/tools/debugserver/source/RNBContext.h @@ -57,7 +57,8 @@ public: m_pid_pthread(), m_launch_status(), m_arg_vec (), - m_env_vec () + m_env_vec (), + m_detach_on_error(false) { } @@ -116,6 +117,10 @@ public: const char * GetSTDOUTPath() { return m_stdout.empty() ? NULL : m_stdout.c_str(); } const char * GetSTDERRPath() { return m_stderr.empty() ? NULL : m_stderr.c_str(); } const char * GetWorkingDirPath() { return m_working_dir.empty() ? NULL : m_working_dir.c_str(); } + + void SetDetachOnError(bool detach) { m_detach_on_error = detach; } + bool GetDetachOnError () { return m_detach_on_error; } + protected: //------------------------------------------------------------------ // Classes that inherit from RNBContext can see and modify these @@ -133,6 +138,7 @@ protected: std::vector<std::string> m_arg_vec; std::vector<std::string> m_env_vec; // This will be unparsed - entries FOO=value std::string m_working_directory; + bool m_detach_on_error; void StartProcessStatusThread(); void StopProcessStatusThread(); |