[lldb-dev] [Bug 48371] New: LLDB needs a better way of expressing unavailable registers (test_register_commands failure)
via lldb-dev
lldb-dev at lists.llvm.org
Thu Dec 3 06:25:05 PST 2020
https://bugs.llvm.org/show_bug.cgi?id=48371
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 at lists.llvm.org
Reporter: mgorny at gentoo.org
CC: emaste at freebsd.org, jdevlieghere at apple.com,
llvm-bugs at 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.
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/usr/home/mgorny/llvm-project/lldb/packages/Python/lldbsuite/test/decorators.py",
line 136, in wrapper
return func(*args, **kwargs)
File
"/usr/home/mgorny/llvm-project/lldb/packages/Python/lldbsuite/test/decorators.py",
line 136, in wrapper
return func(*args, **kwargs)
File
"/usr/home/mgorny/llvm-project/lldb/test/API/commands/register/register/register_command/TestRegisters.py",
line 41, in test_register_commands
substrs=['registers were unavailable'], matching=False)
File
"/usr/home/mgorny/llvm-project/lldb/packages/Python/lldbsuite/test/lldbtest.py",
line 2573, in expect
self.fail(log_msg)
AssertionError: Ran command:
"register read -a"
Got output:
General Purpose Registers:
[...]
Memory Protection Extensions:
6 registers were unavailable.
[...]
Not expecting sub string: "registers were unavailable" (was found)
At least one expected register is unavailable.
Config=x86_64-/home/mgorny/llvm-project/_build/bin/clang
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20201203/b8127007/attachment.html>
More information about the lldb-dev
mailing list