summaryrefslogtreecommitdiffstats
path: root/contrib/gdb
diff options
context:
space:
mode:
authorgrog <grog@FreeBSD.org>1999-08-20 02:58:16 +0000
committergrog <grog@FreeBSD.org>1999-08-20 02:58:16 +0000
commit36d05ff1872b2d6a868dd0054ffb6787caab14ac (patch)
tree8d9a7eb2653e1d15c9c433dada7cd0d0b76eb19b /contrib/gdb
parentadd3f6325f928a3acb756b34b7018942f7cfdbd7 (diff)
downloadFreeBSD-src-36d05ff1872b2d6a868dd0054ffb6787caab14ac.zip
FreeBSD-src-36d05ff1872b2d6a868dd0054ffb6787caab14ac.tar.gz
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
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 189e3c3..35c3287 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. */
OpenPOWER on IntegriCloud