[PATCH] Cygwin: Fix putting inferior in foreground (fix input)

Tom Tromey tom@tromey.com
Tue Feb 27 14:13:10 GMT 2024


>>>>> "Pedro" == Pedro Alves <pedro@palves.net> writes:

Pedro> The problem is that inflow.c:child_terminal_inferior is failing to put
Pedro> the inferior in the foreground, because we're passing down the
Pedro> inferior's Windows PID instead of the Cygwin PID to Cygwin tcsetpgrp.

Thanks.  My first thought was that this should really be
target-specific, but I dug into the code and I see that this is only
called from inf_child_target -- i.e., it is.  I wonder if a bunch of
that code could be moved out of inflow.c and into inf-child.c.

Approved-By: Tom Tromey <tom@tromey.com>

Tom


More information about the Gdb-patches mailing list