diff options
author | Greg Clayton <gclayton@apple.com> | 2015-05-26 18:00:51 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2015-05-26 18:00:51 +0000 |
commit | d04f0edad9afe46f18b86de9199884ea1dceb220 (patch) | |
tree | b0fc46f21a8b89ad468b8fae3c98e81f29e182c3 /lldb/tools/debugserver/source/RNBRemote.h | |
parent | bfecc06656d0f9fcdf22270b6c0aa15441d8d198 (diff) | |
download | bcm5719-llvm-d04f0edad9afe46f18b86de9199884ea1dceb220.tar.gz bcm5719-llvm-d04f0edad9afe46f18b86de9199884ea1dceb220.zip |
Added XML to the host layer.
We know have on API we should use for all XML within LLDB in XML.h. This API will be easy back the XML parsing by different libraries in case libxml2 doesn't work on all platforms. It also allows the only place for #ifdef ...XML... to be in XML.h and XML.cpp. The API is designed so it will still compile with or without XML support and there is a static function "bool XMLDocument::XMLEnabled()" that can be called to see if XML is currently supported. All APIs will return errors, false, or nothing when XML isn't enabled.
Converted all locations that used XML over to using the host XML implementation.
Added target.xml support to debugserver. Extended the XML register format to work for LLDB by including extra attributes and elements where needed. This allows the target.xml to replace the qRegisterInfo packets and allows us to fetch all register info in a single packet.
<rdar://problem/21090173>
llvm-svn: 238224
Diffstat (limited to 'lldb/tools/debugserver/source/RNBRemote.h')
-rw-r--r-- | lldb/tools/debugserver/source/RNBRemote.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/tools/debugserver/source/RNBRemote.h b/lldb/tools/debugserver/source/RNBRemote.h index 0d99465f507..c58c32b1b02 100644 --- a/lldb/tools/debugserver/source/RNBRemote.h +++ b/lldb/tools/debugserver/source/RNBRemote.h @@ -127,6 +127,7 @@ public: restore_register_state, // '_G' speed_test, // 'qSpeedTest:' set_detach_on_error, // 'QSetDetachOnError:' + query_transfer, // 'qXfer:' unknown_type } PacketEnum; @@ -234,6 +235,7 @@ public: rnb_err_t HandlePacket_SetEnableAsyncProfiling(const char *p); rnb_err_t HandlePacket_WatchpointSupportInfo (const char *p); rnb_err_t HandlePacket_qSpeedTest (const char *p); + rnb_err_t HandlePacket_qXfer (const char *p); rnb_err_t HandlePacket_stop_process (const char *p); rnb_err_t HandlePacket_QSetDetachOnError (const char *p); |