Re: [PATCH 1/3] gdbserver/IPA: Export some functions via global function pointers.

Pedro Alves
2016-03-29T21:51:25Z

On 03/29/2016 07:08 PM, Ulrich Weigand wrote:

> However, there does seem to be one issue: your patch changes the
> interface between gdbserver and the in-process agent in an incompatible
> way. Binaries with an old IPA built in will no longer work with a
> new gdbserver, since it will will expect exported symbols like
> gdb_collect_ptr, which the old binary doesn't export.
>
> I think it would be preferable to implement a backward-compatible
> way where gdbserver checks for the new symbol, and if it isn't
> present, falls back to the old symbol.

So far, given the tight coupling between gdbserver and the IPA's
implementation, we've required that gdbserver and the IPA must
be of the same version. We're added new functions to the
interface before without trying to maintain backwards compatibility.

Thanks,
Pedro Alves