> in file python/python.c is the method throw_error with constant > UNSUPPORTED_ERROR used, but the header exceptions.h isn't included, so I > get a build failure. I am not sure if this happens for other targets, too. > The attached patch fixes this by adding the necessary include. Outch, sorry. My mistake. I had seen that exceptions.h might be needed if !HAVE_PYTHON, but was lazy and only did a visual check. I should have attempted a build --without-python. > 2010-01-18 Kai Tietz > > * python/python.c: Add include of exception.h header. Unfortunately, this is not the right fix. 2 things: - The needed include was conditionalized on HAVE_PYTHON, so the right fix was simply to move the #include out of the conditionalized section; - the right include is "exceptions.h", not "../exceptions.h". Sources in python/ are compiled from the gdb/ subdirectory. I have applied the following patch to fix the problem. 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. Tested by rebuilding GDB --with-python and --without-python. -- Joel