[all-commits] [llvm/llvm-project] 446b61: [lldb] [gdb-remote] Send interrupt packets from as...

Michał Górny via All-commits all-commits at lists.llvm.org
Wed Aug 3 09:40:46 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 446b61cff4ea0cb7e7fcc5e0fec7bc749d379b08
      https://github.com/llvm/llvm-project/commit/446b61cff4ea0cb7e7fcc5e0fec7bc749d379b08
  Author: Michał Górny <mgorny at moritz.systems>
  Date:   2022-08-03 (Wed, 03 Aug 2022)

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

  Log Message:
  -----------
  [lldb] [gdb-remote] Send interrupt packets from async thread

Refactor the mechanism for sending interrupt packets to send them
from async thread (i.e. the same thread that sends the continue packet
preceding them and that waits for the response), rather than from
the thread requesting the interrupt.  This is going to become especially
important when using the vCtrlC packet as part of the non-stop protocol,
as -- unlike the simple ^c sent in the all-stop mode -- this packet
involves an explicit reply.

Suggested by Pavel Labath in D126614.

Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.llvm.org/D131075




More information about the All-commits mailing list