aboutsummaryrefslogtreecommitdiff
path: root/gdb/hppahpux-xdep.c
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1992-06-27 02:28:05 +0000
committerJohn Gilmore <gnu@cygnus>1992-06-27 02:28:05 +0000
commit3a1e7a62b5c87d841c5ac30aa6a83f1b364b177f (patch)
tree4958db8981cf1c88ae33838ef036caa2455f5cc1 /gdb/hppahpux-xdep.c
parent5cdea2ac2057724931961e408000aba444e43aa6 (diff)
downloadfsf-binutils-gdb-3a1e7a62b5c87d841c5ac30aa6a83f1b364b177f.zip
fsf-binutils-gdb-3a1e7a62b5c87d841c5ac30aa6a83f1b364b177f.tar.gz
fsf-binutils-gdb-3a1e7a62b5c87d841c5ac30aa6a83f1b364b177f.tar.bz2
Avoid PT_WDUSER because it crashes H-PUX.
Diffstat (limited to 'gdb/hppahpux-xdep.c')
-rw-r--r--gdb/hppahpux-xdep.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/hppahpux-xdep.c b/gdb/hppahpux-xdep.c
index eefb8ff..0e21a14 100644
--- a/gdb/hppahpux-xdep.c
+++ b/gdb/hppahpux-xdep.c
@@ -382,10 +382,16 @@ child_xfer_memory (memaddr, myaddr, len, write, target)
for (i = 0; i < count; i++, addr += sizeof (int))
{
+#if 0
+/* The HP-UX kernel crashes if you use PT_WDUSER to write into the text
+ segment. FIXME -- does it work to write into the data segment using
+ WIUSER, or do these idiots really expect us to figure out which segment
+ the address is in, so we can use a separate system call for it??! */
errno = 0;
ptrace (PT_WDUSER, inferior_pid, (PTRACE_ARG3_TYPE) addr,
buffer[i], 0);
if (errno)
+#endif
{
/* Using the appropriate one (I or D) is necessary for
Gould NP1, at least. */