* patch for aix 4.3.3.07 support
@ 2001-03-23 13:34 Geoff Keating
[not found] ` <geoffk@geoffk.org>
[not found] ` <3ACE0D78.AE6EA9D0@cygnus.com>
0 siblings, 2 replies; 3+ messages in thread
From: Geoff Keating @ 2001-03-23 13:34 UTC (permalink / raw)
To: gdb-patches
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
============================================================
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: patch for aix 4.3.3.07 support
[not found] ` <geoffk@geoffk.org>
@ 2001-04-06 11:59 ` Kevin Buettner
0 siblings, 0 replies; 3+ messages in thread
From: Kevin Buettner @ 2001-04-06 11:59 UTC (permalink / raw)
To: Geoff Keating, gdb-patches
On Mar 23, 1:34pm, Geoff Keating wrote:
> * config/rs6000/nm-rs6000.h (PTRACE_ATTACH): Don't define.
> (PTRACE_DETACH): Don't define.
>
> Tested on powerpc-aix4.3.3; the attach.exp test passed. OK to commit?
Yes, please commit it.
Thanks,
Kevin
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: patch for aix 4.3.3.07 support
[not found] ` <1010406190330.ZM32014@ocotillo.lan>
@ 2001-04-06 12:37 ` Andrew Cagney
0 siblings, 0 replies; 3+ messages in thread
From: Andrew Cagney @ 2001-04-06 12:37 UTC (permalink / raw)
To: Kevin Buettner; +Cc: Geoff Keating, GDB Patches
Geoff, can you also add your self to the write after aproval list -
you've exceeded your quota of patches :-)
Andrew
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-04-06 12:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-03-23 13:34 patch for aix 4.3.3.07 support Geoff Keating
[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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox