[all-commits] [llvm/llvm-project] 6eca4f: [lldb] [Process/NetBSD] Add register info for miss...

Michał Górny via All-commits all-commits at lists.llvm.org
Mon Nov 4 10:37:48 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 6eca4f46912a8318d7a5888506c3f26c20bdc012
      https://github.com/llvm/llvm-project/commit/6eca4f46912a8318d7a5888506c3f26c20bdc012
  Author: Michał Górny <mgorny at gentoo.org>
  Date:   2019-11-04 (Mon, 04 Nov 2019)

  Changed paths:
    M lldb/packages/Python/lldbsuite/test/commands/register/register/register_command/TestRegisters.py
    M lldb/source/Plugins/Process/NetBSD/NativeRegisterContextNetBSD_x86_64.cpp
    M lldb/source/Plugins/Process/NetBSD/NativeRegisterContextNetBSD_x86_64.h
    M lldb/source/Plugins/Process/Utility/lldb-x86-register-enums.h

  Log Message:
  -----------
  [lldb] [Process/NetBSD] Add register info for missing register sets

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.

Differential Revision: https://reviews.llvm.org/D69667




More information about the All-commits mailing list