gdb/ChangeLog 2012-09-17 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 @@ -1484,6 +1484,7 @@ gdbpy_print_stack (); warning (_("Could not load the Python gdb module from `%s'."), gdb_pythondir); + warning (_("Please make sure that data-directory is set correctly.")); warning (_("Limited Python support is available from the _gdb module.")); do_cleanups (cleanup); return;