aboutsummaryrefslogtreecommitdiff
path: root/gdb/command.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1994-03-26 15:15:00 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1994-03-26 15:15:00 +0000
commit72e35288c7ed9bf4f68a4ba527e688dc10251d7e (patch)
tree2c47dacc022d5eebb6891bdadc6d63de047b4cf2 /gdb/command.c
parent00f5639008d77b60a25d9d9d54f35afda13eb3aa (diff)
downloadgdb-72e35288c7ed9bf4f68a4ba527e688dc10251d7e.zip
gdb-72e35288c7ed9bf4f68a4ba527e688dc10251d7e.tar.gz
gdb-72e35288c7ed9bf4f68a4ba527e688dc10251d7e.tar.bz2
* 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.
Diffstat (limited to 'gdb/command.c')
-rw-r--r--gdb/command.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/command.c b/gdb/command.c
index d82f1fd..f2af0d5 100644
--- a/gdb/command.c
+++ b/gdb/command.c
@@ -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)