Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] Warn about data-directory when failing to import Python "gdb" module
@ 2012-09-17 19:36 Khoo Yit Phang
  2012-09-17 20:23 ` Jan Kratochvil
  0 siblings, 1 reply; 16+ messages in thread
From: Khoo Yit Phang @ 2012-09-17 19:36 UTC (permalink / raw)
  To: GDB Patches; +Cc: Khoo Yit Phang

[-- Attachment #1: Type: text/plain, Size: 295 bytes --]

Hi,

I'd like to add a warning when failing to import the Python "gdb" module to check that data-directory is set correctly, to address the confusion arising from the incompatibility between the old "gdb" module and the one I recently checked in.

Thank you,

Yit
September 17, 2012



[-- Attachment #2: warn-gdb-python-compat.txt --]
[-- Type: text/plain, Size: 681 bytes --]

gdb/ChangeLog

2012-09-17  Khoo Yit Phang  <khooyp@cs.umd.edu>

	* 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;

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2012-10-06 20:56 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-17 19:36 [PATCH] Warn about data-directory when failing to import Python "gdb" module Khoo Yit Phang
2012-09-17 20:23 ` Jan Kratochvil
2012-09-17 20:28   ` Khoo Yit Phang
2012-09-17 20:36     ` Jan Kratochvil
2012-09-17 20:58     ` Joel Brobecker
2012-09-17 21:04       ` Khoo Yit Phang
2012-09-18 20:40         ` Khoo Yit Phang
2012-09-22 13:30           ` Jan Kratochvil
2012-09-22 18:37             ` Khoo Yit Phang
2012-10-06 20:56               ` Ping! " Khoo Yit Phang
2012-09-18  6:17       ` Eli Zaretskii
2012-09-18 11:58         ` Jan Kratochvil
2012-09-18 12:21           ` Eli Zaretskii
2012-09-18 13:54             ` Joel Brobecker
2012-09-18 15:38           ` Khoo Yit Phang
2012-09-18 15:44             ` Jan Kratochvil

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox