This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[RFC/AIX] xm-aix4.h - Remove FIVE_ARG_PTRACE & USE_O_NOCTTY defines
- From: Joel Brobecker <brobecker at gnat dot com>
- To: gdb-patches at sources dot redhat dot com
- Cc: Andrew Cagney <cagney at redhat dot com>,Peter Schauer <Peter dot Schauer at regent dot e-technik dot tu-muenchen dot de>,Kevin Buettner <kevinb at redhat dot com>
- Date: Sat, 7 Aug 2004 21:49:44 -0700
- Subject: [RFC/AIX] xm-aix4.h - Remove FIVE_ARG_PTRACE & USE_O_NOCTTY defines
config/xm-aix4.h has the following definitions:
| #define FIVE_ARG_PTRACE
|
| /* This system requires that we open a terminal with O_NOCTTY for it to
| not become our controlling terminal. */
Should be detected by configure instead of being hard-wired in this
file. I would probably need some help there: The lazy approach would
be to detect the few hosts by name and then define this on these systems.
But is there a way that would be generic? Normally, we rely on trying to
compile some code, but all we'll have here is a warning, not a compilation
failure... How
| #define USE_O_NOCTTY
For this one, it seems that we have no choice but to hard-code somewhere
that terminals should be opened using O_NOCTTY on AIX. Configure seems
as good a place a any.
Opinions?
--
Joel