This is the mail archive of the
archer@sourceware.org
mailing list for the Archer project.
[python] Fix varobj crash if no python is installed
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: archer at sourceware dot org
- Date: Tue, 3 Mar 2009 22:40:04 +0100
- Subject: [python] Fix varobj crash if no python is installed
commit [archer-jankratochvil-python] 75c9f663904378be08bae1172f61204b2c0ec5ca
Reproducible and uncommitted on [archer-tromey-python].
Crash reproducer at least by: gdb.mi/gdb701.exp
gdb/
Fix varobj crash if no python is installed.
* varobj.c (install_default_visualizer [!HAVE_PYTHON]): Remove the
error call.
---
gdb/varobj.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/gdb/varobj.c b/gdb/varobj.c
index 7e5d797..55bf85d 100644
--- a/gdb/varobj.c
+++ b/gdb/varobj.c
@@ -1451,7 +1451,7 @@ install_default_visualizer (struct varobj *var)
install_visualizer (var, pretty_printer);
do_cleanups (cleanup);
#else
- error ("Python support required");
+ /* No error is right as this function is inserted just as a hook. */
#endif
}
--
1.6.0.6