From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6574 invoked by alias); 18 Jan 2010 10:30:50 -0000 Received: (qmail 6561 invoked by uid 22791); 18 Jan 2010 10:30:49 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from outdoor.onevision.de (HELO outdoor.onevision.de) (212.77.172.51) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 18 Jan 2010 10:30:42 +0000 Received: from sanders.onevision.de (moonrace [212.77.172.62]) by outdoor.onevision.de (8.14.3/8.13.7/ROSCH/DDB) with ESMTP id o0IAUYqM015261 for ; Mon, 18 Jan 2010 11:30:39 +0100 To: gdb-patches@sourceware.org Subject: Fix build-failure of gdb in python.c MIME-Version: 1.0 Message-ID: From: Kai Tietz Date: Mon, 18 Jan 2010 10:30:00 -0000 Content-Type: text/plain; charset="US-ASCII" X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-01/txt/msg00453.txt.bz2 Hello, 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. ChangeLog 2010-01-18 Kai Tietz * python/python.c: Add include of exception.h header. Tested for i686-pc-cygwin, i686-pc-mingw32, and x86_64-w64-mingw32. Of for apply? Regards, Kai | (\_/) This is Bunny. Copy and paste Bunny | (='.'=) into your signature to help him gain | (")_(") world domination. Index: python.c =================================================================== RCS file: /cvs/src/src/gdb/python/python.c,v retrieving revision 1.24 diff -u -3 -r1.24 python.c --- python.c 18 Jan 2010 06:25:22 -0000 1.24 +++ python.c 18 Jan 2010 10:27:20 -0000 @@ -27,7 +27,7 @@ #include "observer.h" #include "value.h" #include "language.h" - +#include "../exceptions.h" #include /* True if we should print the stack when catching a Python error,