[rfc] Add help text to start-up text

Phil Muldoon
2013-06-12T19:50:42Z

This patch proposes to add a few items to the GDB start-up text to
provide some indication on where the user can find help.

I did not add the wiki and manual URLs to configure et al as I am not
sure that is needed (I guess GDB packagers might have an opinion
here).

Also I am not sure if anything actually parses the initial output of
the GDB start-up text and if adding these lines will affect that. So
I am seeking comments.

What do you think?

Cheers

Phil

2013-06-12 Phil Muldoon <pmuldoon@redhat.com>

* top.c (print_gdb_version): Add help, apropos description and
urls to wiki and online documentation.

--

diff --git a/gdb/top.c b/gdb/top.c
index 8ac756f..4c85b51 100644
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -1156,8 +1156,16 @@ Type \"show configuration\" for configuration details.");
{
fprintf_filtered (stream,
_("\nFor bug reporting instructions, please see:\n"));
- fprintf_filtered (stream, "%s.", REPORT_BUGS_TO);
+ fprintf_filtered (stream, "%s.\n\n", REPORT_BUGS_TO);
}
+
+ fprintf_filtered (stream, _("The GDB manual can be found online at:\n\
+<http://www.gnu.org/software/gdb/documentation/>\n"));
+ fprintf_filtered (stream, _("The GDB wiki can be found online at:\n\
+<http://sourceware.org/gdb/wiki/>\n\n"));
+ fprintf_filtered (stream, _("For help, type 'help'.\n"));
+ fprintf_filtered (stream, _("Type 'apropos word' to search for \
+commands related to 'word'.\n"));
}

/* Print the details of GDB build-time configuration. */