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:34:10 -0000
- Subject: src/gdb procfs.c ChangeLog
CVSROOT: /cvs/src
Module name: src
Changes by: brobecke@sourceware.org 2010-04-20 22:34:10
Modified files:
gdb : procfs.c ChangeLog
Log message:
procfs.c: Move find_signalled_thread and find_stop_signal.
These two functions are only used from procfs_make_note_section, which
itself is only defined if:
#if defined (UNIXWARE) || defined (PIOCOPENLWP) || defined (PCAGENT)
So these two functions are unused on mips-irix, and they get flagged
by -Wunused-function. This patch simply moves these functions closer
to the function that uses them, which also has the effect of putting
them inside the same #if block as procfs_make_note_section. Thus
they are defined only when used.
gdb/ChangeLog:
* procfs.c (find_signalled_thread, find_stop_signal): Move
these functions down to define them only when used.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/procfs.c.diff?cvsroot=src&r1=1.127&r2=1.128
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.11650&r2=1.11651