From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3487 invoked by alias); 20 Aug 2008 14:30:13 -0000 Received: (qmail 3473 invoked by uid 22791); 20 Aug 2008 14:30:11 -0000 X-Spam-Check-By: sourceware.org Received: from sibelius.xs4all.nl (HELO sibelius.xs4all.nl) (82.92.89.47) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 20 Aug 2008 14:29:29 +0000 Received: from brahms.sibelius.xs4all.nl (kettenis@localhost.sibelius.xs4all.nl [127.0.0.1]) by brahms.sibelius.xs4all.nl (8.14.3/8.14.3) with ESMTP id m7KETQWF023236 for ; Wed, 20 Aug 2008 16:29:26 +0200 (CEST) Received: (from kettenis@localhost) by brahms.sibelius.xs4all.nl (8.14.3/8.14.3/Submit) id m7KETPMV006783; Wed, 20 Aug 2008 16:29:25 +0200 (CEST) Date: Wed, 20 Aug 2008 18:37:00 -0000 Message-Id: <200808201429.m7KETPMV006783@brahms.sibelius.xs4all.nl> From: Mark Kettenis To: gdb@sourceware.org Subject: Python not optional? Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-08/txt/msg00228.txt.bz2 I always assumed that the Python scripting support would be optional. I think that's what we agreed on when the idea to use Python as a scripting language was first circulated. So I was a bit disappointed when GDB no longer built on my systems. Luckily this isn't too difficult to fix; the attached rough diff does the job, but might need a bit of cleanup. Index: cli/cli-script.c =================================================================== RCS file: /cvs/src/src/gdb/cli/cli-script.c,v retrieving revision 1.47 diff -u -p -r1.47 cli-script.c --- cli/cli-script.c 16 Aug 2008 20:36:29 -0000 1.47 +++ cli/cli-script.c 20 Aug 2008 14:24:40 -0000 @@ -34,7 +34,9 @@ #include "cli/cli-script.h" #include "gdb_assert.h" +#ifdef HAVE_PYTHON #include "python/python.h" +#endif /* Prototypes for local functions */ @@ -543,12 +545,14 @@ execute_control_command (struct command_ ret = commands_from_control_command (new_line, cmd); break; } +#ifdef HAVE_PYTHON case python_control: { eval_python_from_control_command (cmd); ret = simple_control; break; } +#endif default: warning (_("Invalid control type in canned commands structure."));