[obish] -Wunused-function warnings

Andrew Cagney cagney@gnu.org
Mon Jan 12 14:58:00 GMT 2004


>> src/gdb/breakpoint.c:6009: warning: `ep_parse_optional_filename' defined but not used
> 
> 
> Did you test on a target without SOLIB_ADD?  These are conditionally
> used.  Things to do: finish multi-arching solibs...

The list comes from building all the cross targets listed in the 
MAINTAINERS file.  The problem of #ifdef code is one reason for posting 
this first - if things are cleaned up a little the removal task becomes 
much easier (a search of the GDB tree will be needed for each apparently 
unused function).

I don't know where solibs are at.

>> src/gdb/infrun.c:65: warning: `set_follow_fork_mode_command' declared `static' but never defined
> 
> 
> Yeah, dead.  Probably since add_set_enum_cmd.
> 
> 
>> src/gdb/mips-tdep.c:661: warning: `mips_convert_register_p' defined but not used
>> src/gdb/mips-tdep.c:672: warning: `mips_register_to_value' defined but not used
>> src/gdb/mips-tdep.c:680: warning: `mips_value_to_register' defined but not used
> 
> 
> Ya!

Actually, I suspect that they are needed - never got hooked up when 
merged from a branch :-(  My MIPS boxes are finally back up so I can 
check this.

Andrew




More information about the Gdb-patches mailing list