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/source/Plugins/Process/Utility/DynamicRegisterInfo.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/source/Plugins/Process/Utility/DynamicRegisterInfo.h')
-rw-r--r-- | lldb/source/Plugins/Process/Utility/DynamicRegisterInfo.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lldb/source/Plugins/Process/Utility/DynamicRegisterInfo.h b/lldb/source/Plugins/Process/Utility/DynamicRegisterInfo.h index 128d8987397..1b99e2f1e70 100644 --- a/lldb/source/Plugins/Process/Utility/DynamicRegisterInfo.h +++ b/lldb/source/Plugins/Process/Utility/DynamicRegisterInfo.h @@ -26,12 +26,14 @@ class DynamicRegisterInfo public: DynamicRegisterInfo (); - DynamicRegisterInfo(const lldb_private::StructuredData::Dictionary &dict, lldb::ByteOrder byte_order); + DynamicRegisterInfo(const lldb_private::StructuredData::Dictionary &dict, + const lldb_private::ArchSpec &arch); virtual ~DynamicRegisterInfo (); - size_t SetRegisterInfo(const lldb_private::StructuredData::Dictionary &dict, lldb::ByteOrder byte_order); + size_t SetRegisterInfo(const lldb_private::StructuredData::Dictionary &dict, + const lldb_private::ArchSpec &arch); void AddRegister (lldb_private::RegisterInfo ®_info, @@ -40,7 +42,7 @@ public: lldb_private::ConstString &set_name); void - Finalize (); + Finalize (const lldb_private::ArchSpec &arch); size_t GetNumRegisters() const; |