* Re: [RFA] Fix cygwin compilation failure for python code
[not found] <14243.7868555591$1268066303@news.gmane.org>
@ 2010-03-08 17:39 ` Tom Tromey
2010-03-09 14:52 ` [RFA-v2] " Pierre Muller
0 siblings, 1 reply; 4+ messages in thread
From: Tom Tromey @ 2010-03-08 17:39 UTC (permalink / raw)
To: Pierre Muller; +Cc: gdb-patches
>>>>> "Pierre" == Pierre Muller <pierre.muller@ics-cnrs.unistra.fr> writes:
Pierre> The patch below allows for me to
Pierre> read in "symtab.h" before "python-internal.h" is read,
Pierre> and thus get a real definition of the symtab_and_line struct.
Pierre> I wonder why I am the only one having this
Pierre> problem?
Me too.
Pierre> Is this patch OK? Otherwise,
Pierre> how should such problems be handled?
I would recommend just including symtab.h from python-internal.h.
Pierre> inlcusion to allow compilation.
Typo in "inclusion".
Tom
^ permalink raw reply [flat|nested] 4+ messages in thread
* [RFA-v2] Fix cygwin compilation failure for python code
2010-03-08 17:39 ` [RFA] Fix cygwin compilation failure for python code Tom Tromey
@ 2010-03-09 14:52 ` Pierre Muller
2010-03-09 17:02 ` Tom Tromey
0 siblings, 1 reply; 4+ messages in thread
From: Pierre Muller @ 2010-03-09 14:52 UTC (permalink / raw)
To: tromey; +Cc: gdb-patches
> Pierre> I wonder why I am the only one having this
> Pierre> problem?
>
> Me too.
Glad to hear that I am not the only one ...
> Pierre> Is this patch OK? Otherwise,
> Pierre> how should such problems be handled?
>
> I would recommend just including symtab.h from python-internal.h.
You are right, this is easier,
but I was suspecting that the
original writers of this header
wanted it to NOT depend on any real gdb header...
Anyway, here is a new version of the
compilation failure fix.
Python is not even mentioned in MAINTAINERS...
Is this version OK?
Pierre Muller
gdb/ChangeLog entry:
2010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
* python/python-internal.h: Include symtab.h.
Index: python-internal.h
===================================================================
RCS file: /cvs/src/src/gdb/python/python-internal.h,v
retrieving revision 1.21
diff -u -p -r1.21 python-internal.h
--- python-internal.h 24 Feb 2010 21:18:27 -0000 1.21
+++ python-internal.h 9 Mar 2010 14:44:56 -0000
@@ -61,9 +61,11 @@ typedef int Py_ssize_t;
#define PyEval_ReleaseLock() 0
#endif
+/* In order to be able to parse symtab_and_line_to_sal_object function
+ a real symtab_and_line structure is needed. */
+#include "symtab.h"
+
struct block;
-struct symbol;
-struct symtab_and_line;
struct value;
struct language_defn;
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [RFA-v2] Fix cygwin compilation failure for python code
2010-03-09 14:52 ` [RFA-v2] " Pierre Muller
@ 2010-03-09 17:02 ` Tom Tromey
2010-03-09 17:14 ` Pierre Muller
0 siblings, 1 reply; 4+ messages in thread
From: Tom Tromey @ 2010-03-09 17:02 UTC (permalink / raw)
To: Pierre Muller; +Cc: gdb-patches
>>>>> "Pierre" == Pierre Muller <pierre.muller@ics-cnrs.unistra.fr> writes:
Pierre> You are right, this is easier, but I was suspecting that the
Pierre> original writers of this header wanted it to NOT depend on any
Pierre> real gdb header...
FWIW I'm one of the original authors. I don't think it really matters
here. I'd rather have excess includes than try to deal with include
ordering problems.
Pierre> Is this version OK?
Yes, thanks.
Tom
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [RFA-v2] Fix cygwin compilation failure for python code
2010-03-09 17:02 ` Tom Tromey
@ 2010-03-09 17:14 ` Pierre Muller
0 siblings, 0 replies; 4+ messages in thread
From: Pierre Muller @ 2010-03-09 17:14 UTC (permalink / raw)
To: 'Tom Tromey'; +Cc: gdb-patches
> FWIW I'm one of the original authors. I don't think it really matters
> here. I'd rather have excess includes than try to deal with include
> ordering problems.
I agree with you here!
> Pierre> Is this version OK?
>
> Yes, thanks.
Thanks, committed.
Pierre
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-03-09 17:14 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <14243.7868555591$1268066303@news.gmane.org>
2010-03-08 17:39 ` [RFA] Fix cygwin compilation failure for python code Tom Tromey
2010-03-09 14:52 ` [RFA-v2] " Pierre Muller
2010-03-09 17:02 ` Tom Tromey
2010-03-09 17:14 ` Pierre Muller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox