From 265c044ac1c64e04518319bb4fcecca96e09d707 Mon Sep 17 00:00:00 2001 From: Dawn Perchik Date: Fri, 28 Jun 1996 12:42:10 +0000 Subject: [PATCH] * main.c (main): Add option "l" for setting remote_timeout. --- gdb/ChangeLog | 4 ++++ gdb/main.c | 19 +++++++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a93622639f5..eb602685d46 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +Fri Jun 28 05:39:19 1996 Dawn Perchik + + * main.c (main): Add option "l" for setting remote_timeout. + Fri Jun 28 05:25:18 1996 Dawn Perchik * remote-e7000.c,remote.c,target.h,top.c: diff --git a/gdb/main.c b/gdb/main.c index dcb985e6dc6..8671c9ecde6 100644 --- a/gdb/main.c +++ b/gdb/main.c @@ -284,6 +284,23 @@ main (argc, argv) else baud_rate = i; } + case 'l': + { + int i; + char *p; + + i = strtol (optarg, &p, 0); + if (i == 0 && p == optarg) + + /* Don't use *_filtered or warning() (which relies on + current_target) until after initialize_all_files(). */ + + fprintf_unfiltered + (gdb_stderr, + "warning: could not set timeout limit to `%s'.\n", optarg); + else + remote_timeout = i; + } break; #ifdef ADDITIONAL_OPTION_CASES @@ -562,11 +579,13 @@ GDB manual (available as on-line info or a printed manual).\n", gdb_stdout); if (display_space) { +#ifdef HAVE_SBRK extern char **environ; char *lim = (char *) sbrk (0); printf_unfiltered ("Startup size: data size %ld\n", (long) (lim - (char *) &environ)); +#endif } /* The default command loop. -- 2.30.2