diff options
author | Michael Snyder <msnyder@vmware.com> | 2002-04-12 22:44:18 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2002-04-12 22:44:18 +0000 |
commit | de74f71f00b20ea662706852565f3b2a3c7ef2a0 (patch) | |
tree | 2ea9926fb9be6794015e0917ade09d7938dccf2f | |
parent | 20f01a4665aec81bd667feb25cab93a8bbe3c9af (diff) | |
download | gdb-de74f71f00b20ea662706852565f3b2a3c7ef2a0.zip gdb-de74f71f00b20ea662706852565f3b2a3c7ef2a0.tar.gz gdb-de74f71f00b20ea662706852565f3b2a3c7ef2a0.tar.bz2 |
2002-04-12 Michael Snyder <msnyder@redhat.com>
* cli/cli-decode.c (help_list): Allow long lines to wrap.
-rw-r--r-- | gdb/ChangeLog | 2 | ||||
-rw-r--r-- | gdb/cli/cli-decode.c | 22 |
2 files changed, 18 insertions, 6 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index bca2712..acbadb9 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -18,6 +18,8 @@ 2002-04-12 Michael Snyder <msnyder@redhat.com> + * 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 <cagney@redhat.com> diff --git a/gdb/cli/cli-decode.c b/gdb/cli/cli-decode.c index 87349ef..3f510ac 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 |