From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id LImjHb1vYGrBHSQAWB0awg (envelope-from ) for ; Wed, 22 Jul 2026 03:22:37 -0400 Authentication-Results: simark.ca; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=mail.ru header.i=@mail.ru header.a=rsa-sha256 header.s=mail4 header.b=px1dctdP; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 3A3CF1E09B; Wed, 22 Jul 2026 03:22:37 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-5.1 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (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 ABFB21E09B for ; Wed, 22 Jul 2026 03:22:35 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3EFAB4BA2E0B for ; Wed, 22 Jul 2026 07:22:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3EFAB4BA2E0B Authentication-Results: sourceware.org; dkim=fail reason="signature verification failed" (2048-bit key, unprotected) header.d=mail.ru header.i=@mail.ru header.a=rsa-sha256 header.s=mail4 header.b=px1dctdP Received: from send276.i.mail.ru (send276.i.mail.ru [95.163.59.115]) by sourceware.org (Postfix) with ESMTPS id E2C7D4BA2E2B for ; Wed, 22 Jul 2026 07:21:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E2C7D4BA2E2B Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=mail.ru Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mail.ru ARC-Filter: OpenARC Filter v1.0.0 sourceware.org E2C7D4BA2E2B Authentication-Results: sourceware.org; arc=none smtp.remote-ip=95.163.59.115 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1784704916; cv=none; b=P81TxiFwBdc0xNv7nBGeIRpGmYkwDjy0l9sW5/l2mhbndoSh5zzaxnroSF0IbfjGzGj6dPEROIID5p4eLeerKyD7jNT4BaHjFqM3X384GlMlprBnivb14y9/XC18NLkwtybAiicjRP9dHH87A3k+LyaTLVjxB0MR9vrTws/TlDw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1784704916; c=relaxed/simple; bh=5yU3T/riAQt5+ksBdis3eoA+ZsDJbo/Ek7ZtLwybds0=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=WwnW5gflxX6lXuLS2hbBUh6+e3Zh3wRmBu/MUg0sjtUIl2t5xvQfQUu2ZwumgTfBe5EUTruwKF+GMRYnDgGQ5FW6H4pAkLUaRkqnb57yo50a0PRgoIuvvvlNS8E046CIpQElMjzdQyTfJzEU3RWebLMB802eeZLMUYpqhyk9D6c= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=mail.ru header.i=@mail.ru header.a=rsa-sha256 header.s=mail4 header.b=px1dctdP DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E2C7D4BA2E2B DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru; s=mail4; h=Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject:Cc: To:From:From:Sender:Reply-To:To:Cc:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive: X-Cloud-Ids:Disposition-Notification-To; bh=bbgNsgcxPSfqJoYt+KEWIv8RtMKsS8SocEYK5lfsWGA=; t=1784704916; x=1784794916; b=px1dctdPervzdQFoZqFeo+HYvauH1vxOz2TdfbNhxJHbzANbuRp9kiJmdcBQZHoYl1i8ZnO4ZXw dL+ef3yKx+Y1MGGY6ET4NGYMdhroNyyamyXcCQLnFTYQembv4njxd8PHpCJ1IVdcizVMAvS/6OqRG yhRtn4LN/TAmKchxEhrfVDLZyD7WtjjBLvfZff9XFbkrP/sLuYf28fJBQTjm7UbMsnSbfhF71OFxg K8gNI9SxQqDqTjoy83+x4AA1DqzNnwVFU5VTBjrG3S4ZfAvdmZmFVzLenH9o14WI+hivuHFAJB+Gh ulTsAlbp7YJUWEVieFoYisFFMW5cgO0UeoXQ==; Received: by exim-smtp-86556fd747-z2kwn with esmtpa (envelope-from ) id 1wmRH7-00000000J5c-3a2R; Wed, 22 Jul 2026 10:21:54 +0300 From: kurku To: gdb-patches@sourceware.org Cc: kurku Subject: [RFC][PATCH 0/2][PR cli/34409] Fix SIGTTIN due to readline macroinput. Date: Wed, 22 Jul 2026 10:21:35 +0300 Message-ID: <20260722072137.1397888-1-sandovin@mail.ru> X-Mailer: git-send-email 2.54.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Authentication-Results: exim-smtp-86556fd747-z2kwn; auth=pass smtp.auth=sandovin@mail.ru smtp.mailfrom=sandovin@mail.ru X-Mailru-Src: smtp X-7564579A: B8F34718100C35BD X-77F55803: 4F1203BC0FB41BD93ED3C6BF6FFA701FBF353A30C2EA510A8006DDB73367F39B182A05F53808504087C9CBE46726F02B3DE06ABAFEAF670543E7D5C685D92566E766CFF18C03850C4C00A71A96C76CBF X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE7D6964C9E324ABA58EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F7900637AC83A81C8FD4AD23D82A6BABE6F325AC2E85FA5F3EDFCBAA7353EFBB5533756628E6EC474EC8852739897D2058AB11FD4863CA96B33FCBE581CA716931FB11108EEF46B7454FC60B9742502CCDD46D0DB4B51A2BAB7FBE05117882F4460429724CE54428C33FAD305F5C1EE8F4F765FCCC99A7B061B94ED7A471835C12D1D9774AD6D5ED66289B52BA9C0B312567BB23117882F446042972877693876707352026055571C92BF10FCB629EEF1311BF91D2E47CDBA5A96583BA9C0B312567BB2376E601842F6C81A19E625A9149C048EE26055571C92BF10FF41620B44FB51B7DD8FC6C240DEA76429C9F4D5AE37F343AA9539A8B242431040A6AB1C7CE11FEE36089696B24BB1D196136E347CC761E07C4224003CC836476E2F48590F00D11D6E2021AF6380DFAD1A18204E546F3947CB11811A4A51E3B096D1867E19FE1407959CC434672EE6371089D37D7C0E48F6C8AA50765F79006379EA3FD4BFC112DD9EFF80C71ABB335746BA297DBC24807EABDAD6C7F3747799A X-C1DE0DAB: 0D63561A33F958A5816516C18F5A5AD25002B1117B3ED69689581D80BFF8B620BFF4097FFC9E796F823CB91A9FED034534781492E4B8EEADC0E9CD5C8D04A9D0C79554A2A72441328621D336A7BC284946AD531847A6065A535571D14F44ED41 X-C8649E89: 1C3962B70DF3F0AD73CAD6646DEDE1918E10F71CB4DF9F9677DD89D51EBB774225B6776AC983F447FC0B9F89525902EE6F57B2FD27647F25E66C117BDB76D659C697AE87FEDAAFB4338069C2F7E622568F669B6BAB1A9D639E3B8F70C945E67B518F81916650295AB8341EE9D5BE9A0AAF22AD911971DB882B754F01ED50E44F5953CAE2C659B65E8CD93680B12512CF4C41F94D744909CEAE0DAB166F7E912C0B4C1C554206E9ACF0A6D2C91ED28CB6 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu53w8ahmwBjZKM/YPHZyZHvz5uv+WouB9+ObcCpyrx6l7KImUglyhkEat/+ysWwi0gdhEs0JGjl6ggRWTy1haxBpVdbIX1nthFXMZebaIdHP2ghjoIc/363UZI6Kf1ptIMVWmxowtcrDwUmpJohPwbJUw= X-Mailru-Sender: DA7A906D9E8450B159FDEA386FB503F70737A6C0358062148E7FD94675F335656DEED8096197D260FD08481A78328DC6B4EC7484A32A15E91269F1ADE14071E628A0B4807B87142D548AED299D6609AA574ADF34F9FF3B2B5FEEDEB644C299C0ED14614B50AE0675 X-Mras: Ok X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org The two patches fix (gdb:cli/34409): [gdb receives SIGTTIN when user uses readline macros] It adds support of any kind of readline macros: the one defined by the user in his ~/.inputrc or the one, for example, recorded at a debug scene with Cx-( ... Cx-) Cx-e -- into gdb. [2] I managed to do so by a slight extension of the current event-loop over file descriptors. Now, apart from direct events like the ones from poll api, file descriptors also can specify that they have a `synthetic input` pending associated with them. [1] It was easy to integrate this new behavior into select round robin, but not poll. So I reworked the poll's round robin so that it looks like select's version now. I ran the test-suite via `make check -j$(nproc)` on x86-64 Linux under `guix shell -D gdb clang-toolchain`. There were unexpected failures fluctuating around 456 in gdb, but no visible regressions between the original master and my patches on top of it. I have not previously completed any FSF copyright assignment This is my first contribution to the project. kurku (2): gdb: event-loop: Rework poll's version of round robin gdb: Fix readline macros hazards. gdb/event-top.c | 35 +++++++++++ gdb/ui.h | 3 + gdbsupport/event-loop.cc | 131 +++++++++++++++++++++++++++++---------- gdbsupport/event-loop.h | 4 ++ 4 files changed, 139 insertions(+), 34 deletions(-) -- 2.43.0