* infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 50fc3e4e9f4f9f99ea80a5597cbee18d277e158f..dd0eb8530daf7e81605ca3bebf9f1dc4e68aacde 100644 (file)
@@ -1,5 +1,142 @@
+2004-08-22  Mark Kettenis  <kettenis@gnu.org>
+
+       * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
+       Reorder includes.
+       (fetch_register, store_register): Remove prototypes.
+       (child_resume): Reorganize code and comments such that it is
+       grouped a bit more logically.
+       (attach): Explicitly compare errno against 0.
+       (detach): Likewise.  Use perror_with_name instead of
+       print_sys_errmsg.
+       * Makefile.in (infptrace.o): Update dependencies.
+
+       * 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.
+       (amd64_linux_sigtramp_p): Adjust for changed signature of
+       and64_linux_sigtramp_start
+
+       * gdb_ptrace.h: GNU/Linux.
+
+       * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
+       Remove defines.
+
+       * infptrace.c: Include "gdb_assert.h".
+       (PTRACE_XFER_TYPE): Remove define.
+       (offsetof): Only define if U_REGS_OFFSET isn't defined.
+       (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
+       Tweak comment.
+       (fetch_inferior_registers, store_inferior_registers): Remove
+       redundant culry braces.  Tweak comment.  s/regno/regnum.
+       * Makefile.in (infptrace.o): Update dependencies.
+
+       * configure.in: Change test for return type of ptrace to default
+       to `long' instead of `int'.
+       * configure: Regenerate.        
+
+2004-08-21  Mark Kettenis  <kettenis@gnu.org>
+
+       * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
+
+       * configure.in: Check for ttrace function.
+       * configure, config.in: Regenerate.     
+
+       * gdb_ptrace.h: New file.
+       * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
+       <sys/ptrace.h>.
+       (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
+       (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
+       (attach): Don't define PT_ATTACH.
+       (detach): Don't define PT_DETACH.
+       * Makefile.in (gdb_ptrace_h): New variable.
+       (infptrace.o): Update dependencies.
+
+2004-08-16  Mark Kettenis  <kettenis@gnu.org>
+
+       * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
+       instead of `int' if not already defined.
+       (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
+       PTRACE_TYPE_ARG3.
+       * infptrace.c (call_ptrace): Revert change that replaced
+       PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
+
 2004-08-15  Mark Kettenis  <kettenis@gnu.org>
 
+       * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
+       Remove defines.
+
+       * linux-nat.c (kill_inferior): Add missing third and fourth
+       arguments to ptrace call.  Don't use PTRACE_ARG3_TYPE.
+
+       * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
+       PTRACE_TYPE_RET.
+
+       * proc-why.c (proc_prettyfprint_why): Fix format string.
+
+       * solib-osf.c (osf_current_sos): Remove unsused label.
+
+       * configure.in: Add <ncurses/ncurses.h> to the list of possible
+       curses headers.
+       * configure, config.in: Regenerate.     
+       * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
+       <ncurses/ncurses.h>.
+
+       * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
+       * config/nm-nbsd.h: Update copyright year.
+       (PTRACE_ARG3_TYPE): Remove define.
+
+       * sparc-nat.c (fetch_inferior_registers)
+       (store_inferior_registers, sparc_xfer_wcookie): 
+       Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
+
+       * alphabsd-nat.c (fetch_inferior_registers):
+       (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
+       PTRACE_TYPE_ARG3.
+       * amd64bsd-nat.c (fetch_inferior_registers)
+       (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
+       PTRACE_TYPE_ARG3.
+       * armnbsd-nat.c: Update copyright year.
+       (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
+       (store_register, store_regs, store_fp_register, store_fp_regs):
+       Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
+       * hppabsd-nat.c (fetch_inferior_registers)
+       (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
+       PTRACE_TYPE_ARG3.
+       * i386bsd-nat.c (fetch_inferior_registers)
+       (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
+       Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
+       * m68kbsd-nat.c (fetch_inferior_registers)
+       (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
+       PTRACE_TYPE_ARG3.
+       * m88kbsd-nat.c (fetch_inferior_registers)
+       (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
+       PTRACE_TYPE_ARG3.
+       * mipsnbsd-nat.c: Update copyright year.
+       (fetch_inferior_registers, store_inferior_registers):
+       Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
+       * ns32knbsd-nat.c: Update copyright year.
+       (fetch_inferior_registers, store_inferior_registers):
+       Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
+       * ppcnbsd-nat.c (fetch_inferior_registers):
+       (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
+       PTRACE_TYPE_ARG3.
+       * ppcobsd-nat.c (fetch_inferior_registers):
+       (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
+       PTRACE_TYPE_ARG3.
+       * shnbsd-nat.c: Update copyright year.
+       (fetch_inferior_registers, store_inferior_registers):
+       Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
+       * vaxbsd-nat.c (fetch_inferior_registers)
+       (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
+       PTRACE_TYPE_ARG3.
+       
        * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
        PTRACE_TYPE_ARG3.
        * infptrace.c (call_ptrace, child_resume, attach, detach)
This page took 0.027263 seconds and 4 git commands to generate.