Page MenuHomePhabricator

Propagate FORK events back to client
Needs ReviewPublic

Authored by irinasha on Sep 26 2022, 6:34 AM.

Details

Reviewers
jingham
labath
Summary

We want to allow the client to detect when the process forks and to attach the debugger to a newly created process. For this we propose to implement two options in LLDB*: to propagate fork/vfork events to the client and to automatically detach the child/parent in a _stopped_ state:

  • stop-on-clone-events (false/true);
  • detach-keeps-stopped (false/true).

The client (IDE in our case) can then decide to attach another debugger to that process.

  • By default these options will be disabled, so the default behavior won't change.

Diff Detail

Event Timeline

irinasha created this revision.Sep 26 2022, 6:34 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 26 2022, 6:34 AM
Herald added a subscriber: emaste. · View Herald Transcript
irinasha requested review of this revision.Sep 26 2022, 6:34 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 26 2022, 6:34 AM
irinasha retitled this revision from Propagate FORK events back to client to Propagate FORK events back to client (WIP).Sep 26 2022, 6:36 AM
irinasha added a subscriber: werat.
irinasha changed the visibility from "Public (No Login Required)" to "No One".Sep 26 2022, 7:46 AM
irinasha updated this revision to Diff 462949.Sep 26 2022, 9:49 AM
irinasha updated this revision to Diff 463099.Sep 26 2022, 11:33 PM

Failed to apply the patch

irinasha changed the visibility from "No One" to "Public (No Login Required)".Sep 26 2022, 11:39 PM
irinasha retitled this revision from Propagate FORK events back to client (WIP) to Propagate FORK events back to client.Sep 30 2022, 1:14 AM
irinasha added reviewers: jingham, labath.