2004-08-22 Mark Kettenis <kettenis@gnu.org>
+ * ia64-linux-nat.c: Update copyright year.
+ (fetch_debug_register, store_debug_register)
+ (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
+ PTRACE_TYPE_ARG3.
+ * config/ia64/nm-linux.h: Update copyright year.
+ (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
+
* amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
from CORE_ADDR to struct frame_info *. Use
safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
/* Native support for GNU/Linux, for GDB, the GNU debugger.
- Copyright 1999, 2000, 2001
+
+ Copyright 1999, 2000, 2001, 2004
Free Software Foundation, Inc.
This file is part of GDB.
#define U_REGS_OFFSET 0
-#define PTRACE_ARG3_TYPE long
-#define PTRACE_XFER_TYPE long
-
/* Hardware watchpoints */
#define TARGET_HAS_HARDWARE_WATCHPOINTS
/* Functions specific to running gdb native on IA-64 running
GNU/Linux.
- Copyright 1999, 2000, 2001, 2002, 2003 Free Software Foundation,
- Inc.
+ Copyright 1999, 2000, 2001, 2002, 2003, 2004
+ Free Software Foundation, Inc.
This file is part of GDB.
if (tid == 0)
tid = PIDGET (ptid);
- val = ptrace (PT_READ_U, tid, (PTRACE_ARG3_TYPE) (PT_DBR + 8 * idx), 0);
+ val = ptrace (PT_READ_U, tid, (PTRACE_TYPE_ARG3) (PT_DBR + 8 * idx), 0);
return val;
}
if (tid == 0)
tid = PIDGET (ptid);
- (void) ptrace (PT_WRITE_U, tid, (PTRACE_ARG3_TYPE) (PT_DBR + 8 * idx), val);
+ (void) ptrace (PT_WRITE_U, tid, (PTRACE_TYPE_ARG3) (PT_DBR + 8 * idx), val);
}
static void
tid = PIDGET (ptid);
errno = 0;
- ptrace (PTRACE_GETSIGINFO, tid, (PTRACE_ARG3_TYPE) 0, &siginfo);
+ ptrace (PTRACE_GETSIGINFO, tid, (PTRACE_TYPE_ARG3) 0, &siginfo);
if (errno != 0 || siginfo.si_signo != SIGTRAP ||
(siginfo.si_code & 0xffff) != 0x0004 /* TRAP_HWBKPT */)