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

Tom Tromey
2026-03-03T18:24:43Z

>>>>> 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