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

Matthieu Longo via Gdb <[email protected]> Mon, 1 Jun 2026 11:10:36 +0100
Newsgroups gmane.comp.gdb.devel
Message-ID <[email protected]>
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