[Lldb-commits] [PATCH] D145566: [lldb] Add RegisterFlags class
David Spickett via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Wed Mar 8 03:09:39 PST 2023
DavidSpickett created this revision.
Herald added a subscriber: kristof.beyls.
Herald added a project: All.
DavidSpickett requested review of this revision.
Herald added a project: LLDB.
Herald added a subscriber: lldb-commits.
This models the "flags" node from GDB's target XML:
https://sourceware.org/gdb/onlinedocs/gdb/Target-Description-Format.html
This node is used to describe the fields of registers like cpsr on AArch64.
RegisterFlags is a class that contains a list of register fields.
These fields will be extracted from the XML sent by the remote.
We assume that there is at least one field, that the fields are
sorted in descending order and do not overlap. That will be
enforced by the XML processor (the GDB client code in our case).
The fields may not cover the whole register. To account for this
RegisterFields will add anonymous padding fields so that
sizeof(all fields) == sizeof(register). This will save a lot
of hasssle later.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D145566
Files:
lldb/include/lldb/Target/RegisterFlags.h
lldb/source/Target/CMakeLists.txt
lldb/source/Target/RegisterFlags.cpp
lldb/unittests/Target/CMakeLists.txt
lldb/unittests/Target/RegisterFlagsTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D145566.503292.patch
Type: text/x-patch
Size: 13199 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20230308/55b3376a/attachment-0001.bin>
More information about the lldb-commits
mailing list