Skip to content

[lldb] Add an extra optional did_read_live_memory to Target::ReadMemory and [lldb] Implement LLDBMemoryReader::readRemoteAddressImpl #11016

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

Conversation

augusto2112
Copy link

@augusto2112 augusto2112 commented Jul 17, 2025

[lldb] Add an extra optional did_read_live_memory to Target::ReadMemory

Target::ReadMemory may or may not read live memory, but whether it did
read from live memory or from the filecache is opaque to callers. Add an
extra out parameter to indicate whether live memory was read or not.

[lldb] Implement LLDBMemoryReader::readRemoteAddressImpl

Use the new out parameter on Target::ReadMemory to set the correct
remote address space in readRemoteAddressImpl.

rdar://148361743

@augusto2112
Copy link
Author

swiftlang/swift#83123
@swift-ci test

1 similar comment
@augusto2112
Copy link
Author

swiftlang/swift#83123
@swift-ci test

@augusto2112
Copy link
Author

23:41:05  Failed Tests (1):
23:41:05    lldb-unit :: Expression/./ExpressionTests/DWARFExpressionMockProcessTest/DW_OP_piece_file_addr

@augusto2112
Copy link
Author

swiftlang/swift#83123
@swift-ci test

Target::ReadMemory may or may not read live memory, but whether it did
read from live memory or from the filecache is opaque to callers. Add an
extra out parameter to indicate whether live memory was read or not.
Use the new out parameter on Target::ReadMemory to set the correct
remote address space in readRemoteAddressImpl.

rdar://148361743
(cherry picked from commit 3c0342a)
@augusto2112 augusto2112 force-pushed the fix-read-remote-address-6.2 branch from 01c948b to f5ba18f Compare July 17, 2025 15:23
@augusto2112
Copy link
Author

swiftlang/swift#83123
@swift-ci test

@augusto2112
Copy link
Author

swiftlang/swift#83123
@swift-ci test Windows

@augusto2112 augusto2112 marked this pull request as ready for review July 18, 2025 18:02
@augusto2112 augusto2112 requested a review from a team as a code owner July 18, 2025 18:02
@augusto2112 augusto2112 changed the title Fix read remote address 6.2 [lldb] Implement LLDBMemoryReader::readRemoteAddressImpl Jul 18, 2025
@augusto2112 augusto2112 changed the title [lldb] Implement LLDBMemoryReader::readRemoteAddressImpl [lldb] Add an extra optional did_read_live_memory to Target::ReadMemory and [lldb] Implement LLDBMemoryReader::readRemoteAddressImpl Jul 18, 2025
@augusto2112 augusto2112 requested a review from fredriss July 18, 2025 18:03
@fredriss fredriss merged commit 7cb92a7 into swiftlang:swift/release/6.2 Jul 18, 2025
3 checks passed
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.

2 participants