From 465a0a5f9b7ac0672c8e53b98b698b015d469557 Mon Sep 17 00:00:00 2001 From: msnyder Date: Fri, 12 Apr 2002 22:44:17 +0000 Subject: [PATCH] 2002-04-12 Michael Snyder * cli/cli-decode.c (help_list): Allow long lines to wrap. --- gdb/ChangeLog | 2 ++ gdb/cli/cli-decode.c | 22 ++++++++++++++++------ 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index bca2712cd3..acbadb9d74 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -18,6 +18,8 @@ 2002-04-12 Michael Snyder + * cli/cli-decode.c (help_list): Allow long lines to wrap. + * symfile.c: Fix indentation, long lines. * source.c: White space fix-up. 2002-04-12 Andrew Cagney diff --git a/gdb/cli/cli-decode.c b/gdb/cli/cli-decode.c index 87349ef9f5..3f510ac87d 100644 --- a/gdb/cli/cli-decode.c +++ b/gdb/cli/cli-decode.c @@ -673,14 +673,24 @@ help_list (struct cmd_list_element *list, char *cmdtype, help_cmd_list (list, class, cmdtype, (int) class >= 0, stream); if (class == all_classes) - fprintf_filtered (stream, "\n\ -Type \"help%s\" followed by a class name for a list of commands in that class.", - cmdtype1); + { + fprintf_filtered (stream, "\n\ +Type \"help%s\" followed by a class name for a list of commands in ", + cmdtype1); + wrap_here (""); + fprintf_filtered (stream, "that class."); + } - fprintf_filtered (stream, "\n\ -Type \"help%s\" followed by %scommand name for full documentation.\n\ -Command name abbreviations are allowed if unambiguous.\n", + fprintf_filtered (stream, "\nType \"help%s\" followed by %scommand name ", cmdtype1, cmdtype2); + wrap_here (""); + fputs_filtered ("for ", stream); + wrap_here (""); + fputs_filtered ("full ", stream); + wrap_here (""); + fputs_filtered ("documentation.\n", stream); + fputs_filtered ("Command name abbreviations are allowed if unambiguous.\n", + stream); } static void -- 2.11.0