Recognize `addressing_bits` kv in stop reply packet
authorJason Molenda <jason@molenda.com>
Thu, 4 May 2023 20:13:30 +0000 (13:13 -0700)
committerJason Molenda <jason@molenda.com>
Thu, 4 May 2023 20:14:10 +0000 (13:14 -0700)
commit4fac08ff1dcd02c89c677365b10921399caf79df
tree47f38efb5a0b195a11be0ae61298971172b97cb7
parent09ceb4729f1ca8781718d41b7876b68820baadba
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
lldb/docs/lldb-gdb-remote.txt
lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp