diff options
author | Adrian Prantl <aprantl@apple.com> | 2019-03-07 00:10:11 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2019-03-07 00:10:11 +0000 |
commit | 1dfba3cfba948163fd274583a380bd2c0f8dd7b7 (patch) | |
tree | 69fc93fc5406cb645cf69d167103dedffc3475ff /lldb/source/Plugins/Process/gdb-remote | |
parent | 9a8e777f8c394e4903180b9f51fe7e649ebbf121 (diff) | |
download | bcm5719-llvm-1dfba3cfba948163fd274583a380bd2c0f8dd7b7.tar.gz bcm5719-llvm-1dfba3cfba948163fd274583a380bd2c0f8dd7b7.zip |
Promote more debug-only assertions to regular assertions.
llvm-svn: 355568
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote')
-rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.cpp index 75d264295ab..a51c693cbe8 100644 --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.cpp @@ -257,10 +257,8 @@ bool GDBRemoteRegisterContext::ReadRegisterBytes(const RegisterInfo *reg_info, } if (&data != &m_reg_data) { -#if defined(LLDB_CONFIGURATION_DEBUG) assert(m_reg_data.GetByteSize() >= reg_info->byte_offset + reg_info->byte_size); -#endif // If our register context and our register info disagree, which should // never happen, don't read past the end of the buffer. if (m_reg_data.GetByteSize() < reg_info->byte_offset + reg_info->byte_size) @@ -313,10 +311,8 @@ bool GDBRemoteRegisterContext::WriteRegisterBytes(const RegisterInfo *reg_info, GDBRemoteCommunicationClient &gdb_comm( ((ProcessGDBRemote *)process)->GetGDBRemote()); -#if defined(LLDB_CONFIGURATION_DEBUG) assert(m_reg_data.GetByteSize() >= reg_info->byte_offset + reg_info->byte_size); -#endif // If our register context and our register info disagree, which should never // happen, don't overwrite past the end of the buffer. |