Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Python not optional?
@ 2008-08-20 18:37 Mark Kettenis
  2008-08-20 18:53 ` Tom Tromey
  0 siblings, 1 reply; 3+ messages in thread
From: Mark Kettenis @ 2008-08-20 18:37 UTC (permalink / raw)
  To: gdb

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."));


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Python not optional?
  2008-08-20 18:37 Python not optional? Mark Kettenis
@ 2008-08-20 18:53 ` Tom Tromey
  2008-08-20 18:56   ` Mark Kettenis
  0 siblings, 1 reply; 3+ messages in thread
From: Tom Tromey @ 2008-08-20 18:53 UTC (permalink / raw)
  To: Mark Kettenis; +Cc: gdb

>>>>> "Mark" == Mark Kettenis <mark.kettenis@xs4all.nl> writes:

Mark> I always assumed that the Python scripting support would be optional.

It is supposed to be.

Mark>   Luckily this isn't too difficult to fix; the attached rough
Mark> diff does the job, but might need a bit of cleanup.

I will send a different patch shortly.

It would be helpful if you could mention the errors you saw.

Tom


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Python not optional?
  2008-08-20 18:53 ` Tom Tromey
@ 2008-08-20 18:56   ` Mark Kettenis
  0 siblings, 0 replies; 3+ messages in thread
From: Mark Kettenis @ 2008-08-20 18:56 UTC (permalink / raw)
  To: tromey; +Cc: gdb

> From: Tom Tromey <tromey@redhat.com>
> Date: Wed, 20 Aug 2008 08:37:10 -0600
> 
> >>>>> "Mark" == Mark Kettenis <mark.kettenis@xs4all.nl> writes:
> 
> Mark> I always assumed that the Python scripting support would be optional.
> 
> It is supposed to be.
> 
> Mark>   Luckily this isn't too difficult to fix; the attached rough
> Mark> diff does the job, but might need a bit of cleanup.
> 
> I will send a different patch shortly.
> 
> It would be helpful if you could mention the errors you saw.

Oops, sorry.  It seems I didn't check out the new python subdirectory.
All's fine now.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-08-20 14:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-20 18:37 Python not optional? Mark Kettenis
2008-08-20 18:53 ` Tom Tromey
2008-08-20 18:56   ` Mark Kettenis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox