summaryrefslogtreecommitdiffstats
path: root/gdb/hppah-nat.c
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>1999-08-23 22:40:00 +0000
committerJason Molenda <jmolenda@apple.com>1999-08-23 22:40:00 +0000
commit53a5351d907ef4eacd463a48a86d35b2b70b9f60 (patch)
tree22c35199ec70962e33c63d2111f333bfdcce02e1 /gdb/hppah-nat.c
parent093505ad6138b9e165876765ecd667c90fc921ae (diff)
downloadppe42-binutils-53a5351d907ef4eacd463a48a86d35b2b70b9f60.tar.gz
ppe42-binutils-53a5351d907ef4eacd463a48a86d35b2b70b9f60.zip
import gdb-1999-08-23 snapshot
Diffstat (limited to 'gdb/hppah-nat.c')
-rw-r--r--gdb/hppah-nat.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/gdb/hppah-nat.c b/gdb/hppah-nat.c
index 11e9d02c23..03157ed2ec 100644
--- a/gdb/hppah-nat.c
+++ b/gdb/hppah-nat.c
@@ -139,6 +139,12 @@ store_inferior_registers (regno)
}
return;
}
+
+ /* Another crock. HPUX complains if you write a nonzero value to
+ the high part of IPSW. What will it take for HP to catch a
+ clue about building sensible interfaces? */
+ if (regno == IPSW_REGNUM && len == 8)
+ *(int *)&registers[REGISTER_BYTE (regno)] = 0;
#endif
for (i = 0; i < len; i += sizeof (int))
@@ -152,7 +158,7 @@ store_inferior_registers (regno)
the kernel doesn't let us at the registers. */
char *err = safe_strerror (errno);
char *msg = alloca (strlen (err) + 128);
- sprintf (msg, "reading `%s' register: %s",
+ sprintf (msg, "writing `%s' register: %s",
REGISTER_NAME (regno), err);
/* If we fail to write the PC, give a true error instead of
just a warning. */
OpenPOWER on IntegriCloud