www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2022/01/17/13:59:17

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 048613858034
Authentication-Results: sourceware.org; dmarc=none (p=none dis=none)
header.from=dronecode.org.uk
Authentication-Results: sourceware.org; spf=none smtp.mailfrom=dronecode.org.uk
Authentication-Results: btinternet.com;
auth=pass (PLAIN) smtp.auth=jonturney AT btinternet DOT com;
bimi=skipped
X-SNCR-Rigid: 61A69BAC052AD9F4
X-Originating-IP: [81.129.146.209]
X-OWM-Source-IP: 81.129.146.209 (GB)
X-OWM-Env-Sender: jonturney AT btinternet DOT com
X-VadeSecure-score: verdict=clean score=0/300, class=clean
X-RazorGate-Vade: gggruggvucftvghtrhhoucdtuddrgedvvddruddugdduvddtucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuueftkffvkffujffvgffngfevqffopdfqfgfvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpeflohhnucfvuhhrnhgvhicuoehjohhnrdhtuhhrnhgvhiesughrohhnvggtohguvgdrohhrghdruhhkqeenucggtffrrghtthgvrhhnpeffkeeigfdujeehteduiefgjeeltdelgeelteekudetfedtffefhfeufefgueettdenucfkphepkedurdduvdelrddugeeirddvtdelnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehhvghloheplgduledvrdduieekrddurddutdefngdpihhnvghtpeekuddruddvledrudegiedrvddtledpmhgrihhlfhhrohhmpehjohhnrdhtuhhrnhgvhiesughrohhnvggtohguvgdrohhrghdruhhkpdhnsggprhgtphhtthhopedvpdhrtghpthhtoheptgihghifihhnsegthihgfihinhdrtghomhdprhgtphhtthhopehtrghkrghshhhirdihrghnohesnhhifhhthidrnhgvrdhjph
X-RazorGate-Vade-Verdict: clean 0
X-RazorGate-Vade-Classification: clean
Message-ID: <abd04421-8a46-3437-f86e-3fd1c1754a58@dronecode.org.uk>
Date: Mon, 17 Jan 2022 18:57:05 +0000
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.5.0
Subject: Re: GDB looses pgrp setting in the terminal for debugged process
after break.
To: Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>,
The Cygwin Mailing List <cygwin AT cygwin DOT com>
References: <20210126121402 DOT 167ba4ca0d7d8b747feede9f AT nifty DOT ne DOT jp>
<20210205193457 DOT cecc47a50865a59dc3f7041f AT nifty DOT ne DOT jp>
<20210206002654 DOT 17dca1106da610b2f7b7b077 AT nifty DOT ne DOT jp>
<20210503011625 DOT 8656a8f7187120ace0e375ef AT nifty DOT ne DOT jp>
<6a422002-189a-baf8-5b65-fa822a0803a7 AT dronecode DOT org DOT uk>
<20210507173340 DOT 9741cec791c2bfbb9edee4f2 AT nifty DOT ne DOT jp>
From: Jon Turney <jon DOT turney AT dronecode DOT org DOT uk>
In-Reply-To: <20210507173340.9741cec791c2bfbb9edee4f2@nifty.ne.jp>
X-Spam-Status: No, score=-3570.9 required=5.0 tests=BAYES_00, FORGED_SPF_HELO,
KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, NICE_REPLY_A, RCVD_IN_DNSWL_NONE,
RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_NONE,
TXREP autolearn=no autolearn_force=no version=3.4.4
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

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 Tue, 26 Jan 2021 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)


-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019