From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id WV9ZEpaMKWro6j8AWB0awg (envelope-from ) for ; Wed, 10 Jun 2026 12:11:02 -0400 Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=gGOttkfg; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 43AF11E0A3; Wed, 10 Jun 2026 12:11:02 -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.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,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 827DD1E070 for ; Wed, 10 Jun 2026 12:11:01 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1FE5C48FBCAE for ; Wed, 10 Jun 2026 16:11:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1FE5C48FBCAE DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1781107861; bh=lRG9UThEvcXcaIzyxkLxWyzuvVTjOaATCMknmmyeamc=; h=To:Cc:Subject:In-Reply-To:References:Date:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=gGOttkfg9tDANzsDYgAdp4+0bU0VnrbbFd/+iApMuNUSMrTiNEqcX8ozvW+tsWzQy NQPBMmiwuWYdLdbdrkCAiUS49fd84MrtFfqdYlDpZ7/2a3dxBo0nvFZwLZOgLoVqD5 XxMguhKCyUkk4dSotDs2Azu5CY5CDj0Fa4EizyuA= Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTP id BDBAA4C31869 for ; Wed, 10 Jun 2026 16:10:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org BDBAA4C31869 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org BDBAA4C31869 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1781107826; cv=none; b=aQ+R1DSVhYhIA2nBl+TiPli61Zk8jVWQXiWRALnGiMIAfked8/R+i3v/E8y9WHYZ2n9O/V3zVWbmV+3yRpfDt6KBTXgI3wgxswTGBnrsqeU/XLVJiv7ORO9UlrrvHRIZ1Bi7skeZ+h9PgtlVz1WIrs/5ST/+dbq926AeqgWG+ao= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1781107826; c=relaxed/simple; bh=mgLUSHAti7d0v+x1Gu6t5OgbzPRrsDiYTBHsgwx9yH8=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=BNUvYo+W+EIfSHw6L2UVk6j0NannLzA3z1BhrXcMuI/iXGVWkVJ6iUKGUOVK9RrwlHfVdt9YzoPlWiu09ncVgER8FkmVd7CFIGx9JTFLlBZmIYy4zk48i2Y6gcPoSJafKSWIkbtjm+XYWy+yBBxeZXW7kmOvAJxGw01zLmVIMHw= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=aSR1z7G9 DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BDBAA4C31869 Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-695-6BS300WdOKOaamKfA-dR_Q-1; Wed, 10 Jun 2026 12:10:23 -0400 X-MC-Unique: 6BS300WdOKOaamKfA-dR_Q-1 X-Mimecast-MFC-AGG-ID: 6BS300WdOKOaamKfA-dR_Q_1781107823 Received: by mail-wm1-f70.google.com with SMTP id 5b1f17b1804b1-490d3f03883so25533175e9.1 for ; Wed, 10 Jun 2026 09:10:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781107823; x=1781712623; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=lRG9UThEvcXcaIzyxkLxWyzuvVTjOaATCMknmmyeamc=; b=rTVagpxNh0HnExuFszhJzOjNbY6ntVR+VOlqto32ZLXozj3Q5SJAa5pKfDNcp5ZsrU 7N3hhrAoyVEJh6UVg9BCXLEnNtR/TvC9Fhk7zyHJvpgaP0VpnNEQnkvL0g7M1NmsN7lh ue9DP2nDIYM/0lGAc6PjNoA1F7LIvCeAglYFcO4BNDKHzcr1aCBJYefK4O+i3n+OYlpY 0uDrNE4MPJ+jE6v5Q/PIA/duZE5ColpEAyLrde8fZqvEG5IKenViAFD1k/WTmG79e/ya 2GSsj3zJ7H2Q/zGPCE0z3ai2r6uMNrHXeYDpxw6IEuVB68QIXdfPP5Fu6Q9skbOYPfnG 14Gg== X-Gm-Message-State: AOJu0Yw3DR/jPXDeGDQpgUoP8nUWwDdc5cZqHBJseG5jnwW61xL7tjrz +0qN0cVaItXYHr1iY/0mPMox7/N6p5WhLSiym0W6jP/958djBcWII6xP3aQ3CsYxsXEAh7Dwlgb /snZ1GJQ/hp0au+qRf9RItygE6Z/xR4vlliud3OUS13emZPbzE5OH X-Gm-Gg: Acq92OG/a0ifTa51dweaUZqSK6KDjBE5OJLLRo+TdVkICPFSQJNNsLPw9/QlLnfERjw WMQS19DITEZ4wOUqHrAADKBx6234TM0YABCEuJkpw1zP07kne3cCJsSTwSlk2bdXwBQnrK7XLOI wR1jbmczee04usQD8bZRNEeMane2MkRJaOrwy5PLfLcGORir+hd7YEVzdPuyVK+B/s9SS/51tun wOgVyAww4yAkUbfloaXzIS84hxacjTT1O5tT4trSmrarHvDCPQiB/Kk05VCHnRfocC9DPNmR3Ic A2Gu2Ik5k8b9psRmxH9Ib0qwffQM/0llBtZf23wAl7xaFM8HHOkl2QarIk+qkTVCI32HocRuy5x HknhiK/j4uuc/s94aNsVprsYI0yi04iNhBBmtup/PTCC5P39+zHE= X-Received: by 2002:a05:600c:a00b:b0:490:b58b:a8cc with SMTP id 5b1f17b1804b1-490c25d208bmr389421405e9.29.1781107822625; Wed, 10 Jun 2026 09:10:22 -0700 (PDT) X-Received: by 2002:a05:600c:a00b:b0:490:b58b:a8cc with SMTP id 5b1f17b1804b1-490c25d208bmr389420865e9.29.1781107822158; Wed, 10 Jun 2026 09:10:22 -0700 (PDT) Received: from localhost (19.81.93.209.dyn.plus.net. [209.93.81.19]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-490bc3b5b06sm520195215e9.3.2026.06.10.09.10.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jun 2026 09:10:21 -0700 (PDT) To: Matthieu Longo , Tom Tromey Cc: gdb@sourceware.org Subject: Re: RFC: prototype of C extensions using the Python limited API In-Reply-To: References: <21479c1d-3a9a-4ae2-bc1a-5dc19871f275@arm.com> Date: Wed, 10 Jun 2026 17:10:20 +0100 Message-ID: <87v7bqpeab.fsf@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: v-vYIiz_ZRQEM1hmq2dGsf-ykRkbK28Y_OE_g34Mc2Q_1781107823 X-Mimecast-Originator: redhat.com Content-Type: text/plain 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: , From: Andrew Burgess via Gdb Reply-To: Andrew Burgess Errors-To: gdb-bounces~public-inbox=simark.ca@sourceware.org Sender: "Gdb" Matthieu Longo writes: > On 01/06/2026 11:10, Matthieu Longo via Gdb wrote: >> On 28/05/2026 17:31, Matthieu Longo via Gdb wrote: >>> On 28/05/2026 17:24, Matthieu Longo via Gdb wrote: >>>> Hi Tom, >>>> >>>> As I previously told you (at least, I believe so but I am not 100% sure), I finished migrating all >>>> the Python C extensions some time ago. I had discovered some issues with a case of inheritance >>>> causing unexpected crashes. >>>> To facilitate the debugging, I decided to implement a prototype outside of GDB, and managed to make >>>> it work. I finally got the prototype reviewed by Victor Stinner, a Python core developer, to double- >>>> check whether my design was working as expected. >>>> >>>> Please find attached my last iteration. I also provided an archive which should be more convenient >>>> for you if you want to compile and test it. >>>> >>>> Could you please review it so that we validate this new approach before I migrate all my previous >>>> patches to it ? >>>> >>>> PS: >>>> - a README is provided with all the needed instruction inside. >>>> - this patch contains code from outside GDB's repository, and should not be merged inside GDB's >>>> repository. >>>> >>>> Regards, >>>> Matthieu >>> >>> With the archive, hopefully not inlined. >> >> Hi Tom, >> >> Any chance for you to have a look at this in the next two weeks ? >> >> Matthieu > > Ping. > Adding Andrew too in the loop. Would it be possible to give a brief explanation for what this is all about? When reviewing something I usually start by reading the description and then check the code matches what was written, but your text doesn't really help me ... I suspect there's some back story that I'm missing, but it would be neat if that could all be summarised, or at least links to it added, here. Thanks, Andrew