From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15352 invoked by alias); 21 Sep 2012 12:58:04 -0000 Received: (qmail 15342 invoked by uid 22791); 21 Sep 2012 12:58:04 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from mail-out.m-online.net (HELO mail-out.m-online.net) (212.18.0.10) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 21 Sep 2012 12:57:50 +0000 Received: from frontend1.mail.m-online.net (frontend1.mail.intern.m-online.net [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 3XNZbd529Yz3hjXf for ; Fri, 21 Sep 2012 14:57:49 +0200 (CEST) X-Auth-Info: RpbRH5aCfOgtQpf4zf5AkDfqcLLhTRxMx1/ZPnaXA6I= Received: from igel.home (ppp-88-217-127-217.dynamic.mnet-online.de [88.217.127.217]) by mail.mnet-online.de (Postfix) with ESMTPA id 3XNZbd4l5Vzbbj9 for ; Fri, 21 Sep 2012 14:57:49 +0200 (CEST) Received: by igel.home (Postfix, from userid 501) id 404F5CA2A5; Fri, 21 Sep 2012 14:57:49 +0200 (CEST) From: Andreas Schwab To: gdb-patches@sourceware.org Subject: Fix build if !HAVE_PYTHON X-Yow: As President I have to go vacuum my coin collection! Date: Fri, 21 Sep 2012 12:58:00 -0000 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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: 2012-09/txt/msg00432.txt.bz2 Committed as obvious. Andreas. * python/python.c (finalize_python): Only define if HAVE_PYTHON. diff --git a/gdb/python/python.c b/gdb/python/python.c index c66dc60..13a7bdc 100644 --- a/gdb/python/python.c +++ b/gdb/python/python.c @@ -1266,6 +1266,7 @@ user_show_python (char *args, int from_tty) /* Initialize the Python code. */ +#ifdef HAVE_PYTHON /* This is installed as a final cleanup and cleans up the interpreter. This lets Python's 'atexit' work. */ @@ -1283,6 +1284,7 @@ finalize_python (void *ignore) Py_Finalize (); } +#endif /* Provide a prototype to silence -Wmissing-prototypes. */ extern initialize_file_ftype _initialize_python; -- 1.7.12.1 -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."