aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2005-06-15 16:34:27 +0000
committerMark Kettenis <kettenis@gnu.org>2005-06-15 16:34:27 +0000
commit0d559b9924c1c64b939ac8c41c4756095437de23 (patch)
treeca98b0831dfd06be000754d657bb49ee714df75d
parentac18822241cf8b9a448e3f4d92b3769a7162626a (diff)
downloadbinutils-0d559b9924c1c64b939ac8c41c4756095437de23.zip
binutils-0d559b9924c1c64b939ac8c41c4756095437de23.tar.gz
binutils-0d559b9924c1c64b939ac8c41c4756095437de23.tar.bz2
* hppa-hpux-nat.c (hppa_hpux_fetch_register)
(hppa_hpux_store_register): Add casts in extract_unsigned_integer and store_usigned_integer calls.
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/hppa-hpux-nat.c10
2 files changed, 11 insertions, 5 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 4c21930..127ed7c 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2005-06-15 Mark Kettenis <kettenis@jive.nl>
+
+ * hppa-hpux-nat.c (hppa_hpux_fetch_register)
+ (hppa_hpux_store_register): Add casts in extract_unsigned_integer
+ and store_usigned_integer calls.
+
2005-06-14 Nick Roberts <nickrob@snap.net.nz>
* mi/mi-main.c (mi_cmd_data_list_register_values): Remove test for
diff --git a/gdb/hppa-hpux-nat.c b/gdb/hppa-hpux-nat.c
index 5338ae2..09b66dc 100644
--- a/gdb/hppa-hpux-nat.c
+++ b/gdb/hppa-hpux-nat.c
@@ -1,6 +1,6 @@
/* Native-dependent code for PA-RISC HP-UX.
- Copyright 2004 Free Software Foundation, Inc.
+ Copyright 2004, 2005 Free Software Foundation, Inc.
This file is part of GDB.
@@ -134,8 +134,8 @@ hppa_hpux_fetch_register (int regnum)
`struct save_state', even for 64-bit code. */
if (regnum == HPPA_FLAGS_REGNUM && size == 8)
{
- ULONGEST flags = extract_unsigned_integer (buf, 4);
- store_unsigned_integer (buf, 8, flags);
+ ULONGEST flags = extract_unsigned_integer ((gdb_byte *)buf, 4);
+ store_unsigned_integer ((gdb_byte *)buf, 8, flags);
}
regcache_raw_supply (current_regcache, regnum, buf);
@@ -176,8 +176,8 @@ hppa_hpux_store_register (int regnum)
`struct save_state', even for 64-bit code. */
if (regnum == HPPA_FLAGS_REGNUM && size == 8)
{
- ULONGEST flags = extract_unsigned_integer (buf, 8);
- store_unsigned_integer (buf, 4, flags);
+ ULONGEST flags = extract_unsigned_integer ((gdb_byte *)buf, 8);
+ store_unsigned_integer ((gdb_byte *)buf, 4, flags);
size = 4;
}