gdb/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Mon, 27 Aug 2012 16:47:15 +0000 (16:47 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Mon, 27 Aug 2012 16:47:15 +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 dc3240aa1afa49147e62b00fea174697fd3ed050..081e82bd6255e3cd496447627641e89654ffa8ca 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 3c2e1526c9f05cb5c573541f4efe204316980710..4752a829ed551cae198f3174bff13278095f50a9 100644 (file)
@@ -1068,8 +1068,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)
     {
This page took 0.032603 seconds and 4 git commands to generate.