This is the mail archive of the
mailing list for the GDB project.
Re: Solibs and objfile BFD ownership
On Fri, Aug 21, 2009 at 10:29 AM, Tom Tromey<firstname.lastname@example.org> wrote:
> This is ok. Thanks.
> Paul> + gdb_assert (*p_refcount == 1 || *p_refcount == 2);
> This assertion is a bit strange, but I suppose it is harmless. If we
> ever want more sharing, we can always just remove it. In the meantime I
> suppose it is checking that we don't over-share somehow.
The assertion was intended to catch somebody else in GDB using bfd_usrdata
for some other purpose (in a way I didn't find).
I think it's safe to leave it in for now.