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 utils.c


CVSROOT:	/cvs/src
Module name:	src
Changes by:	palves@sourceware.org	2013-07-01 11:15:39

Modified files:
	gdb            : ChangeLog utils.c 

Log message:
	utils.c: pathconf call, check for _PC_PATH_MAX instead of HAVE_UNISTD_H.
	
	This check in utils.c for HAVE_UNISTD_H is being used as proxy for
	"HAVE_PATHCONF", as pathconf is supposed to be declared in unistd.h.
	
	It's possible that there are systems out there that have realpath,
	unistd.h and alloca, but not pathconf+_PC_PATH_MAX.  I don't know of
	any by heart, but if we import gnulib's unistd module (which a
	following patch will do), then unistd.h ends up always available, so
	the check ends up incorrect.  As pathconf is being called with
	_PC_PATH_MAX, check for that instead.
	
	gdb/
	2013-07-01  Pedro Alves  <palves@redhat.com>
	
	* utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
	defined instead of checking HAVE_UNISTD_H.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.15767&r2=1.15768
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/utils.c.diff?cvsroot=src&r1=1.301&r2=1.302


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