This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] Partly revert s/PTRACE_ARG3_TYPE/PTRACE_TYPE_ARG3/g step 1
- From: Mark Kettenis <kettenis at chello dot nl>
- To: gdb-patches at sources dot redhat dot com
- Date: Mon, 16 Aug 2004 17:28:10 +0200 (CEST)
- Subject: [PATCH] Partly revert s/PTRACE_ARG3_TYPE/PTRACE_TYPE_ARG3/g step 1
The inferior.h part broke HP-UX. This patch effectively reverts that
bit, while I think about a better strategy. That'll probably involve
some serious work on HP-UX, untangling ptrace and ttrace.
Sigh,
Committed,
Mark
Index: ChangeLog
from 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.
Index: inferior.h
===================================================================
RCS file: /cvs/src/src/gdb/inferior.h,v
retrieving revision 1.67
diff -u -p -r1.67 inferior.h
--- inferior.h 14 Aug 2004 23:14:34 -0000 1.67
+++ inferior.h 16 Aug 2004 15:22:57 -0000
@@ -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);
Index: infptrace.c
===================================================================
RCS file: /cvs/src/src/gdb/infptrace.c,v
retrieving revision 1.39
diff -u -p -r1.39 infptrace.c
--- infptrace.c 15 Aug 2004 15:33:21 -0000 1.39
+++ infptrace.c 16 Aug 2004 15:22:57 -0000
@@ -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;