Re: [PATCH v2 7/9] gdb/python: accept gdbpy_ref in init helpers and return bool

Matthieu Longo
2026-03-09T13:27:09Z

On 03/03/2026 18:24, Tom Tromey wrote:
>>>>>> Matthieu Longo <matthieu.longo@arm.com> writes:
>
>> Passing 'gdbpy_ref<> &' instead of raw 'PyObject *' to init helpers
>> makes ownership of PyObject clearer at call sites, and removes
>> unnecessary '.get()' calls.
>> Changing the return type from 'int' to 'bool' improves readability
>> and better expresses the success/failure semantics.
>
> Ok.
> Approved-By: Tom Tromey <tom@tromey.com>
>
> Tom

Merged.

Matthieu