<rdar://problem/12491387>
authorGreg Clayton <gclayton@apple.com>
Fri, 19 Oct 2012 22:22:57 +0000 (22:22 +0000)
committerGreg Clayton <gclayton@apple.com>
Fri, 19 Oct 2012 22:22:57 +0000 (22:22 +0000)
commit1d19a2f25313d7f46bf725b1c8c29a586b490901
treec38c953a9b6f764587eb7e411f86352ac6a35220
parent38860baad039595fc33e3036cc934c8f8fe8bdb3
<rdar://problem/12491387>

Added commands to the KDP plug-in that allow sending raw commands through the KDP protocol. You specify a command byte and a payload as ASCII hex bytes, and the packet is created with a valid header/sequenceID/length and sent. The command responds with a raw ASCII hex string that contains all bytes in the reply including the header.

An example of sending a read register packet for the GPR on x86_64:

(lldb) process plugin packet send --command 0x07 --payload 0100000004000000

llvm-svn: 166346
lldb/include/lldb/Interpreter/OptionGroupString.h [new file with mode: 0644]
lldb/lldb.xcodeproj/project.pbxproj
lldb/source/Interpreter/OptionGroupString.cpp [new file with mode: 0644]
lldb/source/Plugins/OperatingSystem/Darwin-Kernel/OperatingSystemDarwinKernel.cpp
lldb/source/Plugins/Process/MacOSX-Kernel/CommunicationKDP.cpp
lldb/source/Plugins/Process/MacOSX-Kernel/CommunicationKDP.h
lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp
lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.h
lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp