From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id +VA1ARewJWhvxCMAWB0awg (envelope-from ) for ; Thu, 15 May 2025 05:12:55 -0400 Authentication-Results: simark.ca; dkim=pass (2048-bit key; unprotected) header.d=starynkevitch.net header.i=@starynkevitch.net header.a=rsa-sha256 header.s=gm1 header.b=TkbVLkva; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id E2D931E10E; Thu, 15 May 2025 05:12:54 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-9.1 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL, RCVD_IN_VALIDITY_SAFE autolearn=ham autolearn_force=no version=4.0.1 Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 126E81E092 for ; Thu, 15 May 2025 05:12:52 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1703D3858424 for ; Thu, 15 May 2025 09:12:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1703D3858424 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=starynkevitch.net header.i=@starynkevitch.net header.a=rsa-sha256 header.s=gm1 header.b=TkbVLkva Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::227]) by sourceware.org (Postfix) with ESMTPS id 58C24385840E for ; Thu, 15 May 2025 09:12:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 58C24385840E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=starynkevitch.net Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=starynkevitch.net ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 58C24385840E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2001:4b98:dc4:8::227 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1747300327; cv=none; b=DVxfdtxocw0gehSnoaLyc/TXTrNyBnHmwelYWANmQipXJpp0L0BuhkR+Sbif3oGUjtRuZL1esJuUikyb/7Q5lTi57lvdl0kdXhBx46AIL5yEdDIjYAEitzz4/9X1BUX1rRdQ9H2Y2Zm3o/ZbAOrJ/DIVjdcPPV/lW5w+Kj9pubI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1747300327; c=relaxed/simple; bh=5S+BQaF3DKuq4+w22uP4tTNReVG3j2dmhi6r8WkZwW0=; h=DKIM-Signature:Message-ID:Subject:From:To:Date:MIME-Version; b=XXhjqMP3yRuBYeS8NEgbmd8YNANLlR3wm69wKpmb5IY7i6f/IjNgIHpyOptOn9SBP0RDyMy/YPadLdO9nF/2nnR7/XqOUloJmm06m+ItJO2b2RxuyFXwRrhpF9JVFtdQQhv+0sDRkRneXZ052ctHcr6CAMKBxKYP/A04Q2irTFo= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 58C24385840E Received: by mail.gandi.net (Postfix) with ESMTPSA id EE528441A3; Thu, 15 May 2025 09:12:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=starynkevitch.net; s=gm1; t=1747300326; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=WEm2LWQ8CKDqzGuruPzg7KjfWexSlzD50sftzjkk428=; b=TkbVLkvaQoixwou6rmgjd7gcI4fyBOMTVhSPeT11fxWmfYkG2SORP78OrV6xs98rQzoq6R azEa7rOHiowaJTBFne11+8GnVBWCng+DjaPZPUDQOhU/m62US6VyQ7a0MrdoDJKJwmy0yD lWe5tJj0wAT2zwK3CZmitjcwHYpvKMbW20U1W8CGPH9xGzOlia/TISWYYwAugCNjsUitiI B+EgDSIcXMyqMccmsiNV2fEozV5dtPcP+WWxQMzlNAZMLwIjaHgbhE1zvcCMk4iEeMEs9d hD+afy5+oB1g6cWYH55FtAg1oFAnTt5zyu9b4UXRzKvU3Kv2oB6tkmYwXYcf/g== Message-ID: Subject: GDB process (on Linux) cooperating with the debugged process (some particular pthread on it) From: Basile Starynkevitch To: Gdb@sourceware.org Cc: team@refpersys.org Date: Thu, 15 May 2025 11:12:05 +0200 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.56.1-1 MIME-Version: 1.0 X-GND-State: clean X-GND-Score: 0 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdeftdelgeejucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecunecujfgurhepkffuhffvvefftgfgfgggsehtqhertddtreejnecuhfhrohhmpeeurghsihhlvgcuufhtrghrhihnkhgvvhhithgthhcuoegsrghsihhlvgesshhtrghrhihnkhgvvhhithgthhdrnhgvtheqnecuggftrfgrthhtvghrnhepgefhjeevtdelhfeuieetfeekvedvheffteelieffgfefteejkeevvdeufeeuudevnecuffhomhgrihhnpegrrhigihhvrdhorhhgpdhsthgrrhihnhhkvghvihhttghhrdhnvghtpdhgihhthhhusgdrtghomhenucfkphepvdgrtddumegvtdgrmedvfhefmeehgegrtdemvdejuggumeeigegsugemugdulehfmeelfhdujeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpedvrgdtudemvgdtrgemvdhffeemheegrgdtmedvjeguugemieegsggumeguudelfhemlehfudejpdhhvghloheprhhimhhskhhirdhlvghsohhurhhspdhmrghilhhfrhhomhepsggrshhilhgvsehsthgrrhihnhhkvghvihhttghhrdhnvghtpdhnsggprhgtphhtthhopedvpdhrtghpthhtohepifgusgesshhouhhrtggvfigrrhgvrdhorhhgpdhrtghpthhtohepthgvrghmsehrvghfphgvrhhshihsrdhorhhg X-GND-Sasl: basile@starynkevitch.net X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-bounces~public-inbox=simark.ca@sourceware.org Sender: "Gdb" Hello all, Is it possible for the debugged process (for me the RefPerSys inference eng= ine, GPL licensed, see below) which has several threads to send GDB commands or interact with the debugger process. This on Linux only (often x86-64, kernel 6.12.27); some event loop of the debugged process could run in a particular pthread (which I don't want to d= ebug with such a weird GDB). In general help on debugging a multithreaded Linux process is welcome. Can = I stop (or GDB step) only one thread and let the others run? The debugged program is compiled by GCC and I probably could install the so= urce code of most libraries it is linked to. (If writing some simple GCC compiler plugin is required I might consider it= , see https://arxiv.org/abs/1109.0779 ...) Regards. --=20 Basile STARYNKEVITCH 8 rue de la Fa=C3=AFencerie http://starynkevitch.net/= Basile/ =20 92340 Bourg-la-Reine https://github.com/bstarynk France https://github.com/RefPerSys/RefPerSy= s