This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]