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

Andrew Burgess
2025-10-17T13:33:09Z

Andrew Burgess <aburgess@redhat.com> writes:

> Tom Tromey <tromey@adacore.com> writes:
>
>>
>> IOW, is the lack of a warning in this case now intentional?
>
> No this is not intentional, and I can reproduce this.
>
> But I thought we had a test that covered this specific case already, so
> I'm really surprised this wasn't flagged during testing.
>
> I'll investigate what's going on here, I guess I've managed to break
> something....
>

It turns out that it wasn't the Python core file API series that broke
this, it was moving the core file BFD from program_space to core_target
that was at fault, which was also me.

Anyway, I posted a fix here:

https://inbox.sourceware.org/gdb-patches/1272a6df222d57b169b97a14efd081a0c73d405d.1760707749.git.aburgess@redhat.com

Thanks,
Andrew