Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* Enable hidden option -l
@ 2004-12-06 23:44 Andreas Schwab
  2004-12-07  5:00 ` Eli Zaretskii
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Andreas Schwab @ 2004-12-06 23:44 UTC (permalink / raw)
  To: gdb-patches

GDB has (since the beginning of CVS history) a hidden option -l that can
be used to set the timeout for remote communication.  But it was never
possible to pass it because it is missing from long_options.

The option is quite useful when debugging gdbserver.

Andreas.

2004-12-07  Andreas Schwab  <schwab@suse.de>

	* main.c (long_options): Add entry for "-l".
	(print_gdb_help): Add line for -l option.

doc/
	* gdb.texinfo (Mode Options): Document -l option.

--- gdb/main.c.~1.44.~	2004-08-11 00:36:39.000000000 +0200
+++ gdb/main.c	2004-12-07 00:06:51.356849960 +0100
@@ -300,6 +300,7 @@ captured_main (void *data)
       {"statistics", no_argument, 0, OPT_STATISTICS},
       {"write", no_argument, &write_files, 1},
       {"args", no_argument, &set_args, 1},
+      {"l", required_argument, 0, 'l'},
       {0, no_argument, 0, 0}
     };
 
@@ -854,6 +855,7 @@ Options:\n\n\
                      Select a specific interpreter / user interface\n\
 "), stream);
   fputs_unfiltered (_("\
+  -l TIMEOUT         Set timeout in seconds for remote debugging.\n\
   --mapped           Use mapped symbol files if supported on this system.\n\
   --nw		     Do not use a window interface.\n\
   --nx               Do not read "), stream);
--- gdb/doc/gdb.texinfo.~1.227.~	2004-11-23 23:11:14.000000000 +0100
+++ gdb/doc/gdb.texinfo	2004-12-07 00:06:19.054873173 +0100
@@ -1078,6 +1078,11 @@ This option stops option processing.
 Set the line speed (baud rate or bits per second) of any serial
 interface used by @value{GDBN} for remote debugging.
 
+@item -l @var{timeout}
+@cindex @code{-l}
+Set the timeout (in seconds) of any communication used by @value{GDBN}
+for remote debugging.
+
 @item -tty @var{device}
 @itemx -t @var{device}
 @cindex @code{--tty}

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2005-02-09 14:54 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-06 23:44 Enable hidden option -l Andreas Schwab
2004-12-07  5:00 ` Eli Zaretskii
2004-12-07  5:24 ` Daniel Jacobowitz
2004-12-07 15:56   ` Andreas Schwab
2004-12-12 18:13 ` Andrew Cagney
2004-12-12 18:33   ` Andreas Schwab
2004-12-15 16:42   ` Andreas Schwab
2005-02-09 16:49     ` Andrew Cagney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox