From: Mark Kettenis <mark.kettenis@xs4all.nl>
To: gdb@sourceware.org
Subject: Python not optional?
Date: Wed, 20 Aug 2008 18:37:00 -0000 [thread overview]
Message-ID: <200808201429.m7KETPMV006783@brahms.sibelius.xs4all.nl> (raw)
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."));
next reply other threads:[~2008-08-20 14:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-20 18:37 Mark Kettenis [this message]
2008-08-20 18:53 ` Tom Tromey
2008-08-20 18:56 ` Mark Kettenis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200808201429.m7KETPMV006783@brahms.sibelius.xs4all.nl \
--to=mark.kettenis@xs4all.nl \
--cc=gdb@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox