Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFC/AIX] xm-aix4.h - Remove FIVE_ARG_PTRACE & USE_O_NOCTTY defines
@ 2004-08-08  4:49 Joel Brobecker
  2004-08-08 11:50 ` Mark Kettenis
  0 siblings, 1 reply; 3+ messages in thread
From: Joel Brobecker @ 2004-08-08  4:49 UTC (permalink / raw)
  To: gdb-patches; +Cc: Andrew Cagney, Peter Schauer, Kevin Buettner

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-08-08 13:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-08  4:49 [RFC/AIX] xm-aix4.h - Remove FIVE_ARG_PTRACE & USE_O_NOCTTY defines Joel Brobecker
2004-08-08 11:50 ` Mark Kettenis
2004-08-08 13:51   ` Andrew Cagney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox