[gdb-remote] Fix more issues with thread_result_t

More fixes needed to un-break the Windows bot.

llvm-svn: 361539
This commit is contained in:
Jonas Devlieghere 2019-05-23 19:32:46 +00:00
parent cb64cd9b60
commit a83bf47770
2 changed files with 4 additions and 4 deletions

View File

@ -541,7 +541,7 @@ bool GDBRemoteCommunication::DecompressPacket() {
#if defined(HAVE_LIBCOMPRESSION)
if (m_compression_type == CompressionType::ZlibDeflate ||
m_compression_type == CompressionType::LZFSE ||
m_compression_type == CompressionType::LZ4 ||
m_compression_type == CompressionType::LZ4 ||
m_compression_type == CompressionType::LZMA) {
compression_algorithm compression_type;
if (m_compression_type == CompressionType::LZFSE)
@ -578,7 +578,7 @@ bool GDBRemoteCommunication::DecompressPacket() {
if (decompressed_bufsize != ULONG_MAX && decompressed_buffer != nullptr) {
decompressed_bytes = compression_decode_buffer(
decompressed_buffer, decompressed_bufsize,
(uint8_t *)unescaped_content.data(), unescaped_content.size(),
(uint8_t *)unescaped_content.data(), unescaped_content.size(),
m_decompression_scratch, compression_type);
}
}
@ -925,7 +925,7 @@ GDBRemoteCommunication::ListenThread(lldb::thread_arg_t arg) {
eConnectionStatusSuccess)
comm->SetConnection(nullptr);
}
return nullptr;
return {};
}
Status GDBRemoteCommunication::StartDebugserverProcess(

View File

@ -3913,7 +3913,7 @@ thread_result_t ProcessGDBRemote::AsyncThread(void *arg) {
") thread exiting...",
__FUNCTION__, arg, process->GetID());
return nullptr;
return {};
}
// uint32_t