Re: RFC: prototype of C extensions using the Python limited API

Andrew Burgess via Gdb <[email protected]> Wed, 10 Jun 2026 17:10:20 +0100
Newsgroups gmane.comp.gdb.devel
Message-ID <[email protected]>
Matthieu Longo <[email protected]> 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