Re: gnulib stat problem

Tom Tromey
2020-01-14T18:17:01Z

Tom> Maybe gdb could *only* use bfd_get_mtime when it matters. This would
Tom> mean changing gdb_bfd_open to create a BFD before checking the cache,
Tom> but maybe that's not very expensive.

I implemented this. This approach seems pretty nice.

Also, I discovered that bfd_stat exists, which means we could also put
target BFDs into the cache -- currently we only put local ones there.
So, this seems like another plus (though I haven't implemented this
caching yet), and provides an additional reason to go this route.

Tom