This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA, RFA 7.6] Improve help for, e.g., running gdb in build tree.
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Doug Evans <dje at google dot com>
- Cc: Tom Tromey <tromey at redhat dot com>, gdb-patches at sourceware dot org
- Date: Wed, 27 Mar 2013 14:54:01 -0700
- Subject: Re: [RFA, RFA 7.6] Improve help for, e.g., running gdb in build tree.
- References: <yjt2620c6675 dot fsf at ruffy2 dot mtv dot corp dot google dot com> <87y5d8elic dot fsf at fleche dot redhat dot com> <20819 dot 16279 dot 468828 dot 807108 at ruffy2 dot mtv dot corp dot google dot com>
> 2013-03-27 Doug Evans <dje@google.com>
>
> * python/python.c (finish_python_initialization): Provide suggestion
> for how to tell gdb to find its python files.
FWIW, OK for me as well (commenting on the second version).
>
> Index: python.c
> ===================================================================
> RCS file: /cvs/src/src/gdb/python/python.c,v
> retrieving revision 1.111
> diff -u -p -r1.111 python.c
> --- python.c 12 Mar 2013 17:39:45 -0000 1.111
> +++ python.c 27 Mar 2013 18:48:40 -0000
> @@ -1711,9 +1711,13 @@ finish_python_initialization (void)
> if (gdb_python_module == NULL)
> {
> gdbpy_print_stack ();
> - warning (_("Could not load the Python gdb module from `%s'."),
> + /* This is passed in one call to warning so that blank lines aren't
> + inserted between each line of text. */
> + warning (_("\n"
> + "Could not load the Python gdb module from `%s'.\n"
> + "Limited Python support is available from the _gdb module.\n"
> + "Suggest passing --data-directory=/path/to/gdb/data-directory.\n"),
> gdb_pythondir);
> - warning (_("Limited Python support is available from the _gdb module."));
> do_cleanups (cleanup);
> return;
> }
--
Joel