[Lldb-commits] [lldb] [LLDB] On AArch64, reconfigure register context first (PR #70742)

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Tue Oct 31 04:58:08 PDT 2023


DavidSpickett wrote:

> Parse the expedited registers once, reconfigure then parse them again. On the assumption that no scalable register will ever be in the expedited set.

This works but due to more pessimism in: https://github.com/llvm/llvm-project/blob/a6dabed3483c60469ff53d51622b22efc4b7b7d2/lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.cpp#L765

We actually invalidate vg and svg before reading them again. I will check if this is still needed.

So, as silly as it sounds this might be the way to go:
* Parse expedited registers.
* Reconfigure if needed and invalidate all registers.
* Parse expedited registers again.

https://github.com/llvm/llvm-project/pull/70742


More information about the lldb-commits mailing list