* cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
	followed by a whitespace.
This commit is contained in:
Jan Kratochvil 2012-08-27 16:47:15 +00:00
parent 28e66c70aa
commit 7afa16426a
2 changed files with 9 additions and 1 deletions

View 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.

View 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)
{