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-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):
extern void child_resume (ptid_t, int, enum target_signal);
#ifndef PTRACE_ARG3_TYPE
-#define PTRACE_ARG3_TYPE int /* Correct definition for most systems. */
+#define PTRACE_ARG3_TYPE PTRACE_TYPE_ARG3
#endif
-extern int call_ptrace (int, int, PTRACE_TYPE_ARG3, int);
+extern int call_ptrace (int, int, PTRACE_ARG3_TYPE, int);
extern void pre_fork_inferior (void);
It exists so that all calls to ptrace are isolated in this
machine-dependent file. */
int
-call_ptrace (int request, int pid, PTRACE_TYPE_ARG3 addr, int data)
+call_ptrace (int request, int pid, PTRACE_ARG3_TYPE addr, int data)
{
int pt_status = 0;