[all-commits] [llvm/llvm-project] 536783: Support GDB remote g packet partial read

Muhammad Omair Javaid via All-commits all-commits at lists.llvm.org
Tue Mar 2 04:24:46 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 536783170f0843838b2d521f8a0331f174f60e3c
      https://github.com/llvm/llvm-project/commit/536783170f0843838b2d521f8a0331f174f60e3c
  Author: Muhammad Omair Javaid <omair.javaid at linaro.org>
  Date:   2021-03-02 (Tue, 02 Mar 2021)

  Changed paths:
    M lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.cpp
    M lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.h
    A lldb/test/API/functionalities/gdb_remote_client/TestPartialGPacket.py

  Log Message:
  -----------
  Support GDB remote g packet partial read

GDB remote protocol does not specify length of g packet for register read. It depends on remote to include all or exclude certain registers from g packet. In case a register or set of registers is not included as part of g packet then we should fall back to p packet for reading all registers excluded from g packet by remote. This patch adds support for above feature and adds a test-case for the same.

Reviewed By: labath

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




More information about the All-commits mailing list