diff --git a/lldb/include/lldb/Utility/Status.h b/lldb/include/lldb/Utility/Status.h --- a/lldb/include/lldb/Utility/Status.h +++ b/lldb/include/lldb/Utility/Status.h @@ -184,16 +184,6 @@ /// success (non-erro), \b false otherwise. bool Success() const; - /// Test for a failure due to a generic interrupt. - /// - /// Returns true if the error code in this object was caused by an - /// interrupt. At present only supports Posix EINTR. - /// - /// \return - /// \b true if this object contains an value that describes - /// failure due to interrupt, \b false otherwise. - bool WasInterrupted() const; - protected: /// Member variables ValueType m_code = 0; ///< Status code as an integer value. diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp --- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp @@ -872,9 +872,6 @@ if (conn_up->Connect(connect_url, &error) == eConnectionStatusSuccess) { m_gdb_comm.SetConnection(std::move(conn_up)); break; - } else if (error.WasInterrupted()) { - // If we were interrupted, don't keep retrying. - break; } retry_count++; diff --git a/lldb/source/Utility/Status.cpp b/lldb/source/Utility/Status.cpp --- a/lldb/source/Utility/Status.cpp +++ b/lldb/source/Utility/Status.cpp @@ -287,10 +287,6 @@ // return value. bool Status::Success() const { return m_code == 0; } -bool Status::WasInterrupted() const { - return (m_type == eErrorTypePOSIX && m_code == EINTR); -} - void llvm::format_provider::format( const lldb_private::Status &error, llvm::raw_ostream &OS, llvm::StringRef Options) {