GDB looses pgrp setting in the terminal for debugged process after break.

Jon Turney jon.turney@dronecode.org.uk
Mon Jan 17 18:57:05 GMT 2022


On 07/05/2021 09:33, Takashi Yano via Cygwin wrote:
> On Thu, 6 May 2021 21:31:27 +0100
> Jon Turney wrote:
>> On 02/05/2021 17:16, Takashi Yano via Cygwin wrote:
>>> On Sat, 6 Feb 2021 00:26:54 +0900
>>> Takashi Yano wrote:
>>>> On Fri, 5 Feb 2021 19:34:57 +0900
>>>> Takashi Yano wrote:
>>>>> On 2021年1月26日 12:14:02 +0900
>>>>> Takashi Yano wrote:
>>>>>> Hi GDB maintainer,
>>>> Sorry! I meant to go back and look at this, but I forgot.
>>>> Thanks for reminding me!
>> Thanks for replying.

I've included this patch in the gdb-11.22-1 test package.
I don't think this patch is upstreamable as is.
I guess I'd like something which stores both winpid and cygwin pid,
where the winpid is only used inside windows-nat with Win32 API calls, 
and the cygwin pid is the pid used by core code in POSIX API calls.
Unfortunately, writing that seems complex, as the 
CW_WINPID_TO_CYGWIN_PID mapping can't be done immediately after 
CreateProcess(), as some code in the inferior needs to run first (since 
to perform the mapping, it uses links created by 
pinfo::create_winpid_symlink(), called in crt0)


More information about the Cygwin mailing list

AltStyle によって変換されたページ (->オリジナル) /