Re: [patch] [gdbserver] Fix multi-GB error log files

Jan Kratochvil
2011-03-15T19:18:43Z

On Tue, 15 Mar 2011 19:36:02 +0100, Pedro Alves wrote:
> I'm confused. Backwards compatibility would be broken by the listen
> socket change. But that socket change looked orthogonal
> to the --once stuff? Won't either of the changes fix the problem?

If people depend on:

> > On Tue, 15 Mar 2011 18:42:56 +0100, Pedro Alves wrote:
> > > you can spawn several instances of
> > > gdbserver + connect, while only needing to open one port in
> > > your firewall. Or perhaps IDEs are relying on that when
> > > spawning the second (and nth) connections to the same
> > > board (while leaving the previous sessions still running).

then it is already racy - at least for multiple users sharing the same target
box. But it is IMO racy even on fast enough clicking in Eclipse by a single
user.

To remove the racy case some kind of backward compatibility with current
setups has to be broken.

If you want to keep the racy behavior for users (for its other benefits) I can
propose a patch fixing only the testsuite and not affecting the normal
gdbserver executions by users in any way.

Thanks,
Jan