[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 16:02:38 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:

Ah, makes sense. I was focussed on `PrivateSetRegisterValue` and missed the extraction bit. Thanks!

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


More information about the lldb-commits mailing list