[Lldb-commits] [lldb] [lldb] Adjust TestDataFormatterCpp.py for arm64e (PR #195168)
Alex Langford via lldb-commits
lldb-commits at lists.llvm.org
Thu Apr 30 12:48:41 PDT 2026
https://github.com/bulbazord created https://github.com/llvm/llvm-project/pull/195168
For two of these cases, the initial open parenthesis comes much earlier. Compare:
```
arm64e:
(actual=0x00000001000006c4 a.out`IUseCharStar::member_func(int) ...
arm64:
(a.out`IUseCharStar::member_func(int) ...
```
For the third case, the address was not the last part of the output string. It looks more like this:
```
virt_member_func_ptr = 0x00000000000000005b3f0001047c46e0
(actual=0x00000001047c46e0 ...
```
>From 3beca4e8a1d9027d64a2411eb9fd0af2d56af994 Mon Sep 17 00:00:00 2001
From: Alex Langford <alangford at apple.com>
Date: Thu, 30 Apr 2026 12:45:38 -0700
Subject: [PATCH] [lldb] Adjust TestDataFormatterCpp.py for arm64e
For two of these cases, the initial open parenthesis comes much
earlier. Compare:
```
arm64e:
(actual=0x00000001000006c4 a.out`IUseCharStar::member_func(int) ...
arm64:
(a.out`IUseCharStar::member_func(int) ...
```
For the third case, the address was not the last part of the output
string. It looks more like this:
```
virt_member_func_ptr = 0x00000000000000005b3f0001047c46e0
(actual=0x00000001047c46e0 ...
```
---
.../data-formatter-cpp/TestDataFormatterCpp.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lldb/test/API/functionalities/data-formatter/data-formatter-cpp/TestDataFormatterCpp.py b/lldb/test/API/functionalities/data-formatter/data-formatter-cpp/TestDataFormatterCpp.py
index 0717e49137da7..b24f49d7f647d 100644
--- a/lldb/test/API/functionalities/data-formatter/data-formatter-cpp/TestDataFormatterCpp.py
+++ b/lldb/test/API/functionalities/data-formatter/data-formatter-cpp/TestDataFormatterCpp.py
@@ -318,14 +318,14 @@ def test_mem_func_ptr_formats(self):
self.expect(
"frame variable member_func_ptr",
patterns=["member_func_ptr = 0x[0-9a-z]+"],
- substrs=["(a.out`IUseCharStar::member_func(int) at main.cpp:61)"],
+ substrs=["a.out`IUseCharStar::member_func(int) at main.cpp:61)"],
)
self.expect(
"frame variable ref_to_member_func_ptr",
patterns=["ref_to_member_func_ptr = 0x[0-9a-z]+"],
- substrs=["(a.out`IUseCharStar::member_func(int) at main.cpp:61)"],
+ substrs=["a.out`IUseCharStar::member_func(int) at main.cpp:61)"],
)
self.expect(
"frame variable virt_member_func_ptr",
- patterns=["virt_member_func_ptr = 0x[0-9a-z]+$"],
+ patterns=["virt_member_func_ptr = 0x[0-9a-z]+"],
)
More information about the lldb-commits
mailing list