X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fhppa-hpux-nat.c;h=09b66dcd22f076aa29600d47dfce7d4bf21ec42c;hb=7be1c4891a2036c31e706908d43f33f7f59ae5a9;hp=5338ae24985f5f8156cbd110810e3ba312c963d6;hpb=8a3fe4f86c51d363e10efed1046ebcbdc853ae99;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/hppa-hpux-nat.c b/gdb/hppa-hpux-nat.c index 5338ae2498..09b66dcd22 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; }