[Lldb-commits] [PATCH] D128504: debugserver: spawn process in its own process group

Alessandro Arzilli via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Fri Jun 24 09:22:44 PDT 2022


aarzilli added a comment.

In D128504#3608530 <https://reviews.llvm.org/D128504#3608530>, @jingham wrote:

> Why is it desirable to have the debugger not see signals sent to the process?
>
> Jim

Regardless of this patch, it is always possible to send signals directly to the target process. This is only about signals generated by the terminal.
Suppose you are debugging a program that does something in response to ^C: you will have to use kill in a different terminal to send the signal to the target process, because pressing ^C will send a signal to both debugserver and the target process, causing debugserver to die in response. I think it should be possible to set up the target process so that it has full control of its terminal, as it would be if it had been run outside of a debugger.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D128504/new/

https://reviews.llvm.org/D128504



More information about the lldb-commits mailing list