From: Joel Brobecker Date: Tue, 20 Apr 2010 22:36:35 +0000 (+0000) Subject: Unused function in procfs.c on alpha-tru64. X-Git-Tag: sid-snapshot-20100501~130 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1ca8fce0468fd95a151c232ce91cd181eab5d4fe;p=external%2Fbinutils.git Unused function in procfs.c on alpha-tru64. The procfs_address_to_host_pointer function was not used outside of alpha-tru64, and thus was triggering a compiler warning. Adjusted accordingly. gdb/ChangeLog: * procfs.c (procfs_address_to_host_pointer): Only define when used. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0bd3f9e..8684d81 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,9 @@ 2010-04-20 Joel Brobecker + * procfs.c (procfs_address_to_host_pointer): Only define when used. + +2010-04-20 Joel Brobecker + * procfs.c (iterate_over_mappings_cb_ftype): New typedef. (iterate_over_mappings): Adjust function profile. Add declaration. (insert_dbx_link_bpt_in_region, info_mappings_callback): diff --git a/gdb/procfs.c b/gdb/procfs.c index 57270fc..faf8409 100644 --- a/gdb/procfs.c +++ b/gdb/procfs.c @@ -2902,10 +2902,11 @@ proc_parent_pid (procinfo *pi) return pi->prstatus.pr_ppid; } - /* Convert a target address (a.k.a. CORE_ADDR) into a host address (a.k.a void pointer)! */ +#if (defined (PCWATCH) || defined (PIOCSWATCH)) \ + && !(defined (PIOCOPENLWP) || defined (UNIXWARE)) static void * procfs_address_to_host_pointer (CORE_ADDR addr) { @@ -2917,6 +2918,7 @@ procfs_address_to_host_pointer (CORE_ADDR addr) (gdb_byte *) &ptr, addr); return ptr; } +#endif /* * Function: proc_set_watchpoint