This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Enable hidden option -l
- From: Andreas Schwab <schwab at suse dot de>
- To: gdb-patches at sources dot redhat dot com
- Date: Tue, 07 Dec 2004 00:42:04 +0100
- Subject: Enable hidden option -l
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."