[Lldb-commits] [lldb] [lldb] Improved formatting of 'register read' command. (PR #188049)

via lldb-commits lldb-commits at lists.llvm.org
Sat Jun 20 08:56:06 PDT 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results

The build failed before running any tests. Click on a failure below to see the details.

<details>
<summary>[code=1] tools/lldb/source/Commands/CMakeFiles/lldbCommands.dir/CommandObjectRegister.cpp.obj</summary>

```
FAILED: [code=1] tools/lldb/source/Commands/CMakeFiles/lldbCommands.dir/CommandObjectRegister.cpp.obj
sccache C:\clang\clang-msvc\bin\clang-cl.exe  /nologo -TP -DCLANG_BUILD_STATIC -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_GLIBCXX_ASSERTIONS -D_HAS_EXCEPTIONS=0 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -IC:\_work\llvm-project\llvm-project\build\tools\lldb\source\Commands -IC:\_work\llvm-project\llvm-project\lldb\source\Commands -IC:\_work\llvm-project\llvm-project\lldb\include -IC:\_work\llvm-project\llvm-project\build\tools\lldb\include -IC:\_work\llvm-project\llvm-project\build\include -IC:\_work\llvm-project\llvm-project\llvm\include -IC:\_work\llvm-project\llvm-project\llvm\..\clang\include -IC:\_work\llvm-project\llvm-project\build\tools\lldb\..\clang\include -IC:\_work\llvm-project\llvm-project\lldb\source -IC:\_work\llvm-project\llvm-project\build\tools\lldb\source /DWIN32 /D_WINDOWS   /Zc:inline /Zc:__cplusplus /Oi /Brepro /bigobj /permissive- -Werror=unguarded-availability-new /W4  -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported /Gw -Wno-vla-extension /O2 /Ob2  -std:c++17 -MD   -wd4018 -wd4068 -wd4150 -wd4201 -wd4251 -wd4521 -wd4530 -wd4589 -UNDEBUG /EHs-c- /GR- /showIncludes /Fotools\lldb\source\Commands\CMakeFiles\lldbCommands.dir\CommandObjectRegister.cpp.obj /Fdtools\lldb\source\Commands\CMakeFiles\lldbCommands.dir\lldbCommands.pdb -c -- C:\_work\llvm-project\llvm-project\lldb\source\Commands\CommandObjectRegister.cpp
C:\_work\llvm-project\llvm-project\lldb\source\Commands\CommandObjectRegister.cpp(180,44): error: invalid operands to binary expression ('OptionValueBoolean' and 'std::nullptr_t')
180 |           m_command_options.alternate_name != nullptr, primitive_only);
|           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~
C:\_work\llvm-project\llvm-project\lldb\include\lldb/Core/Address.h(521,6): note: candidate function not viable: no known conversion from 'OptionValueBoolean' to 'const Address' for 1st argument
521 | bool operator!=(const Address &lhs, const Address &rhs);
|      ^          ~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\lldb\include\lldb/Target/StackID.h(82,6): note: candidate function not viable: no known conversion from 'OptionValueBoolean' to 'const StackID' for 1st argument
82 | bool operator!=(const StackID &lhs, const StackID &rhs);
|      ^          ~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\lldb\include\lldb/Symbol/SymbolContext.h(508,6): note: candidate function not viable: no known conversion from 'OptionValueBoolean' to 'const SymbolContext' for 1st argument
508 | bool operator!=(const SymbolContext &lhs, const SymbolContext &rhs);
|      ^          ~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\lldb\include\lldb/Symbol/SymbolContext.h(511,6): note: candidate function not viable: no known conversion from 'OptionValueBoolean' to 'const SymbolContextList' for 1st argument
511 | bool operator!=(const SymbolContextList &lhs, const SymbolContextList &rhs);
|      ^          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\lldb\include\lldb/Utility/Scalar.h(261,6): note: candidate function not viable: no known conversion from 'OptionValueBoolean' to 'const Scalar' for 1st argument
261 | bool operator!=(const Scalar &lhs, const Scalar &rhs);
|      ^          ~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\lldb\include\lldb/Utility/UserID.h(64,13): note: candidate function not viable: no known conversion from 'OptionValueBoolean' to 'const UserID' for 1st argument
64 | inline bool operator!=(const UserID &lhs, const UserID &rhs) {
|             ^          ~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\lldb\include\lldb/Utility/ArchSpec.h(574,6): note: candidate function not viable: no known conversion from 'OptionValueBoolean' to 'const ArchSpec' for 1st argument
574 | bool operator!=(const ArchSpec &lhs, const ArchSpec &rhs);
|      ^          ~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\lldb\include\lldb/Host/Host.h(76,13): note: candidate function not viable: no known conversion from 'OptionValueBoolean' to 'WaitStatus' for 1st argument
76 | inline bool operator!=(WaitStatus a, WaitStatus b) { return !(a == b); }
|             ^          ~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\lldb\include\lldb/Symbol/CompilerType.h(569,6): note: candidate function not viable: no known conversion from 'OptionValueBoolean' to 'const CompilerType' for 1st argument
569 | bool operator!=(const CompilerType &lhs, const CompilerType &rhs);
|      ^          ~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\lldb\include\lldb/Symbol/CompilerDecl.h(107,6): note: candidate function not viable: no known conversion from 'OptionValueBoolean' to 'const CompilerDecl' for 1st argument
107 | bool operator!=(const CompilerDecl &lhs, const CompilerDecl &rhs);
|      ^          ~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\lldb\include\lldb/Symbol/CompilerDeclContext.h(118,6): note: candidate function not viable: no known conversion from 'OptionValueBoolean' to 'const CompilerDeclContext' for 1st argument
118 | bool operator!=(const CompilerDeclContext &lhs, const CompilerDeclContext &rhs);
|      ^          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\lldb\include\lldb/Target/Process.h(347,13): note: candidate function not viable: no known conversion from 'OptionValueBoolean' to 'const ProcessModID' for 1st argument
347 | inline bool operator!=(const ProcessModID &lhs, const ProcessModID &rhs) {
|             ^          ~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\lldb\source\Commands\CommandObjectRegister.cpp(256,46): error: invalid operands to binary expression ('OptionValueBoolean' and 'std::nullptr_t')
256 |             m_command_options.alternate_name != nullptr);
|             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~
C:\_work\llvm-project\llvm-project\lldb\include\lldb/Core/Address.h(521,6): note: candidate function not viable: no known conversion from 'OptionValueBoolean' to 'const Address' for 1st argument
521 | bool operator!=(const Address &lhs, const Address &rhs);
|      ^          ~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\lldb\include\lldb/Target/StackID.h(82,6): note: candidate function not viable: no known conversion from 'OptionValueBoolean' to 'const StackID' for 1st argument
82 | bool operator!=(const StackID &lhs, const StackID &rhs);
|      ^          ~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\lldb\include\lldb/Symbol/SymbolContext.h(508,6): note: candidate function not viable: no known conversion from 'OptionValueBoolean' to 'const SymbolContext' for 1st argument
508 | bool operator!=(const SymbolContext &lhs, const SymbolContext &rhs);
|      ^          ~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\lldb\include\lldb/Symbol/SymbolContext.h(511,6): note: candidate function not viable: no known conversion from 'OptionValueBoolean' to 'const SymbolContextList' for 1st argument
511 | bool operator!=(const SymbolContextList &lhs, const SymbolContextList &rhs);
|      ^          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\lldb\include\lldb/Utility/Scalar.h(261,6): note: candidate function not viable: no known conversion from 'OptionValueBoolean' to 'const Scalar' for 1st argument
261 | bool operator!=(const Scalar &lhs, const Scalar &rhs);
|      ^          ~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\lldb\include\lldb/Utility/UserID.h(64,13): note: candidate function not viable: no known conversion from 'OptionValueBoolean' to 'const UserID' for 1st argument
64 | inline bool operator!=(const UserID &lhs, const UserID &rhs) {
|             ^          ~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\lldb\include\lldb/Utility/ArchSpec.h(574,6): note: candidate function not viable: no known conversion from 'OptionValueBoolean' to 'const ArchSpec' for 1st argument
574 | bool operator!=(const ArchSpec &lhs, const ArchSpec &rhs);
|      ^          ~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\lldb\include\lldb/Host/Host.h(76,13): note: candidate function not viable: no known conversion from 'OptionValueBoolean' to 'WaitStatus' for 1st argument
76 | inline bool operator!=(WaitStatus a, WaitStatus b) { return !(a == b); }
|             ^          ~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\lldb\include\lldb/Symbol/CompilerType.h(569,6): note: candidate function not viable: no known conversion from 'OptionValueBoolean' to 'const CompilerType' for 1st argument
569 | bool operator!=(const CompilerType &lhs, const CompilerType &rhs);
|      ^          ~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\lldb\include\lldb/Symbol/CompilerDecl.h(107,6): note: candidate function not viable: no known conversion from 'OptionValueBoolean' to 'const CompilerDecl' for 1st argument
107 | bool operator!=(const CompilerDecl &lhs, const CompilerDecl &rhs);
|      ^          ~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\lldb\include\lldb/Symbol/CompilerDeclContext.h(118,6): note: candidate function not viable: no known conversion from 'OptionValueBoolean' to 'const CompilerDeclContext' for 1st argument
118 | bool operator!=(const CompilerDeclContext &lhs, const CompilerDeclContext &rhs);
|      ^          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\_work\llvm-project\llvm-project\lldb\include\lldb/Target/Process.h(347,13): note: candidate function not viable: no known conversion from 'OptionValueBoolean' to 'const ProcessModID' for 1st argument
347 | inline bool operator!=(const ProcessModID &lhs, const ProcessModID &rhs) {
|             ^          ~~~~~~~~~~~~~~~~~~~~~~~
2 errors generated.
```
</details>

If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.

https://github.com/llvm/llvm-project/pull/188049


More information about the lldb-commits mailing list