diff options
author | Sandra Loosemore <sandra@codesourcery.com> | 2009-01-06 17:07:08 +0000 |
---|---|---|
committer | Sandra Loosemore <sandra@codesourcery.com> | 2009-01-06 17:07:08 +0000 |
commit | 84603566b73e9ad18d094da3b7510ab480db8170 (patch) | |
tree | ebc3e787cad2fc3a879a1875dbe10d8f7923a38b /gdb/doc | |
parent | 1069ad51f418f56c400cf2387e508c6378eb73a1 (diff) | |
download | gdb-84603566b73e9ad18d094da3b7510ab480db8170.zip gdb-84603566b73e9ad18d094da3b7510ab480db8170.tar.gz gdb-84603566b73e9ad18d094da3b7510ab480db8170.tar.bz2 |
2009-01-06 Sandra Loosemore <sandra@codesourcery.com>
gdb/
* ser-tcp.c: Adjust includes.
(tcp_set_cmdlist, tcp_show_cmdlist): Declare.
(tcp_auto_retry, tcp_retry_limit): Declare.
(TIMEOUT): Remove, in favor of tcp_retry_limit.
(POLL_INTERVAL): Increase to 5, in favor of backoff logic.
(wait_for_connect): New function.
(net_open): Use it. Add auto-retry logic.
(set_tcp_cmd, show_tcp_cmd): New functions.
(_initialize_ser_tcp): Initialize new "set/show tcp auto-retry"
and "set/show tcp connect-timeout" commands.
* NEWS: Document new commands.
gdb/doc/
* gdb.texinfo (Remote Configuration): Document new
"set/show tcp auto-retry" and "set/show tcp connect-timeout"
commands.
Diffstat (limited to 'gdb/doc')
-rw-r--r-- | gdb/doc/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/doc/gdb.texinfo | 30 |
2 files changed, 36 insertions, 0 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index b79252c..dfe9526 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,9 @@ +2009-01-06 Sandra Loosemore <sandra@codesourcery.com> + + * gdb.texinfo (Remote Configuration): Document new + "set/show tcp auto-retry" and "set/show tcp connect-timeout" + commands. + 2008-12-28 Pedro Alves <pedro@codesourcery.com> * gdbint.texinfo (gdbarch_cannot_fetch_register): Don't mention diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 6ef124c..f6b7a1c 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -14206,6 +14206,36 @@ Select the file used for @code{run} with @code{target extended-remote}. This should be set to a filename valid on the target system. If it is not set, the target will use a default filename (e.g.@: the last program run). + +@kindex set tcp +@kindex show tcp +@item set tcp auto-retry on +@cindex auto-retry, for remote TCP target +Enable auto-retry for remote TCP connections. This is useful if the remote +debugging agent is launched in parallel with @value{GDBN}; there is a race +condition because the agent may not become ready to accept the connection +before @value{GDBN} attempts to connect. When auto-retry is +enabled, if the initial attempt to connect fails, @value{GDBN} reattempts +to establish the connection using the timeout specified by +@code{set tcp connect-timeout}. + +@item set tcp auto-retry off +Do not auto-retry failed TCP connections. + +@item show tcp auto-retry +Show the current auto-retry setting. + +@item set tcp connect-timeout @var{seconds} +@cindex connection timeout, for remote TCP target +@cindex timeout, for remote target connection +Set the timeout for establishing a TCP connection to the remote target to +@var{seconds}. The timeout affects both polling to retry failed connections +(enabled by @code{set tcp auto-retry on}) and waiting for connections +that are merely slow to complete, and represents an approximate cumulative +value. + +@item show tcp connect-timeout +Show the current connection timeout setting. @end table @cindex remote packets, enabling and disabling |