[PATCH 1/2] pdb: Allow loading by gdb
Alan Modra
amodra@gmail.com
Wed May 10 00:56:51 GMT 2023
On Tue, May 09, 2023 at 01:32:46AM +0100, Mark Harmstone wrote:
> Add a new bfd_flavour value, and expose PDB files as objects, so that
> they get accepted by add-symbol-file.
By equating object_p and archive_p you are going to get whichever of
bfd_archive or bfd_object is tried first as the argument of
bfd_check_format (or bfd_check_format_matches). This seems fragile to
me. We have multiple binary utilities, ld, and gbd all calling
bfd_check_format. Do they all work correctly with this change, and
will they continue to work correctly with future changes?
I think you'd be better off staying with just one format, and
bfd_archive probably fits pdb files better than bfd_object.
--
Alan Modra
Australia Development Lab, IBM
More information about the Binutils
mailing list