From: Geoff Keating <geoffk@geoffk.org>
To: gdb-patches@sources.redhat.com
Subject: patch for aix 4.3.3.07 support
Date: Fri, 23 Mar 2001 13:34:00 -0000 [thread overview]
Message-ID: <200103232134.NAA13456@geoffk.org> (raw)
One of the changes in the 4.3.3.07 AIX maintenance release was
this code added to sys/ptrace.h:
/*
* Linux compatibility section.
* Define the Linux __ptrace_request enum. This is not
* ifdef'd because the library wrapper needs to see the enum
* without the _LINUX_SOURCE_COMPAT redefines of the PT_* values.
*/
enum __ptrace_request {
PTRACE_TRACEME,
PTRACE_PEEKTEXT,
PTRACE_PEEKDATA,
PTRACE_PEEKUSER,
PTRACE_POKETEXT,
PTRACE_POKEDATA,
PTRACE_POKEUSER,
PTRACE_CONT,
PTRACE_KILL,
PTRACE_SINGLESTEP,
PTRACE_GETREGS,
PTRACE_SETREGS,
PTRACE_GETFPREGS,
PTRACE_SETFPREGS,
PTRACE_ATTACH,
PTRACE_DETACH,
PTRACE_SYSCALL
};
Of course, these are not the same values as PT_ATTACH and PT_DETACH
(which are 30 and 31 respectively), and these values are not valid
unless you use __linux_ptrace() (which is #defined to be ptrace() if
you supply the right -D flag, which we don't want to do). Happily,
gdb doesn't actually use PTRACE_ATTACH or PTRACE_DETACH anywhere, so
the only immediate problem is the #define.
Tested on powerpc-aix4.3.3; the attach.exp test passed. OK to commit?
--
- Geoffrey Keating <geoffk@geoffk.org>
===File ~/patches/cygnus/gdb-aixptraceattach.patch==========
2001-03-21 Geoffrey Keating <geoffk@redhat.com>
* config/rs6000/nm-rs6000.h (PTRACE_ATTACH): Don't define.
(PTRACE_DETACH): Don't define.
Index: gdb/config/rs6000/nm-rs6000.h
===================================================================
RCS file: /cvs/src/src/gdb/config/rs6000/nm-rs6000.h,v
retrieving revision 1.6
diff -p -u -p -r1.6 nm-rs6000.h
--- nm-rs6000.h 2001/03/06 08:21:35 1.6
+++ nm-rs6000.h 2001/03/23 21:29:05
@@ -23,9 +23,6 @@
#define ATTACH_DETACH
-#define PTRACE_ATTACH PT_ATTACH
-#define PTRACE_DETACH PT_DETACH
-
/* Override copies of {fetch,store}_inferior_registers in infptrace.c. */
#define FETCH_INFERIOR_REGISTERS
============================================================
next reply other threads:[~2001-03-23 13:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-03-23 13:34 Geoff Keating [this message]
[not found] ` <geoffk@geoffk.org>
2001-04-06 11:59 ` Kevin Buettner
[not found] ` <3ACE0D78.AE6EA9D0@cygnus.com>
[not found] ` <1010406190330.ZM32014@ocotillo.lan>
2001-04-06 12:37 ` Andrew Cagney
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=200103232134.NAA13456@geoffk.org \
--to=geoffk@geoffk.org \
--cc=gdb-patches@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