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

src/gdb ChangeLog python/python-internal.h


CVSROOT:	/cvs/src
Module name:	src
Changes by:	brobecke@sourceware.org	2010-10-26 18:06:34

Modified files:
	gdb            : ChangeLog 
	gdb/python     : python-internal.h 

Log message:
	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.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.12279&r2=1.12280
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/python/python-internal.h.diff?cvsroot=src&r1=1.33&r2=1.34


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