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 procfs.c ChangeLog


CVSROOT:	/cvs/src
Module name:	src
Changes by:	brobecke@sourceware.org	2010-04-20 22:35:03

Modified files:
	gdb            : procfs.c ChangeLog 

Log message:
	procfs.c: Move solib_mappings_callback up to avoid compiler warning.
	
	There are currently 2 issues with the placement of this routine:
	- It's defined after it is being used (causing an implicit declaration);
	- It looks like it's being defined all the time, whereas it is used
	only on mips-irix (AFAICT) - shouldn't have this triggered a warning
	on sparc-solaris, for instance???
	
	In any case, this patch moves this function up, inside the right region,
	just before the function where it is actually used.
	
	gdb/ChangeLog:
	
	* procfs.c (solib_mappings_callback): Move function up to avoid
	a compiler warning.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/procfs.c.diff?cvsroot=src&r1=1.128&r2=1.129
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.11651&r2=1.11652


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