Solibs and objfile BFD ownership
Paul Pluzhnikov
ppluzhnikov@google.com
Fri Aug 21 18:04:00 GMT 2009
On Fri, Aug 21, 2009 at 10:29 AM, Tom Tromey<tromey@redhat.com> wrote:
> This is ok. Thanks.
So committed.
> 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.
Thanks,
--
Paul Pluzhnikov
More information about the Gdb
mailing list