Re: [PATCH] Warn about data-directory when failing to import Python "gdb" module

Khoo Yit Phang
2012-09-17T20:28:08Z

Hi,

On Sep 17, 2012, at 4:22 PM, Jan Kratochvil wrote:

> On Mon, 17 Sep 2012 21:36:37 +0200, Khoo Yit Phang wrote:
>> + warning (_("Please make sure that data-directory is set correctly."));
>
> Couldn't you make it more explicit, such as mentioning the -data-directory
> command-line parameter and that it should contain file python/gdb/__init__.py
> or that it is gdb/data-directory in the source tree or some such wording?

How about:

If you are running GDB from the build directory, please run gdb with the -data-directory flag set as appropriate, e.g., "builddir/gdb -data-directory builddir/data-directory".

Yit
September 17, 2012