From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7005 invoked by alias); 6 Dec 2004 23:42:11 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 6990 invoked from network); 6 Dec 2004 23:42:06 -0000 Received: from unknown (HELO lisa.goe.net) (134.76.166.209) by sourceware.org with SMTP; 6 Dec 2004 23:42:06 -0000 Received: from mutter.goe.net (mail@mutter-lisa0.a11.private [192.168.31.26]) by lisa.goe.net (8.12.10/8.12.10) with ESMTP id iB6Ng5IN008274 for ; Tue, 7 Dec 2004 00:42:05 +0100 Received: from igel.a11.private ([192.168.31.91] helo=igel.home) by mutter.goe.net with esmtp (Exim 4.42) id 1CbSUX-0007lH-4p for gdb-patches@sources.redhat.com; Tue, 07 Dec 2004 00:42:05 +0100 Received: by igel.home (Postfix, from userid 500) id BF8FC10C53A; Tue, 7 Dec 2004 00:42:04 +0100 (CET) To: gdb-patches@sources.redhat.com Subject: Enable hidden option -l From: Andreas Schwab X-Yow: I brought my BOWLING BALL - and some DRUGS!! Date: Mon, 06 Dec 2004 23:44:00 -0000 Message-ID: User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-SW-Source: 2004-12/txt/msg00180.txt.bz2 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 * 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} }; =20 @@ -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. =20 +@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} --=20 Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstra=C3=9Fe 5, 90409 N=C3=BCrnberg, Germany Key fingerprint =3D 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."