* 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.
This commit is contained in:
Mark Kettenis 2004-08-16 15:27:54 +00:00
parent 2766e5e41b
commit f8707cace9
3 changed files with 12 additions and 3 deletions

View File

@ -1,3 +1,12 @@
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):

View File

@ -237,10 +237,10 @@ int ptrace_wait (ptid_t, int *);
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);

View File

@ -107,7 +107,7 @@ void _initialize_infptrace (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;