Skip to content

Conversation

jasonmolenda
Copy link

Recognize addressing_bits kv in stop reply packet

If a remote stub provides the addressing_bits kv pair in the stop reply packet, update the Process address masks with that value as it possibly changes during the process runtime. This is an unusual situation, most likely a JTAG remote stub and some very early startup code that is setting up the page tables. Nearly all debug sessions will have a single address mask that cannot change during the lifetime of a Process.

Differential Revision: https://reviews.llvm.org/D149803 rdar://61900565

(cherry picked from commit 4fac08f)

If a remote stub provides the addressing_bits kv pair in
the stop reply packet, update the Process address masks with
that value as it possibly changes during the process runtime.
This is an unusual situation, most likely a JTAG remote stub
and some very early startup code that is setting up the page
tables.  Nearly all debug sessions will have a single address
mask that cannot change during the lifetime of a Process.

Differential Revision: https://reviews.llvm.org/D149803
rdar://61900565

(cherry picked from commit 4fac08f)
@jasonmolenda
Copy link
Author

@swift-ci please test

@jasonmolenda jasonmolenda merged commit 4471e44 into swiftlang:swift/release/5.9 May 5, 2023
@jasonmolenda jasonmolenda deleted the addressing_bits-in-stop-reply-packet2-59 branch May 5, 2023 00:12
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