This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: RFA: auto-retry TCP connections for "target remote"
- From: Daniel Jacobowitz <drow at false dot org>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: Sandra Loosemore <sandra at codesourcery dot com>, gdb-patches at sourceware dot org
- Date: Sun, 28 Dec 2008 22:55:05 -0500
- Subject: Re: RFA: auto-retry TCP connections for "target remote"
- References: <49553C3A.2070000@codesourcery.com> <20081228110831.GB4216@adacore.com>
On Sun, Dec 28, 2008 at 03:08:31PM +0400, Joel Brobecker wrote:
> I wonder if it wouldn't be both simpler and more general to do everything
> at the remote.c level.Something like replacing the call to serial_open ()
> by a loop that calls serial_open a few times until we either succeed or
> exceed the number of retries. What do others think?
Sandra's patch has both an on/off switch and a total retry time.
I think that's a little more user-friendly than a retry count;
"try for 30 seconds" instead "try 5 times". I'm not sure how we'd do
that if it wasn't implemented in ser-tcp.c, though...
--
Daniel Jacobowitz
CodeSourcery