Fix build failures with python support on sparc-solaris
authorJoel Brobecker <brobecker@gnat.com>
Tue, 26 Oct 2010 18:06:34 +0000 (18:06 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Tue, 26 Oct 2010 18:06:34 +0000 (18:06 +0000)
commitaed1781d4015eba1f780f65e2f11ef7841be4c46
tree42e7b9568587f1970ab5fb681980513391f0622b
parent1e3fad37be22688d325e2e96ce308e790aa81120
Fix build failures with python support on sparc-solaris

There were two types of errors, mostly compiler warnings:

  1. _FILE_OFFSET_BITS being redefined in pyconfig.h;
     This is a problem we're familiar with, having seen similar
     issues on GNU/Linux systems. I used a similar solution.

  2. GCC 4.5 complains that calls to PyEval_InitThreads and
     PyEval_ReleaseLock have no effect.  This is because our Python
     is built without thread support, leading us to use the dummy
     #define in python-internal.h which just gets replaced by `0'.
     Since this function returns void (checked versions 2.4 and 2.7),
     I simply removed the 0.

gdb/ChangeLog:

        python/python-internal.h (_FILE_OFFSET_BITS): Undefine.
        (PyEval_InitThreads): Remove duplicate. Define as nothing.
        (PyEval_ReleaseLock): Define as nothing.
gdb/ChangeLog
gdb/python/python-internal.h
This page took 0.027842 seconds and 4 git commands to generate.