This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[RFA, RFA 7.6] Improve help for, e.g., running gdb in build tree.
- From: Doug Evans <dje at google dot com>
- To: gdb-patches at sourceware dot org
- Date: Wed, 27 Mar 2013 11:36:14 -0700
- Subject: [RFA, RFA 7.6] Improve help for, e.g., running gdb in build tree.
Hi.
How about this for 7.6?
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.
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:34:24 -0000
@@ -1714,6 +1714,7 @@ finish_python_initialization (void)
warning (_("Could not load the Python gdb module from `%s'."),
gdb_pythondir);
warning (_("Limited Python support is available from the _gdb module."));
+ warning (_("Suggest passing --data-directory=/path/to/gdb/data-directory."));
do_cleanups (cleanup);
return;
}