[Lldb-commits] [lldb] [lldb] Support arm64e in the expression evaluator (PR #186001)

Daniil Kovalev via lldb-commits lldb-commits at lists.llvm.org
Tue Mar 17 12:52:49 PDT 2026


================

----------------
kovdan01 wrote:

Thanks!

Yes, new tests cover the case I had in mind, but there are some nuances I'd like to highlight.

1. I suppose that `int (*fp)(int, int) = &add; fp(2, 3);` might be folded to just `add(2, 3)` when compiling the expression, and we'll just have a direct call, which is not what we want to test. Can we have a slightly more complex test to prevent such optimizations? For example, we might have some function in main.c which accepts another function by pointer and executes that. And in this test, we might just have smth like `caller(add, 2, 3)`.

2. The default key for function pointer signing is IA, which is process-independent. So, current version of `test_debuggee_signed_pointer` would not actually be able to catch a situation when we are executing the expression under lldb, not under inferior. I suppose that it should be possible to modify the test by adding an explicit `__ptrauth(1, 0, 0)` to the declaration of `global_fp`: 1 stands for IB key, which is process-specific. This should make the test actually catching the inter-process key mismatch.

3. I'm not sure that the test should still be named `ptr-auth-fixups/TestPtrAuthFixups.py` since the tests are now not limited to fixups.


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


More information about the lldb-commits mailing list