/* Native-dependent code for PA-RISC HP-UX.
- Copyright 2004 Free Software Foundation, Inc.
+ Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
This file is part of GDB.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place - Suite 330,
- Boston, MA 02111-1307, USA. */
+ Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA. */
#include "defs.h"
#include "inferior.h"
`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);
`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;
}