diff options
| author | Greg Clayton <gclayton@apple.com> | 2012-10-19 22:22:57 +0000 |
|---|---|---|
| committer | Greg Clayton <gclayton@apple.com> | 2012-10-19 22:22:57 +0000 |
| commit | 1d19a2f25313d7f46bf725b1c8c29a586b490901 (patch) | |
| tree | c38c953a9b6f764587eb7e411f86352ac6a35220 /lldb/source/Plugins/Process/gdb-remote | |
| parent | 38860baad039595fc33e3036cc934c8f8fe8bdb3 (diff) | |
| download | bcm5719-llvm-1d19a2f25313d7f46bf725b1c8c29a586b490901.tar.gz bcm5719-llvm-1d19a2f25313d7f46bf725b1c8c29a586b490901.zip | |
<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
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote')
| -rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp index 09278719081..1b3ebc7bcce 100644 --- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp @@ -41,6 +41,8 @@ #include "lldb/Host/Symbols.h" #include "lldb/Host/TimeValue.h" #include "lldb/Interpreter/CommandInterpreter.h" +#include "lldb/Interpreter/CommandObject.h" +#include "lldb/Interpreter/CommandObjectMultiword.h" #include "lldb/Interpreter/CommandReturnObject.h" #include "lldb/Symbol/ObjectFile.h" #include "lldb/Target/DynamicLoader.h" @@ -3016,8 +3018,6 @@ ProcessGDBRemote::GetDynamicLoader () return m_dyld_ap.get(); } -#include "lldb/Interpreter/CommandObject.h" -#include "lldb/Interpreter/CommandObjectMultiword.h" class CommandObjectProcessGDBRemotePacketHistory : public CommandObjectParsed { |

