Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* Fix build-failure of gdb in python.c
@ 2010-01-18 10:30 Kai Tietz
  2010-01-18 10:55 ` Joel Brobecker
  0 siblings, 1 reply; 3+ messages in thread
From: Kai Tietz @ 2010-01-18 10:30 UTC (permalink / raw)
  To: gdb-patches

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  <kai.tietz@onevision.com>

        * 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 <ctype.h>

 /* True if we should print the stack when catching a Python error,


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

end of thread, other threads:[~2010-01-18 11:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-18 10:30 Fix build-failure of gdb in python.c Kai Tietz
2010-01-18 10:55 ` Joel Brobecker
2010-01-18 11:02   ` Kai Tietz

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