Enable hidden option -l

Andreas Schwab schwab@suse.de
Mon Dec 6 23:44:00 GMT 2004

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.


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

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

	* 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."

More information about the Gdb-patches mailing list