From: Mark Kettenis <kettenis@chello.nl>
To: brobecker@gnat.com
Cc: gdb@sources.redhat.com
Subject: Re: ptrace(2) autoconf tests
Date: Mon, 09 Aug 2004 21:52:00 -0000 [thread overview]
Message-ID: <200408092152.i79LqnNb059801@elgar.kettenis.dyndns.org> (raw)
In-Reply-To: <20040809053715.GK1192@gnat.com> (message from Joel Brobecker on Sun, 8 Aug 2004 22:37:15 -0700)
Can people test this on AIX and HP-UX 10.20? I'm fairly certain this
will work, but I can't really test this myself, until I find some
10.20 installation media for my 712.
Mark
Index: ChangeLog
from Mark Kettenis <kettenis@gnu.org>
* infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
instead of FIVE_ARG_PTRACE.
Index: infptrace.c
===================================================================
RCS file: /cvs/src/src/gdb/infptrace.c,v
retrieving revision 1.36
diff -u -p -r1.36 infptrace.c
--- infptrace.c 6 Aug 2004 20:47:25 -0000 1.36
+++ infptrace.c 9 Aug 2004 21:46:45 -0000
@@ -122,7 +122,7 @@ call_ptrace (int request, int pid, PTRAC
if (request == PT_SETTRC)
{
errno = 0;
-#if !defined (FIVE_ARG_PTRACE)
+#ifndef PTRACE_TYPE_ARG5
pt_status = ptrace (PT_SETTRC, pid, addr, data);
#else
/* Deal with HPUX 8.0 braindamage. We never use the
@@ -159,7 +159,7 @@ call_ptrace (int request, int pid, PTRAC
saved_errno = errno;
errno = 0;
#endif
-#if !defined (FIVE_ARG_PTRACE)
+#ifndef PTRACE_TYPE_ARG5
pt_status = ptrace (request, pid, addr, data);
#else
/* Deal with HPUX 8.0 braindamage. We never use the
@@ -178,7 +178,7 @@ call_ptrace (int request, int pid, PTRAC
}
-#if defined (DEBUG_PTRACE) || defined (FIVE_ARG_PTRACE)
+#if defined (DEBUG_PTRACE) || defined (PTRACE_TYPE_ARG5)
/* For the rest of the file, use an extra level of indirection */
/* This lets us breakpoint usefully on call_ptrace. */
#define ptrace call_ptrace
next prev parent reply other threads:[~2004-08-09 21:52 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-08 21:00 Mark Kettenis
2004-08-08 21:42 ` Michael Chastain
2004-08-09 0:46 ` Mark Kettenis
2004-08-09 7:19 ` Michael Chastain
2004-08-09 13:09 ` Andrew Cagney
2004-08-09 15:34 ` Mark Kettenis
2004-08-09 15:53 ` Andrew Cagney
2004-08-09 5:37 ` Joel Brobecker
2004-08-09 21:52 ` Mark Kettenis [this message]
2004-08-10 5:49 ` Joel Brobecker
2004-08-10 6:56 ` Michael Chastain
2004-08-10 7:20 ` Marcel Moolenaar
2004-08-10 14:45 ` John David Anglin
2004-08-10 18:52 ` Joel Brobecker
2004-08-11 2:16 ` John David Anglin
2004-08-10 19:03 ` Joel Brobecker
[not found] <no.id>
2004-08-11 2:55 ` John David Anglin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200408092152.i79LqnNb059801@elgar.kettenis.dyndns.org \
--to=kettenis@chello.nl \
--cc=brobecker@gnat.com \
--cc=gdb@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox