[all-commits] [llvm/llvm-project] d1556e: [lldb][lldb-server] Enable sending RegisterFlags a...
David Spickett via All-commits
all-commits at lists.llvm.org
Thu Oct 26 00:33:43 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d1556e5efbf0cb671c0f6e403fc1eaf9153f8713
https://github.com/llvm/llvm-project/commit/d1556e5efbf0cb671c0f6e403fc1eaf9153f8713
Author: David Spickett <david.spickett at linaro.org>
Date: 2023-10-26 (Thu, 26 Oct 2023)
Changed paths:
M lldb/include/lldb/Target/RegisterFlags.h
M lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp
M lldb/source/Target/RegisterFlags.cpp
M lldb/unittests/Target/RegisterFlagsTest.cpp
Log Message:
-----------
[lldb][lldb-server] Enable sending RegisterFlags as XML (#69951)
This adds ToXML methods to encode RegisterFlags and its fields into XML
according to GDB's target XML format:
https://sourceware.org/gdb/onlinedocs/gdb/Target-Description-Format.html#Target-Description-Format
lldb-server does not use libXML to build XML, so this follows the
existing code that uses strings. Indentation is used so the result is
still human readable.
```
<flags id=\"Foo\" size=\"4\">
<field name=\"abc\" start=\"0\" end=\"0\"/>
</flags>
```
This is used by lldb-server when building target XML, though no one sets
any fields yet. That'll come in a later commit.
More information about the All-commits
mailing list