* main.c: Remove unused terminating_signals and catch_termination().
authorJohn Gilmore <gnu@cygnus>
Fri, 16 Aug 1991 01:49:30 +0000 (01:49 +0000)
committerJohn Gilmore <gnu@cygnus>
Fri, 16 Aug 1991 01:49:30 +0000 (01:49 +0000)
        (long_options):  Terminate with a zero element.
        [Bugfix from Atsuo Kawaguchi <atsuo@hark86.harl.hitachi.co.jp>.]
        (gdb_readline):  Make call-compatible with readline.
        (init_signals):  Improve comments re vfork vs. signal.

        * utils.c (prompt_for_continue):  Use new gdb_readline().
        If we prompt for continuation, we don't let CR repeat the previous
        command, once we get back to a prompt.  It's too easy to keep
        hitting CR, expecting "--more--" prompts, and have some long
        command start repeating on you.

gdb/ChangeLog
gdb/utils.c

index 37f238125b198624ff9b3996899f033e6626a644..cf5b54d3c45a1c56cd81a70a785d85942aff3f68 100644 (file)
@@ -1,3 +1,17 @@
+Thu Aug 15 18:43:57 1991  John Gilmore  (gnu at cygint.cygnus.com)
+
+       * main.c: Remove unused terminating_signals and catch_termination().
+       (long_options):  Terminate with a zero element.
+       [Bugfix from Atsuo Kawaguchi <atsuo@hark86.harl.hitachi.co.jp>.]
+       (gdb_readline):  Make call-compatible with readline.
+       (init_signals):  Improve comments re vfork vs. signal.
+
+       * utils.c (prompt_for_continue):  Use new gdb_readline().
+       If we prompt for continuation, we don't let CR repeat the previous
+       command, once we get back to a prompt.  It's too easy to keep
+       hitting CR, expecting "--more--" prompts, and have some long
+       command start repeating on you.
+
 Tue Aug 13 16:17:56 1991  John Gilmore  (gnu at cygint.cygnus.com)
 
        * blockframe.c (frameless_look_for_prologue):  Speed up by
index 28c3c87007491221ac6563f2d2f2c52949b10231..5fe3b1ebc108d397787e75a7acea4be4788f2870 100644 (file)
@@ -3,19 +3,19 @@
 
 This file is part of GDB.
 
-GDB is free software; you can redistribute it and/or modify
+This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 1, or (at your option)
-any later version.
+the Free Software Foundation; either version 2 of the License, or
+(at your option) any later version.
 
-GDB is distributed in the hope that it will be useful,
+This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.
 
 You should have received a copy of the GNU General Public License
-along with GDB; see the file COPYING.  If not, write to
-the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
+along with this program; if not, write to the Free Software
+Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 
 #include <stdio.h>
 #include <sys/ioctl.h>
@@ -59,7 +59,7 @@ extern char *realloc();
 void
 vprintf (format, ap)
      char *format;
-     va_alist ap;
+     va_list ap;
 {
   vfprintf (stdout, format, ap);
 }
@@ -718,10 +718,15 @@ set_width_command (args, from_tty, c)
 static void
 prompt_for_continue ()
 {
+  char *ignore;
+
   immediate_quit++;
-  gdb_readline ("---Type <return> to continue---", 0);
+  ignore = gdb_readline ("---Type <return> to continue---");
+  if (ignore)
+    free (ignore);
   chars_printed = lines_printed = 0;
   immediate_quit--;
+  dont_repeat ();              /* Forget prev cmd -- CR won't repeat it. */
 }
 
 /* Reinitialize filter; ie. tell it to reset to original values.  */
This page took 0.030731 seconds and 4 git commands to generate.