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]

Re: [RFC/AIX] xm-aix4.h - Remove vfork redefine


   Date: Sat, 7 Aug 2004 21:55:34 -0700
   From: Joel Brobecker <brobecker@gnat.com>

config/xm-aix4.h contains the following define:

| /* There is no vfork. */
| | #define vfork fork


   I think we should add a (link) test in configure for that. But the other
   alternative is to do as we did for HP/UX (but the reason we did it that
   way for HP/UX is because vfork is broken on this system).

Autoconf already handles that.  There should be a "#define vfork fork"
in your config.h.

In the case of HP, while autoconf indicates the presence of vfork, it doesn't (can't) detect the brokenness(1) that stops it working with GDB :-( That may be the situtation here, but then it easily also be a hangover from a defunct AIX version, or even a cut/paste error :-/


Joel, I'd just try it and see.

Andrew


(1) The combination of vfork, exec and ptrace



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