From: brobecke Date: Mon, 18 Jan 2010 19:50:44 +0000 (+0000) Subject: Fix build failure when building without Python support. X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=e4ead5b3d840af56d1f098baceb68c7753e69280;p=pf3gnuchains%2Fpf3gnuchains4x.git Fix build failure when building without Python support. * python/python.c: Always include exceptions.h, even when HAVE_PYTHON is not defined. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2eb2297be1..e45be319fc 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,11 @@ 2010-01-18 Joel Brobecker + Fix build failure when building without Python support. + * python/python.c: Always include exceptions.h, even when HAVE_PYTHON + is not defined. + +2010-01-18 Joel Brobecker + Use XVS field type instead of doing a parallel lookup. * ada-lang.c (ada_get_base_type): Follow the XVS field type if it is a reference type instead of doing a type lookup using diff --git a/gdb/python/python.c b/gdb/python/python.c index 1f1ae729fb..29386c9205 100644 --- a/gdb/python/python.c +++ b/gdb/python/python.c @@ -27,6 +27,7 @@ #include "observer.h" #include "value.h" #include "language.h" +#include "exceptions.h" #include @@ -45,7 +46,6 @@ static int gdbpy_auto_load = 1; #include "cli/cli-decode.h" #include "charset.h" #include "top.h" -#include "exceptions.h" #include "python-internal.h" #include "version.h" #include "target.h"