[Lldb-commits] [lldb] r292882 - Enable compression capability in debugserver for all of ios/watchos/tvos

Jason Molenda via lldb-commits lldb-commits at lists.llvm.org
Mon Jan 23 20:43:40 PST 2017


Author: jmolenda
Date: Mon Jan 23 22:43:40 2017
New Revision: 292882

URL: http://llvm.org/viewvc/llvm-project?rev=292882&view=rev
Log:
Enable compression capability in debugserver for all of ios/watchos/tvos
environments.

<rdar://problem/30159019> 

Modified:
    lldb/trunk/tools/debugserver/source/RNBRemote.cpp

Modified: lldb/trunk/tools/debugserver/source/RNBRemote.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/debugserver/source/RNBRemote.cpp?rev=292882&r1=292881&r2=292882&view=diff
==============================================================================
--- lldb/trunk/tools/debugserver/source/RNBRemote.cpp (original)
+++ lldb/trunk/tools/debugserver/source/RNBRemote.cpp Mon Jan 23 22:43:40 2017
@@ -3611,15 +3611,10 @@ rnb_err_t RNBRemote::HandlePacket_qSuppo
   snprintf(buf, sizeof(buf), "qXfer:features:read+;PacketSize=%x;qEcho+",
            max_packet_size);
 
-  // By default, don't enable compression.  It's only worth doing when we are
-  // working
-  // with a low speed communication channel.
   bool enable_compression = false;
   (void)enable_compression;
 
-// Enable compression when debugserver is running on a watchOS device where
-// communication may be over Bluetooth.
-#if defined(TARGET_OS_WATCH) && TARGET_OS_WATCH == 1
+#if defined (TARGET_OS_WATCH) || defined (TARGET_OS_IOS) || defined (TARGET_OS_TVOS)
   enable_compression = true;
 #endif
 




More information about the lldb-commits mailing list