Issue 139025
Summary [lldb] - Send startDebugging request on fork
Labels new issue
Assignees
Reporter jasonwilliams
    This is a follow on from both:
- https://github.com/llvm/llvm-project/issues/127952
- https://github.com/vadimcn/codelldb/issues/317

LLDB supports both [follow-fork-mode](https://github.com/llvm/llvm-project/commit/4a2a947317bf702178bf1af34dffd0d280d49970) and the dap-based [startDebuggingRequest](https://github.com/llvm/llvm-project/commit/227b2180eb2be94986d63c75c144f88be13fc52f). However it doesn’t look like a request is sent back to the debug client if a fork or vfork happens. This would allow the client to attach to the child process.

My thinking is, even if following the parent is selected, a startDebugging request would be sent to the client, so a new debug session can be attached to the child process, and the client can debug both processes. This would be a cleaner setup that trying to support multi process debugging.

CC @jimingham @mgorny 
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to