This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [PATCH] prevent core dump for multiple def symbols
On Fri, Jun 11, 2004 at 11:39:35AM -0400, Ian Lance Taylor wrote:
> Daniel Jacobowitz <drow@false.org> writes:
>
> > It seems obvious and correct to me. Is multiple_definition a recent
> > callback or did I just miss it when I wrote simple.c? [I won't even
> > ask how you have a shared library with multiple definitions of a
> > dynamic symbol.]
>
> multiple_definition is not a recent callback. It's been there from
> the start.
>
> I agree that for it to be called in this scenario is odd.
nm myWeird.so | wc -l
11282
nm myWeird.so | cut -f 3 -d " " | sort | uniq -d | wc -l
92
so it seems Kylix is in the habit of generating multiple copies of symbols.
I think it's because of overloaded functions. I've just picked a few
duplicate symbols at random and they turned out to be overloaded.
I don't know if this is Kylix's fault or what but I hope you will consider
applying the patch anyway? There's zero chance of getting Kylix fixed :-(
Fergal