[Lldb-commits] [lldb] [lldb] Accept legacy register index overflow diagnostic (PR #233764)
via lldb-commits
lldb-commits at lists.llvm.org
Tue Oct 20 02:39:14 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-lldb
Author: Bar Soloveychik (barsolo2000)
<details>
<summary>Changes</summary>
[ARM builder was failing ](https://lab.llvm.org/buildbot/#/builders/18/builds/27896)after I merged https://github.com/llvm/llvm-project/pull/224147 because:
because `TestXMLRegisterUnion.py` expected the legacy expression parser to report oversized vector indexes with array index, but on 32-bit ARM the index `4294967296` overflows long during parsing first, so LLDB reports invalid index expression `""` instead. The command still fails correctly; only the test’s expected diagnostic was too specific.
---
Full diff: https://github.com/llvm/llvm-project/pull/233764.diff
1 Files Affected:
- (modified) lldb/test/API/functionalities/gdb_remote_client/TestXMLRegisterUnion.py (+12-2)
``````````diff
diff --git a/lldb/test/API/functionalities/gdb_remote_client/TestXMLRegisterUnion.py b/lldb/test/API/functionalities/gdb_remote_client/TestXMLRegisterUnion.py
index 36571f054b60dc..0e74a1cfb25e31 100644
--- a/lldb/test/API/functionalities/gdb_remote_client/TestXMLRegisterUnion.py
+++ b/lldb/test/API/functionalities/gdb_remote_client/TestXMLRegisterUnion.py
@@ -747,11 +747,21 @@ def test_invalid_union_member_paths(self):
try:
for command in [
"register read v0[9].f32",
- "register read v0[4294967296]",
"v $v0[9].f32",
- "v $v0[4294967296]",
]:
self.expect(command, error=True, substrs=["array index"])
+ for command in [
+ "register read v0[4294967296]",
+ "v $v0[4294967296]",
+ ]:
+ self.expect(
+ command,
+ error=True,
+ patterns=[
+ r"(array index 4294967296 is not valid|"
+ r"invalid index expression \"\")"
+ ],
+ )
for command in [
"register read u0.raw[64]",
"register read u0.raw[64-64]",
``````````
</details>
https://github.com/llvm/llvm-project/pull/233764
More information about the lldb-commits
mailing list