diff options
| author | Davide Italiano <davide@freebsd.org> | 2018-01-02 16:24:30 +0000 |
|---|---|---|
| committer | Davide Italiano <davide@freebsd.org> | 2018-01-02 16:24:30 +0000 |
| commit | 29e185696674539a8ad1d4b1d65a5419b8b2c777 (patch) | |
| tree | 35b92ae8a3ad12960ac13f69e454ba982cdf9d4c /lldb/source/Plugins/Process | |
| parent | aae267d7f2ac74b1ea8e65008e8819556e0b0ef8 (diff) | |
| download | bcm5719-llvm-29e185696674539a8ad1d4b1d65a5419b8b2c777.tar.gz bcm5719-llvm-29e185696674539a8ad1d4b1d65a5419b8b2c777.zip | |
[MacOSX-Kernel] Remove broken KDP_IMAGEPATH support.
llvm-svn: 321652
Diffstat (limited to 'lldb/source/Plugins/Process')
| -rw-r--r-- | lldb/source/Plugins/Process/MacOSX-Kernel/CommunicationKDP.cpp | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/lldb/source/Plugins/Process/MacOSX-Kernel/CommunicationKDP.cpp b/lldb/source/Plugins/Process/MacOSX-Kernel/CommunicationKDP.cpp index 3d9f498b1e9..1141b31ca1e 100644 --- a/lldb/source/Plugins/Process/MacOSX-Kernel/CommunicationKDP.cpp +++ b/lldb/source/Plugins/Process/MacOSX-Kernel/CommunicationKDP.cpp @@ -59,15 +59,6 @@ bool CommunicationKDP::SendRequestPacket( return SendRequestPacketNoLock(request_packet); } -#if 0 -typedef struct { - uint8_t request; // Either: CommandType | ePacketTypeRequest, or CommandType | ePacketTypeReply - uint8_t sequence; - uint16_t length; // Length of entire packet including this header - uint32_t key; // Session key -} kdp_hdr_t; -#endif - void CommunicationKDP::MakeRequestPacketHeader(CommandType request_type, PacketStreamType &request_packet, uint16_t request_length) { @@ -436,34 +427,6 @@ bool CommunicationKDP::SendRequestVersion() { return false; } -#if 0 // Disable KDP_IMAGEPATH for now, it seems to hang the KDP connection... -const char * -CommunicationKDP::GetImagePath () -{ - if (m_image_path.empty()) - SendRequestImagePath(); - return m_image_path.c_str(); -} - -bool -CommunicationKDP::SendRequestImagePath () -{ - PacketStreamType request_packet (Stream::eBinary, m_addr_byte_size, m_byte_order); - const CommandType command = KDP_IMAGEPATH; - const uint32_t command_length = 8; - MakeRequestPacketHeader (command, request_packet, command_length); - DataExtractor reply_packet; - if (SendRequestAndGetReply (command, request_packet, reply_packet)) - { - const char *path = reply_packet.PeekCStr(8); - if (path && path[0]) - m_kernel_version.assign (path); - return true; - } - return false; -} -#endif - uint32_t CommunicationKDP::GetCPUMask() { if (!HostInfoIsValid()) SendRequestHostInfo(); |

