Re: static linking of gdb

Bernd Edlinger
2020-04-06T13:45:26Z

On 4/6/20 3:42 PM, Tom Tromey wrote:
>>>>>> "Bernd" == Bernd Edlinger <bernd.edlinger@hotmail.de> writes:
>
>>> gdb should normally not be linked with -static-libstdc++. Currently
>>> this has not caused problems, but it's incompatible with catching an
>>> exception thrown from a shared library -- and a subsequent patch
>>> changes gdb to do just this.
>
> Bernd> Now this makes me a bit nervios.
>
> Bernd> Tom can you explain where this might happen?
>
> The source highlight library throws exceptions as part of its API.
>

Yes, understood, but why dont you catch them from a shared object,
and return normal return codes, if you like you can throw the same
exception from the static plugin layer ?

> I hadn't considered it.

You definitely should, it is never too late to correct a wrong decision.
Not being able to link gdb statically is a major usability-regression.

Bernd.

> Tom
>