[all-commits] [llvm/llvm-project] a34541: [lldb] [Process] Watch for fork/vfork notifications

Michał Górny via All-commits all-commits at lists.llvm.org
Thu Apr 8 09:50:15 PDT 2021


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

  Changed paths:
    A lldb/include/lldb/Host/linux/Host.h
    M lldb/source/Host/linux/Host.cpp
    M lldb/source/Plugins/Process/FreeBSD/NativeProcessFreeBSD.cpp
    M lldb/source/Plugins/Process/FreeBSD/NativeProcessFreeBSD.h
    M lldb/source/Plugins/Process/FreeBSD/NativeRegisterContextFreeBSD.h
    M lldb/source/Plugins/Process/FreeBSD/NativeRegisterContextFreeBSD_arm64.cpp
    M lldb/source/Plugins/Process/FreeBSD/NativeRegisterContextFreeBSD_arm64.h
    M lldb/source/Plugins/Process/FreeBSD/NativeRegisterContextFreeBSD_x86_64.cpp
    M lldb/source/Plugins/Process/FreeBSD/NativeRegisterContextFreeBSD_x86_64.h
    M lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
    M lldb/source/Plugins/Process/Linux/NativeProcessLinux.h
    M lldb/source/Plugins/Process/NetBSD/NativeProcessNetBSD.cpp
    M lldb/source/Plugins/Process/NetBSD/NativeProcessNetBSD.h
    M lldb/test/API/functionalities/gdb_remote_client/TestMultiprocess.py
    A lldb/test/Shell/Subprocess/Inputs/fork.cpp
    A lldb/test/Shell/Subprocess/clone-follow-parent-wp.test
    A lldb/test/Shell/Subprocess/clone-follow-parent.test
    A lldb/test/Shell/Subprocess/fork-follow-parent-wp.test
    A lldb/test/Shell/Subprocess/fork-follow-parent.test
    A lldb/test/Shell/Subprocess/vfork-follow-parent-wp.test
    A lldb/test/Shell/Subprocess/vfork-follow-parent.test

  Log Message:
  -----------
  [lldb] [Process] Watch for fork/vfork notifications

Watch for fork(2)/vfork(2) (also fork/vfork-style clone(2) on Linux)
notifications and explicitly detach the forked child process, and add
initial tests for these cases.  The code covers FreeBSD, Linux
and NetBSD process plugins.  There is no new user-visible functionality
provided -- this change lays foundations over subsequent work on fork
support.

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




More information about the All-commits mailing list