aboutsummaryrefslogtreecommitdiff
path: root/gdb/procfs.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2010-04-20 22:36:35 +0000
committerJoel Brobecker <brobecker@gnat.com>2010-04-20 22:36:35 +0000
commit1ca8fce0468fd95a151c232ce91cd181eab5d4fe (patch)
tree5273bf708d2ba66ba544967ddb513f14df132e73 /gdb/procfs.c
parente9ef4f394d34b122da58a2706deb7e5f4f131a5b (diff)
downloadgdb-1ca8fce0468fd95a151c232ce91cd181eab5d4fe.zip
gdb-1ca8fce0468fd95a151c232ce91cd181eab5d4fe.tar.gz
gdb-1ca8fce0468fd95a151c232ce91cd181eab5d4fe.tar.bz2
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.
Diffstat (limited to 'gdb/procfs.c')
-rw-r--r--gdb/procfs.c4
1 files changed, 3 insertions, 1 deletions
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