[all-commits] [llvm/llvm-project] 9367b5: [lldb] [test] Fix qRegisterInfo lldb-server tests ...

Michał Górny via All-commits all-commits at lists.llvm.org
Mon Nov 23 00:32:41 PST 2020


  Branch: refs/heads/temp-test-main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9367b57dadb7a8515fa454cb4bb8e4cc45bf57d2
      https://github.com/llvm/llvm-project/commit/9367b57dadb7a8515fa454cb4bb8e4cc45bf57d2
  Author: Michał Górny <mgorny at moritz.systems>
  Date:   2020-11-23 (Mon, 23 Nov 2020)

  Changed paths:
    M lldb/test/API/tools/lldb-server/TestLldbGdbServer.py

  Log Message:
  -----------
  [lldb] [test] Fix qRegisterInfo lldb-server tests to handle missing registers

Fix qRegisterInfo tests to handle Exx error response when querying
registers that are not supported on the platform in question.  This
is how FreeBSD and NetBSD platforms reporting missing registers right
now, and there certainly is value from verifying the remaining
registers.

This change fixes the test for FreeBSD but NetBSD has other regressions
that still need to be researched.

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


  Commit: 8018e7b447dacb37a520fe989ab42c0586730961
      https://github.com/llvm/llvm-project/commit/8018e7b447dacb37a520fe989ab42c0586730961
  Author: Michał Górny <mgorny at moritz.systems>
  Date:   2020-11-23 (Mon, 23 Nov 2020)

  Changed paths:
    M lldb/source/Plugins/Process/FreeBSDRemote/NativeRegisterContextFreeBSD_x86_64.cpp
    M lldb/test/API/commands/register/register/register_command/TestRegisters.py
    M lldb/test/API/tools/lldb-server/TestLldbGdbServer.py

  Log Message:
  -----------
  [lldb] [Process/FreeBSDRemote] Fix regset names and related tests

Restore Linux-alike regset names for AVX/MPX registers
as TestLldbGdbServer seems to depend on them.  At the same time, fix
TestRegisters to be aware that they are not available on FreeBSD
and NetBSD, at least until we figure out a better way of reporting
unsupported register sets.

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


Compare: https://github.com/llvm/llvm-project/compare/8f2f9a82e2cc...8018e7b447da


More information about the All-commits mailing list