/* 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.
lwpid_t lwp = ptid_get_lwp (inferior_ptid);
if (ttrace (TT_LWP_RUREGS, pid, lwp, addr, size, (uintptr_t)buf) == -1)
- error ("Couldn't read register %s (#%d): %s",
+ error (_("Couldn't read register %s (#%d): %s"),
REGISTER_NAME (regnum), regnum, safe_strerror (errno));
}
#else
errno = 0;
buf[i] = ptrace (PT_RUREGS, pid, (PTRACE_TYPE_ARG3) addr, 0, 0);
if (errno != 0)
- error ("Couldn't read register %s (#%d): %s",
+ error (_("Couldn't read register %s (#%d): %s"),
REGISTER_NAME (regnum), regnum, safe_strerror (errno));
addr += sizeof (PTRACE_TYPE_RET);
`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;
}
lwpid_t lwp = ptid_get_lwp (inferior_ptid);
if (ttrace (TT_LWP_WUREGS, pid, lwp, addr, size, (uintptr_t)buf) == -1)
- error ("Couldn't write register %s (#%d): %s",
+ error (_("Couldn't write register %s (#%d): %s"),
REGISTER_NAME (regnum), regnum, safe_strerror (errno));
}
#else
errno = 0;
ptrace (PT_WUREGS, pid, (PTRACE_TYPE_ARG3) addr, buf[i], 0);
if (errno != 0)
- error ("Couldn't write register %s (#%d): %s",
+ error (_("Couldn't write register %s (#%d): %s"),
REGISTER_NAME (regnum), regnum, safe_strerror (errno));
addr += sizeof (PTRACE_TYPE_RET);
hppa_hpux_child_can_run (void)
{
/* This variable is controlled by modules that layer their own
- process structure atop that provided here. hpux-thread.c does
- this because of the HP-UX user-mode level thread model. */
+ process structure atop that provided here. The code in
+ hpux-thread.c does this to support the HP-UX user-mode DCE
+ threads. */
return !child_suppress_run;
}
\f