Re: [PATCHv2 3/3] gdb/python: add Corefile.mapped_files method

Tom de Vries
2025-10-07T06:25:25Z

On 10/3/25 21:15, Tom Tromey wrote:
> Andrew> Add a new Corefile.mapped_files method which returns a list of
> Andrew> gdb.CorefileMappedFile objects.
>
> Andrew> Each gdb.CorefileMappedFile object represents a file that was mapped
> Andrew> into the process when the core file was created.
>
> Andrew> + ** New Inferior.corefile attribute. This read only attribute
> Andrew> + contains the gdb.Corefile object if a core file is loaded into
> Andrew> + the inferior, otherwise, this contains None.
>
> This hunk is duplicated, it also appears in patch 1.
>
> Other than that this looks good to me.
> Approved-By: Tom Tromey <tom@tromey.com>

Hi,

Starting with this commit, I see:
...
(gdb) check-build-ids^M
Python Exception <class 'AssertionError'>: build-id mismatch for
/lib64/libc.so.6^M
Error occurred in Python: build-id mismatch for /lib64/libc.so.6^M
(gdb) FAIL: gdb.python/py-corefile.exp: test mapped files data:
check-build-ids
...

Thanks,
- Tom