* python/python.c (finish_python_initialization): Provide suggestion
authorDoug Evans <dje@google.com>
Thu, 28 Mar 2013 16:39:09 +0000 (16:39 +0000)
committerDoug Evans <dje@google.com>
Thu, 28 Mar 2013 16:39:09 +0000 (16:39 +0000)
for how to tell gdb to find its python files.

gdb/ChangeLog
gdb/python/python.c

index a5f8963eeb9c4dafcd07773649bd8121bc80d821..cfdb643f3f7136efc69243b7e5d8f1860a9b9fd1 100644 (file)
@@ -1,3 +1,8 @@
+2013-03-28  Doug Evans  <dje@google.com>
+
+       * python/python.c (finish_python_initialization): Provide suggestion
+       for how to tell gdb to find its python files.
+
 2013-03-28  Pedro Alves  <palves@redhat.com>
 
        PR gdb/15294
index 4a7cb289113da44d4b770d516426ccb4d930aad1..67d06e5364b2b3da4835a37ae038541c6ff607a2 100644 (file)
@@ -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;
     }