]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Mon, 27 Aug 2012 16:47:32 +0000 (16:47 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Mon, 27 Aug 2012 16:47:32 +0000 (16:47 +0000)
* cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
followed by a whitespace.

gdb/ChangeLog
gdb/cli/cli-decode.c

index d74486ffb2aeb8d200d5fc7784779032311d7cfe..10d07a4f9df7e0026c3f07e981ffd316735dc9c4 100644 (file)
@@ -1,3 +1,8 @@
+2012-08-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
+       followed by a whitespace.
+
 2012-08-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        PR gdb/14494.
index c337b43f813240ea46bd77f9a456a2cb2cb7536e..6fa929b1d712a223c396500517d752b3286a7a21 100644 (file)
@@ -1003,8 +1003,11 @@ print_doc_line (struct ui_file *stream, char *str)
       line_buffer = (char *) xmalloc (line_size);
     }
 
+  /* Keep printing '.' or ',' not followed by a whitespace for embedded strings
+     like '.gdbinit'.  */
   p = str;
-  while (*p && *p != '\n' && *p != '.' && *p != ',')
+  while (*p && *p != '\n'
+        && ((*p != '.' && *p != ',') || (p[1] && !isspace (p[1]))))
     p++;
   if (p - str > line_size - 1)
     {