diff options
author | Fred Fish <fnf@specifix.com> | 1992-06-24 04:49:48 +0000 |
---|---|---|
committer | Fred Fish <fnf@specifix.com> | 1992-06-24 04:49:48 +0000 |
commit | e676a15f0b9ef089973311249917e203917b3903 (patch) | |
tree | ac8656c9b5795932c78ea01ea53ce9eabee5a9ae /gdb/pyr-xdep.c | |
parent | 0fd24984ce2d13dd7ec231afa5b42e60ff1f1858 (diff) | |
download | gdb-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/pyr-xdep.c')
-rw-r--r-- | gdb/pyr-xdep.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/gdb/pyr-xdep.c b/gdb/pyr-xdep.c index 4517c0b..84b0156 100644 --- a/gdb/pyr-xdep.c +++ b/gdb/pyr-xdep.c @@ -46,7 +46,7 @@ fetch_inferior_registers (regno) registers_fetched (); for (regno = 0; regno < 64; regno++) { - reg_buf[regno] = ptrace (3, inferior_pid, regno, 0); + reg_buf[regno] = ptrace (3, inferior_pid, (PTRACE_ARG3_TYPE) regno, 0); #if defined(PYRAMID_CONTROL_FRAME_DEBUGGING) printf ("Fetching %s from inferior, got %0x\n", @@ -63,8 +63,8 @@ fetch_inferior_registers (regno) } /* that leaves regs 64, 65, and 66 */ datum = ptrace (3, inferior_pid, - ((char *)&u.u_pcb.pcb_csp) - - ((char *)&u), 0); + (PTRACE_ARG3_TYPE) (((char *)&u.u_pcb.pcb_csp) - + ((char *)&u)), 0); @@ -100,7 +100,8 @@ fetch_inferior_registers (regno) while (1) { register int inferior_saved_pc; - inferior_saved_pc = ptrace (1, inferior_pid, datum+((32+15)*4), 0); + inferior_saved_pc = ptrace (1, inferior_pid, + (PTRACE_ARG3_TYPE) (datum+((32+15)*4)), 0); if (inferior_saved_pc > 0) break; #if defined(PYRAMID_CONTROL_FRAME_DEBUGGING) printf("skipping kernel frame %08x, pc=%08x\n", datum, @@ -138,7 +139,8 @@ store_inferior_registers (regno) /*regaddr = register_addr (regno, offset);*/ regaddr = regno; errno = 0; - ptrace (6, inferior_pid, regaddr, read_register (regno)); + ptrace (6, inferior_pid, (PTRACE_ARG3_TYPE) regaddr, + read_register (regno)); if (errno != 0) { sprintf (buf, "writing register number %d", regno); @@ -153,7 +155,8 @@ store_inferior_registers (regno) /*regaddr = register_addr (regno, offset);*/ regaddr = regno; errno = 0; - ptrace (6, inferior_pid, regaddr, read_register (regno)); + ptrace (6, inferior_pid, (PTRACE_ARG3_TYPE) regaddr, + read_register (regno)); if (errno != 0) { sprintf (buf, "writing all regs, number %d", regno); |