summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>2017-01-24 05:06:14 +0000
committerJason Molenda <jmolenda@apple.com>2017-01-24 05:06:14 +0000
commit73039d2cac45e41d9d3e6c345f4ea8440d2568a9 (patch)
tree78d48b20cb8ca2772708c004777b0cff1765a06a /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
parentd5fd7d7ea152be8e0c6bed31be690cb020e9d96b (diff)
downloadbcm5719-llvm-73039d2cac45e41d9d3e6c345f4ea8440d2568a9.tar.gz
bcm5719-llvm-73039d2cac45e41d9d3e6c345f4ea8440d2568a9.zip
Prefer lzfse if it is an available compression method (this was
defaulting to zlib previously). <rdar://problem/30159130> llvm-svn: 292884
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp')
-rw-r--r--lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
index bd87521fe6e..89e4e198947 100644
--- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
+++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
@@ -607,10 +607,10 @@ bool GDBRemoteCommunication::DecompressPacket() {
m_compression_type == CompressionType::LZFSE ||
m_compression_type == CompressionType::LZ4)) {
compression_algorithm compression_type;
- if (m_compression_type == CompressionType::ZlibDeflate)
- compression_type = COMPRESSION_ZLIB;
- else if (m_compression_type == CompressionType::LZFSE)
+ if (m_compression_type == CompressionType::LZFSE)
compression_type = COMPRESSION_LZFSE;
+ else if (m_compression_type == CompressionType::ZlibDeflate)
+ compression_type = COMPRESSION_ZLIB;
else if (m_compression_type == CompressionType::LZ4)
compression_type = COMPRESSION_LZ4_RAW;
else if (m_compression_type == CompressionType::LZMA)
OpenPOWER on IntegriCloud