summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.h
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>2018-12-18 23:02:50 +0000
committerJason Molenda <jmolenda@apple.com>2018-12-18 23:02:50 +0000
commit4a793c846f44b0f3cdaf8faae63b157c608bcc90 (patch)
tree0346b3948e73cb2e9e9204e643d120a676a28fc0 /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.h
parentf5b5325a10ac5a228995851ae4335dfaa907d2a7 (diff)
downloadbcm5719-llvm-4a793c846f44b0f3cdaf8faae63b157c608bcc90.tar.gz
bcm5719-llvm-4a793c846f44b0f3cdaf8faae63b157c608bcc90.zip
Force libcompression calls to be enabled when building on Darwin
systems. It has been available in the OS over over three years now. If lldb doesn't link against -lcompression, it should be an error. Allocate a scratch buffer for libcompression to use when decoding packets, instead of it having to allocate & free one on every call. Fix a typeo with the size of the buffer that compression_decode_buffer() is expanding into. <rdar://problem/41601084> llvm-svn: 349563
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.h')
-rw-r--r--lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.h b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.h
index d2e21f4b2ab..369eb25b1df 100644
--- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.h
+++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.h
@@ -218,6 +218,9 @@ private:
HostThread m_listen_thread;
std::string m_listen_url;
+ CompressionType m_decompression_scratch_type;
+ void *m_decompression_scratch;
+
DISALLOW_COPY_AND_ASSIGN(GDBRemoteCommunication);
};
OpenPOWER on IntegriCloud