* main.c (long_options): Add entry for "-l".
authorAndreas Schwab <schwab@linux-m68k.org>
Tue, 7 Dec 2004 11:06:04 +0000 (11:06 +0000)
committerAndreas Schwab <schwab@linux-m68k.org>
Tue, 7 Dec 2004 11:06:04 +0000 (11:06 +0000)
(print_gdb_help): Add line for -l option.
* NEWS: Mention it.

doc/
* gdb.texinfo (Mode Options): Document -l option.

gdb/ChangeLog
gdb/NEWS
gdb/doc/ChangeLog
gdb/doc/gdb.texinfo
gdb/main.c

index 2325987..953c707 100644 (file)
@@ -1,3 +1,9 @@
+2004-12-07  Andreas Schwab  <schwab@suse.de>
+
+       * main.c (long_options): Add entry for "-l".
+       (print_gdb_help): Add line for -l option.
+       * NEWS: Mention it.
+
 2004-12-05  Randolph Chung  <tausq@debian.org>
 
        * hppah-nat.c (store_inferior_registers): Rewrite logic to not use
index dd39caa..7f93295 100644 (file)
--- 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
index fa942c0..7283bde 100644 (file)
@@ -1,3 +1,7 @@
+2004-12-07  Andreas Schwab  <schwab@suse.de>
+
+       * gdb.texinfo (Mode Options): Document -l option.
+
 2004-12-04  Eli Zaretskii  <eliz@gnu.org>
 
        * gdbint.texinfo (Algorithms): More accurate description of
index 348c6c2..bf59d71 100644 (file)
@@ -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}
index d331bc5..5e8b2ac 100644 (file)
@@ -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);