This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
src/gdb procfs.c ChangeLog
- From: brobecke at sourceware dot org
- To: gdb-cvs at sourceware dot org
- Date: 20 Apr 2010 22:35:04 -0000
- Subject: 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