From: Andreas Schwab Date: Tue, 7 Dec 2004 11:06:04 +0000 (+0000) Subject: * main.c (long_options): Add entry for "-l". X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f47b15032f1181ec95bd1666bd5c3193d80e638e;p=binutils-gdb.git * main.c (long_options): Add entry for "-l". (print_gdb_help): Add line for -l option. * NEWS: Mention it. doc/ * gdb.texinfo (Mode Options): Document -l option. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2325987b349..953c7071c5e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2004-12-07 Andreas Schwab + + * main.c (long_options): Add entry for "-l". + (print_gdb_help): Add line for -l option. + * NEWS: Mention it. + 2004-12-05 Randolph Chung * hppah-nat.c (store_inferior_registers): Rewrite logic to not use diff --git a/gdb/NEWS b/gdb/NEWS index dd39caa6731..7f932956a61 100644 --- a/gdb/NEWS +++ b/gdb/NEWS @@ -14,6 +14,11 @@ NEC V850 v850-*-* *** Changes in GDB 6.3: +* New command line option + +GDB now accepts -l followed by a number to set the timeout for remote +debugging. + * GDB works with GCC -feliminate-dwarf2-dups GDB now supports a more compact representation of DWARF-2 debug diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index fa942c0b757..7283bdea7aa 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,7 @@ +2004-12-07 Andreas Schwab + + * gdb.texinfo (Mode Options): Document -l option. + 2004-12-04 Eli Zaretskii * gdbint.texinfo (Algorithms): More accurate description of diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 348c6c2b4dc..bf59d71bb1f 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -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} diff --git a/gdb/main.c b/gdb/main.c index d331bc546ca..5e8b2acbbb6 100644 --- a/gdb/main.c +++ b/gdb/main.c @@ -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);