[PATCH 2/3] Consistently use BFD's time

Tom Tromey tom@tromey.com
Wed Sep 2 14:45:56 GMT 2020


>>>>> "Joel" == Joel Brobecker <brobecker@adacore.com> writes:

Joel> I think our only realistic options are to take a more radical approach,
Joel> either:

Joel>   - Stop using the stat module from gnulib (which I think we said
Joel>     we want to keep); or

Joel>   - Patch the gnulib implementation for now to block the incompatible
Joel>     behavior.
[...]
Joel>   - Something else?

One remaining option is to change BFD to use gnulib as well.

This is workable as long as gdb never tries to use an out-of-tree
library that uses struct stat (or a stat-derived time_t) as part of its
API.  To my knowledge gdb is currently safe on this front.  I'd guess it
seems likely to remain safe too, though of course one can't be certain.

Tom


More information about the Gdb-patches mailing list