This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
py-breakpoint.c fails to compile with MinGW GCC
- From: Eli Zaretskii <eliz at gnu dot org>
- To: gdb at sourceware dot org
- Date: Thu, 28 Jul 2011 08:06:47 -0400
- Subject: py-breakpoint.c fails to compile with MinGW GCC
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
The error message is:
./python/py-breakpoint.c:1019: error: initializer element is not constant
./python/py-breakpoint.c:1019: error: (near initialization for `breakpoint_objec t_type.tp_new')
This is with MinGW GCC 3.4.2 (yes, old, but it worked fine for me
until now).
I have Python 2.7.1 installed on that machine.
Removing the last element of the initializer, i.e. this line:
PyType_GenericNew /* tp_new */
allows py-breakpoint.c to compile.
Is this a bug in GCC, in GDB, in Python, or in my setup?
TIA