Skip to content

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 3c0342ac3c83499773db6508172b354fc8d48bdd)
(cherry picked from commit 9cf59f4dca98889144cb719b7b27d24ca9dd7d1a)
@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