Skip to content

Support dynamic value object pointing to host address #9989

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Feb 10, 2025

Conversation

augusto2112
Copy link

commit 93d7ce0 (HEAD -> cp-02-10, a/cp-02-10)
Author: Augusto Noronha [email protected]
Date: Fri Feb 7 10:29:13 2025 -0800

[lldb][NFC] Replace usage of GetLocalBufferSize with GetLocalBuffer

(cherry picked from commit dd87dffd7e63bfd09506bcea6fea3a0f1cb3ea31)

commit 7351df5
Author: Augusto Noronha [email protected]
Date: Thu Feb 6 19:10:57 2025 -0800

[lldb] Make GetDynamicTypeAndAddress() use host address if available

If GetDynamicTypeAndAddress_Value cannot get back to the inferior address,
but does have a host address and buffer that fits the dynamic type,
return that.

(cherry picked from commit 829f2bc38dcca5d560b18c48a32b4df83fa2ef37)

commit 5067ac6
Author: Augusto Noronha [email protected]
Date: Fri Jan 17 16:33:11 2025 -0800

[lldb] Add more expression evaluation resilience tests

Add more resilience tests with a public superclass that is generic and
inherits from an objc type and a non-public subclass with a property we
access on the test. The tests vary in which modules the types exist (one
resilient executable, one resilient library and non resilient
executable, 2 resilient libraries and one resilient executable).

(cherry picked from commit e94df2667b92c9098334d12f63bce88265a42f8e)

commit e71cb6d
Author: Augusto Noronha [email protected]
Date: Tue Jan 7 17:17:51 2025 -0800

[lldb] Add an expression evaluation test for modules built with
-enable-testing and -enable-library-evolution

-enable-testing affects the visibility of types, which together with
-enable-library-evolution may cause the compiler embedded in LLDB to
generate incorrect code on expression evaluation.

(cherry picked from commit 10d72fa9b9040bd4fe17ac3afbf538fc5f5f6321)

-enable-testing and -enable-library-evolution

-enable-testing affects the visibility of types, which together with
-enable-library-evolution may cause the compiler embedded in LLDB to
generate incorrect code on expression evaluation.

(cherry picked from commit 10d72fa)
Add more resilience tests with a public superclass that is generic and
inherits from an objc type and a non-public subclass with a property we
access on the test. The tests vary in which modules the types exist (one
resilient executable, one resilient library and non resilient
executable, 2 resilient libraries and one resilient executable).

(cherry picked from commit e94df26)
If GetDynamicTypeAndAddress_Value cannot get back to the inferior address,
but does have a host address and buffer that fits the dynamic type,
return that.

(cherry picked from commit 829f2bc)
@augusto2112 augusto2112 merged commit 28184f5 into swiftlang:next Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant