This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fix build-failure of gdb in python.c


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,


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]