From 8cb6a40a3327dd62cc5b5d19006f470fb303ce4c Mon Sep 17 00:00:00 2001 From: Greg Lehey Date: Fri, 20 Aug 1999 02:58:16 +0000 Subject: [PATCH] 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 --- contrib/gdb/gdb/top.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. */