[Bug 48371] New: LLDB needs a better way of expressing unavailable registers (test_register_commands failure)

Bug ID 48371
Summary LLDB needs a better way of expressing unavailable registers (test_register_commands failure)
Product lldb
Version unspecified
Hardware PC
OS Linux
Status NEW
Severity enhancement
Priority P
Component All Bugs
Assignee lldb-dev@lists.llvm.org
Reporter mgorny@gentoo.org
CC emaste@freebsd.org, jdevlieghere@apple.com, llvm-bugs@lists.llvm.org

LLDB can currently only hide unavailable registers via manipulating the global
register count, i.e. hide the last registers on the list.  This doesn't work
for FreeBSD and NetBSD, and could also be problematic as new CPUs emerge (or
possibly already is).

Unavailable registers not being hidden cause test_register_commands to fail:

FAIL: test_register_commands (TestRegisters.RegisterCommandsTestCase)
   Test commands related to registers, in particular vector registers.