summaryrefslogtreecommitdiff
path: root/gdb/procfs.c
diff options
context:
space:
mode:
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 57270fc509f..faf840948e8 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