This is the mail archive of the gdb@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]

py-breakpoint.c fails to compile with MinGW GCC


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


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