Re: [PATCHv2 1/3] gdb/python: introduce gdb.Corefile API

Tom Tromey
2025-10-03T18:56:52Z

>>>>> "Andrew" == Andrew Burgess <aburgess@redhat.com> writes:

Andrew> This commit starts adding some core file related features to the
Andrew> Python API.

Thanks.

Andrew> +/* Store a gdb.Corefile object in an inferior's registry. */
Andrew> +
Andrew> +static const registry<inferior>::key<corefile_object,
Andrew> + inferior_corefile_deleter>
Andrew> + cfpy_inferior_corefile_data_key;

I suspect this should now use the new python-specific registry
approaches, see gdbpy_registry.

Andrew> + bfd *abfd= obj->inferior->pspace->core_bfd ();

Nit: missing space before '='.

Tom