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.
This commit is contained in:
parent
e9ef4f394d
commit
1ca8fce046
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2010-04-20 Joel Brobecker <brobecker@adacore.com>
|
||||||
|
|
||||||
|
* procfs.c (procfs_address_to_host_pointer): Only define when used.
|
||||||
|
|
||||||
2010-04-20 Joel Brobecker <brobecker@adacore.com>
|
2010-04-20 Joel Brobecker <brobecker@adacore.com>
|
||||||
|
|
||||||
* procfs.c (iterate_over_mappings_cb_ftype): New typedef.
|
* procfs.c (iterate_over_mappings_cb_ftype): New typedef.
|
||||||
|
|
|
@ -2902,10 +2902,11 @@ proc_parent_pid (procinfo *pi)
|
||||||
return pi->prstatus.pr_ppid;
|
return pi->prstatus.pr_ppid;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Convert a target address (a.k.a. CORE_ADDR) into a host address
|
/* Convert a target address (a.k.a. CORE_ADDR) into a host address
|
||||||
(a.k.a void pointer)! */
|
(a.k.a void pointer)! */
|
||||||
|
|
||||||
|
#if (defined (PCWATCH) || defined (PIOCSWATCH)) \
|
||||||
|
&& !(defined (PIOCOPENLWP) || defined (UNIXWARE))
|
||||||
static void *
|
static void *
|
||||||
procfs_address_to_host_pointer (CORE_ADDR addr)
|
procfs_address_to_host_pointer (CORE_ADDR addr)
|
||||||
{
|
{
|
||||||
|
@ -2917,6 +2918,7 @@ procfs_address_to_host_pointer (CORE_ADDR addr)
|
||||||
(gdb_byte *) &ptr, addr);
|
(gdb_byte *) &ptr, addr);
|
||||||
return ptr;
|
return ptr;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Function: proc_set_watchpoint
|
* Function: proc_set_watchpoint
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue