[Lldb-commits] [lldb] [lldb][AArch64] Move register info reconfigure into architecture plugin (PR #70950)

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Wed Nov 1 09:28:19 PDT 2023


================
@@ -1612,6 +1612,22 @@ bool ProcessGDBRemote::CalculateThreadStopInfo(ThreadGDBRemote *thread) {
   return false;
 }
 
+void ProcessGDBRemote::ParseExpeditedRegisters(
+    ExpeditedRegisterMap &expedited_register_map, ThreadSP thread_sp) {
+  ThreadGDBRemote *gdb_thread = static_cast<ThreadGDBRemote *>(thread_sp.get());
+  RegisterContextSP gdb_reg_ctx_sp(gdb_thread->GetRegisterContext());
+
+  for (const auto &pair : expedited_register_map) {
+    StringExtractor reg_value_extractor(pair.second);
+    WritableDataBufferSP buffer_sp(
----------------
JDevlieghere wrote:

Orthogonal to this patch, but does this buffer need to be writable? It looks like it's "necessary" because `PrivateSetRegisterValue` takes a non-const reference to the buffer, but does it actually need to modify it?

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


More information about the lldb-commits mailing list