From: Andreas Schwab <schwab@suse.de>
To: gdb-patches@sources.redhat.com
Subject: Enable hidden option -l
Date: Mon, 06 Dec 2004 23:44:00 -0000 [thread overview]
Message-ID: <m3eki3hu43.fsf@igel.m5r.de> (raw)
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."
next reply other threads:[~2004-12-06 23:42 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-06 23:44 Andreas Schwab [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3eki3hu43.fsf@igel.m5r.de \
--to=schwab@suse.de \
--cc=gdb-patches@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox