Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* py-breakpoint.c fails to compile with MinGW GCC
@ 2011-07-28 12:07 Eli Zaretskii
  2011-07-28 14:54 ` Phil Muldoon
  0 siblings, 1 reply; 15+ messages in thread
From: Eli Zaretskii @ 2011-07-28 12:07 UTC (permalink / raw)
  To: gdb

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


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

end of thread, other threads:[~2011-07-29  6:13 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-28 12:07 py-breakpoint.c fails to compile with MinGW GCC Eli Zaretskii
2011-07-28 14:54 ` Phil Muldoon
2011-07-28 15:01   ` Tom Tromey
2011-07-28 15:19     ` Joel Brobecker
2011-07-28 15:37       ` Phil Muldoon
2011-07-28 15:44       ` Tom Tromey
2011-07-28 16:11         ` Kai Tietz
2011-07-28 16:17         ` Eli Zaretskii
2011-07-28 16:46           ` Tom Tromey
2011-07-28 17:07             ` Eli Zaretskii
2011-07-29  3:04               ` Chris Sutcliffe
2011-07-29  6:13                 ` Eli Zaretskii
2011-07-28 16:13     ` Eli Zaretskii
2011-07-28 16:25       ` Joel Brobecker
2011-07-28 16:48       ` Tom Tromey

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