* command.c (do_setshow_command, case var_string): Never add a
authorJim Kingdon <jkingdon@engr.sgi.com>
Sat, 26 Mar 1994 15:15:00 +0000 (15:15 +0000)
committerJim Kingdon <jkingdon@engr.sgi.com>
Sat, 26 Mar 1994 15:15:00 +0000 (15:15 +0000)
space to the end of the string.
* NEWS: Document this change.
* .gdbinit: Add a space to the "set prompt" command.

gdb/.gdbinit
gdb/ChangeLog
gdb/NEWS
gdb/command.c

index 0bf56a615bb4ff68da9c92e7c928b1378914ad60..f60802e50093650d65d2377048f0eca9121fc528 100644 (file)
@@ -13,4 +13,4 @@ end
 dir ../mmalloc
 dir ../libiberty
 dir ../bfd
-set prompt (top-gdb)
+set prompt (top-gdb) 
index fc1065af5f69c02bcb399c3d0416628cdb251cb6..40c811441e47656f965ad9d318885f61d3a85943 100644 (file)
@@ -1,3 +1,10 @@
+Sat Mar 26 07:05:18 1994  Jim Kingdon  (kingdon@lioth.cygnus.com)
+
+       * command.c (do_setshow_command, case var_string): Never add a
+       space to the end of the string.
+       * NEWS: Document this change.
+       * .gdbinit: Add a space to the "set prompt" command.
+
 Fri Mar 25 12:40:41 1994  Jim Kingdon  (kingdon@lioth.cygnus.com)
 
        *  m3-nat.c, i386m3-nat.c, config/i386/i386m3.mh: Many minor
index f6449154a44dbedfd0067a5703744befb0bb128c..bda3c9b19ecbe91f7e5027b8bd2341dca425d09a 100644 (file)
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -1,6 +1,13 @@
                What has changed since GDB-3.5?
                (Organized release by release)
 
+*** Changes in GDB-4.13:
+
+* New "complete" command for use by emacs.
+
+* "set prompt" no longer adds a space for you after the prompt you set.  This
+allows you to set a prompt which ends in a space or one that does not.
+
 *** Changes in GDB-4.12:
 
 * Irix 5 is now supported
index d82f1fdf69d5000ccd6d215d392890bdc1feb7dc..f2af0d5aa12936f1eaf36e8127a953de25d6b04a 100644 (file)
@@ -1053,6 +1053,11 @@ do_setshow_command (arg, from_tty, c)
                  {
                    /* \ at end of argument is used after spaces
                       so they won't be lost.  */
+                   /* This is obsolete now that we no longer strip
+                      trailing whitespace and actually, the backslash
+                      didn't get here in my test, readline or
+                      something did something funky with a backslash
+                      right before a newline.  */
                    if (*p == 0)
                      break;
                    ch = parse_escape (&p);
@@ -1064,8 +1069,10 @@ do_setshow_command (arg, from_tty, c)
                else
                  *q++ = ch;
              }
+#if 0
            if (*(p - 1) != '\\')
              *q++ = ' ';
+#endif
            *q++ = '\0';
            new = (char *) xrealloc (new, q - new);
            if (*(char **)c->var != NULL)
This page took 0.030286 seconds and 4 git commands to generate.