[all-commits] [llvm/llvm-project] b03e70: [lldb] [gdb-remote] Refactor getting remote regs t...

Michał Górny via All-commits all-commits at lists.llvm.org
Thu Sep 23 08:22:10 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b03e701c145365ba339657ead54a2e0cc5c02776
      https://github.com/llvm/llvm-project/commit/b03e701c145365ba339657ead54a2e0cc5c02776
  Author: Michał Górny <mgorny at moritz.systems>
  Date:   2021-09-23 (Thu, 23 Sep 2021)

  Changed paths:
    M lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
    M lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h

  Log Message:
  -----------
  [lldb] [gdb-remote] Refactor getting remote regs to use local vector

Refactor remote register getters to collect them into a local
std::vector rather than adding them straight into DynamicRegisterInfo.
The purpose of this change is to lay groundwork for switching value_regs
and invalidate_regs to use local LLDB register numbers rather than
remote numbers.

Differential Revision: https://reviews.llvm.org/D110025


  Commit: 6fbed33d4a7de2229c40e6318f223092d3a23848
      https://github.com/llvm/llvm-project/commit/6fbed33d4a7de2229c40e6318f223092d3a23848
  Author: Michał Górny <mgorny at moritz.systems>
  Date:   2021-09-23 (Thu, 23 Sep 2021)

  Changed paths:
    M lldb/source/Plugins/Process/Utility/DynamicRegisterInfo.cpp
    M lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.cpp
    M lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp

  Log Message:
  -----------
  [lldb] [gdb-remote] Use local regnos for value_regs/invalidate_regs

Switch the gdb-remote client logic to use local (LLDB) register numbers
in value_regs/invalidate_regs rather than remote regnos. This involves
translating regnos received from lldb-server.

Differential Revision: https://reviews.llvm.org/D110027


Compare: https://github.com/llvm/llvm-project/compare/b240a2980b6e...6fbed33d4a7d


More information about the All-commits mailing list