[all-commits] [llvm/llvm-project] 5b04eb: [lldb] [MainLoop] Support "pending callbacks", to ...

Michał Górny via All-commits all-commits at lists.llvm.org
Tue Jun 21 10:47:48 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5b04eb23ae1a4db074b7ddc2e0c136d008fb5bc7
      https://github.com/llvm/llvm-project/commit/5b04eb23ae1a4db074b7ddc2e0c136d008fb5bc7
  Author: Michał Górny <mgorny at moritz.systems>
  Date:   2022-06-21 (Tue, 21 Jun 2022)

  Changed paths:
    M lldb/include/lldb/Host/MainLoop.h
    M lldb/include/lldb/Host/MainLoopBase.h
    M lldb/source/Host/common/MainLoop.cpp
    M lldb/unittests/Host/MainLoopTest.cpp

  Log Message:
  -----------
  [lldb] [MainLoop] Support "pending callbacks", to be called once

Support adding a "pending callback" to the main loop, that will be
called once after all the pending events are processed.  This can be
e.g. to defer destroying the process instance until its exit is fully
processed, as suggested in D127500.

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


  Commit: d6b3de72566f874f198b2ddcecbec53e95c623fe
      https://github.com/llvm/llvm-project/commit/d6b3de72566f874f198b2ddcecbec53e95c623fe
  Author: Michał Górny <mgorny at moritz.systems>
  Date:   2022-06-21 (Tue, 21 Jun 2022)

  Changed paths:
    M lldb/include/lldb/Host/Debug.h
    M lldb/source/Plugins/Process/FreeBSD/NativeThreadFreeBSD.cpp
    M lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp
    M lldb/source/Plugins/Process/NetBSD/NativeThreadNetBSD.cpp
    M lldb/source/Plugins/Process/Windows/Common/NativeProcessWindows.cpp
    M lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp
    M lldb/test/API/tools/lldb-server/TestGdbRemoteFork.py
    M lldb/tools/debugserver/source/RNBRemote.cpp

  Log Message:
  -----------
  [lldb] [llgs] Fix signo sent with fork/vfork/vforkdone events

Fix ThreadStopInfo struct to include the signal number for all events.
Since signo was not included in the details for fork, vfork
and vforkdone stops, the code incidentally referenced the wrong union
member, resulting in wrong signo being sent.

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


  Commit: 313d9c1519b7f93b3dcb9ae1d535adf7b0da821d
      https://github.com/llvm/llvm-project/commit/313d9c1519b7f93b3dcb9ae1d535adf7b0da821d
  Author: Michał Górny <mgorny at moritz.systems>
  Date:   2022-06-21 (Tue, 21 Jun 2022)

  Changed paths:
    M lldb/test/API/tools/lldb-server/TestGdbRemoteFork.py

  Log Message:
  -----------
  [lldb] [llgs] Refactor fork/vfork tests, verify state

Refactor the fork and vfork tests to reuse the code better, avoid
unnecessary regexps and avoid unnecessary conversions between
hex-strings and integers.

Verify the server state after detaching.  In particular, verify that
the detached process' PID/TID pair is no longer valid,
and that the correct process remains running.

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


  Commit: 13eb5b3455fbeb959ab36974e17ba03222d6a4d0
      https://github.com/llvm/llvm-project/commit/13eb5b3455fbeb959ab36974e17ba03222d6a4d0
  Author: Michał Górny <mgorny at moritz.systems>
  Date:   2022-06-21 (Tue, 21 Jun 2022)

  Changed paths:
    M lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp
    M lldb/test/API/tools/lldb-server/TestGdbRemoteFork.py

  Log Message:
  -----------
  [lldb] [llgs] Add a test for detach-all packet

Add a test verifying that plain 'D' packet correctly detaches all
processes.

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


Compare: https://github.com/llvm/llvm-project/compare/9f499d9d73ed...13eb5b3455fb


More information about the All-commits mailing list