gdb/ChangeLog 2012-09-22 Khoo Yit Phang * gdb/python.c (finish_python_initialization): Augment the warning when importing "gdb" fails, to check that data-directory is set correctly. diff --git a/gdb/python/python.c b/gdb/python/python.c --- a/gdb/python/python.c +++ b/gdb/python/python.c @@ -1506,7 +1506,12 @@ gdbpy_print_stack (); warning (_("Could not load the Python gdb module from `%s'."), gdb_pythondir); - warning (_("Limited Python support is available from the _gdb module.")); + printf_filtered(_("\ +You may need to provide the -data-directory flag to GDB.\n\ +Limited Python support is available from the _gdb module.\n\ +For more information about GDB dependencies on external files\n\ +see the \"Data Files\" section in the GDB manual. E.g., run from the shell:\n\ +\tinfo \"(gdb)Data Files\"\n")); do_cleanups (cleanup); return; }