[Lldb-commits] [PATCH] D69667: [lldb] [Process/NetBSD] Add register info for missing register sets
Michał Górny via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Thu Oct 31 09:23:53 PDT 2019
mgorny created this revision.
mgorny added reviewers: labath, krytarowski, JDevlieghere.
Add info for all register sets supported in NetBSD, particularly for all
registers 'expected' by LLDB. This is necessary in order to fix
python_api/lldbutil/iter/TestRegistersIterator.py test that currently
fails due to missing names of register sets (None).
This copies fpreg descriptions from Linux, and combines Linux' AVX
and MPX registers into a single XState group, to fit NetBSD register
group design. Technically, we do not support MPX registers
at the moment but gdb-remote insists on passing their errors anyway,
and if we do not include it in any group, they end up in a separate
anonymous group that breaks the test.
While at it, swap the enums for XState and DBRegs to match register set
ordering.
This also adds a few consts to the lldb-x86-register-enums.h to provide
more consistency between user registers and debug registers.
https://reviews.llvm.org/D69667
Files:
lldb/source/Plugins/Process/NetBSD/NativeRegisterContextNetBSD_x86_64.cpp
lldb/source/Plugins/Process/NetBSD/NativeRegisterContextNetBSD_x86_64.h
lldb/source/Plugins/Process/Utility/lldb-x86-register-enums.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D69667.227293.patch
Type: text/x-patch
Size: 5646 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20191031/9ffd265d/attachment-0001.bin>
More information about the lldb-commits
mailing list