aboutsummaryrefslogtreecommitdiff
path: root/contrib/gdb
diff options
context:
space:
mode:
authorGreg Lehey <grog@FreeBSD.org>1999-08-20 02:58:16 +0000
committerGreg Lehey <grog@FreeBSD.org>1999-08-20 02:58:16 +0000
commit8cb6a40a3327dd62cc5b5d19006f470fb303ce4c (patch)
treeffa49ccba1e5fffef0889d974367378ad7462e81 /contrib/gdb
parent0b2d7c2ffc8249404106189cd735065ff2c49409 (diff)
downloadsrc-8cb6a40a3327dd62cc5b5d19006f470fb303ce4c.tar.gz
src-8cb6a40a3327dd62cc5b5d19006f470fb303ce4c.zip
Reduce default timeout on remote serial debugging sessions from 20
seconds to 1 second. This fixes a problem where gdb would appear to hang on flaky serial connections. There's a theoretical problem that the relatively short timeout could cause problems on slow links, but you can override the default value with the 'set remotetimeout' command. Approved-by: dfr
Notes
Notes: svn path=/head/; revision=50072
Diffstat (limited to 'contrib/gdb')
-rw-r--r--contrib/gdb/gdb/top.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/gdb/gdb/top.c b/contrib/gdb/gdb/top.c
index 189e3c395ef6..35c32871eba2 100644
--- a/contrib/gdb/gdb/top.c
+++ b/contrib/gdb/gdb/top.c
@@ -317,7 +317,7 @@ int baud_rate = -1;
/* Timeout limit for response from target. */
-int remote_timeout = 20; /* Set default to 20 */
+int remote_timeout = 1; /* Set default to 1 second */
/* Non-zero tells remote* modules to output debugging info. */