aboutsummaryrefslogtreecommitdiff
path: root/gdb/hp300ux-xdep.c
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1992-06-24 04:49:48 +0000
committerFred Fish <fnf@specifix.com>1992-06-24 04:49:48 +0000
commite676a15f0b9ef089973311249917e203917b3903 (patch)
treeac8656c9b5795932c78ea01ea53ce9eabee5a9ae /gdb/hp300ux-xdep.c
parent0fd24984ce2d13dd7ec231afa5b42e60ff1f1858 (diff)
downloadgdb-e676a15f0b9ef089973311249917e203917b3903.zip
gdb-e676a15f0b9ef089973311249917e203917b3903.tar.gz
gdb-e676a15f0b9ef089973311249917e203917b3903.tar.bz2
* Makefile.in (VERSION): Bump to 4.5.6.
* coffread.c (coff_end_symtab): Cast 2nd arg of complain() to correct type. * defs.h (NORETURN): Define away for Lucid compiler. * remote.c (remote_timer, remote_interrupt): Signal handlers take one int arg. * ser-termios.c (serial_write, serial_close): Return whatever value the write/close call returns, rather than falling off end. * inferior.h (PTRACE_ARG3_TYPE): Third arg to ptrace is int on more systems than it is "char *". Define PTRACE_ARG3_TYPE to default to int. * infptrace.c, hppabsd-xdep.c, hppahpux-xdep.c, i386-xdep.c, inferior.h (call_ptrace): Use PTRACE_ARG3_TYPE to declare type of third arg. * a68v-xdep.c, arm-xdep.c, convex-xdep.c, hp300ux-xdep.c, infrun.c, m88k-xdep.c, mach386-xdep.c, mips-xdep.c, os68k-xdep.c, pyr-tdep.c, pyr-xdep.c, rs6000-xdep.c, sparc-xdep.c, sun3-xdep.c, sun386-xdep.c, symm-xdep.c, ultra3-xdep.c: Use PTRACE_ARG3_TYPE to cast ptrace argument 3. * sparc-xdep.c, a68v-xdep.c (fetch_inferior_registers, store_inferior_registers): Supply missing fourth argument to ptrace().
Diffstat (limited to 'gdb/hp300ux-xdep.c')
-rw-r--r--gdb/hp300ux-xdep.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/gdb/hp300ux-xdep.c b/gdb/hp300ux-xdep.c
index 6c30766..f043acc 100644
--- a/gdb/hp300ux-xdep.c
+++ b/gdb/hp300ux-xdep.c
@@ -41,7 +41,8 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#define INFERIOR_AR0(u) \
((ptrace \
- (PT_RUAREA, inferior_pid, ((char *) &u.u_ar0 - (char *) &u), 0)) \
+ (PT_RUAREA, inferior_pid, \
+ (PTRACE_ARG3_TYPE) ((char *) &u.u_ar0 - (char *) &u), 0)) \
- KERNEL_U_ADDR)
static void
@@ -55,7 +56,8 @@ fetch_inferior_register (regno, regaddr)
union { int i; short s[2]; } ps_val;
int regval;
- ps_val.i = (ptrace (PT_RUAREA, inferior_pid, regaddr, 0));
+ ps_val.i = (ptrace (PT_RUAREA, inferior_pid, (PTRACE_ARG3_TYPE) regaddr,
+ 0));
regval = ps_val.s[0];
supply_register (regno, &regval);
}
@@ -67,7 +69,8 @@ fetch_inferior_register (regno, regaddr)
for (i = 0; i < REGISTER_RAW_SIZE (regno); i += sizeof (int))
{
- *(int *) &buf[i] = ptrace (PT_RUAREA, inferior_pid, regaddr, 0);
+ *(int *) &buf[i] = ptrace (PT_RUAREA, inferior_pid,
+ (PTRACE_ARG3_TYPE) regaddr, 0);
regaddr += sizeof (int);
}
supply_register (regno, buf);
@@ -82,7 +85,7 @@ store_inferior_register_1 (regno, regaddr, value)
int value;
{
errno = 0;
- ptrace (PT_WUAREA, inferior_pid, regaddr, value);
+ ptrace (PT_WUAREA, inferior_pid, (PTRACE_ARG3_TYPE) regaddr, value);
#if 0
/* HP-UX randomly sets errno to non-zero for regno == 25.
However, the value is correctly written, so ignore errno. */
@@ -107,7 +110,8 @@ store_inferior_register (regno, regaddr)
{
union { int i; short s[2]; } ps_val;
- ps_val.i = (ptrace (PT_RUAREA, inferior_pid, regaddr, 0));
+ ps_val.i = (ptrace (PT_RUAREA, inferior_pid, (PTRACE_ARG3_TYPE) regaddr,
+ 0));
ps_val.s[0] = (read_register (regno));
store_inferior_register_1 (regno, regaddr, ps_val.i);
}