This is the mail archive of the gdb@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: HPUX problems


> Just a heads up, in case somebody else is running in the same problem:
> 
> Gdb on both hpux10.20 and hpux11.00 hangs after the 'run' command is
> issued.
> 
> It seems that the problem is due to a broken vfork() implementation.
> (Jeff, correct me if I am wrong here)
> If fork() is used to start the inferior, all works fine.
> 
> A possible workaround, courtesy of Jeff Law, is to define vfork() to
> fork().
> 
> Something like this works (analogous for 11.00):
> 
> Index: hpux1020.mh
> ===================================================================
> RCS file: /cvs/uberbaum/gdb/config/pa/hpux1020.mh,v
> retrieving revision 1.3
> diff -u -r1.3 hpux1020.mh
> --- hpux1020.mh	2002/01/18 04:51:05	1.3
> +++ hpux1020.mh	2002/01/21 19:01:06
> @@ -1,10 +1,10 @@
>  # Host: Hewlett-Packard PA-RISC machine, running HPUX 10.20
>  
> -MH_CFLAGS = -D__HP_CURSES
> +MH_CFLAGS = -D__HP_CURSES -Dvfork=fork


Elena, can I suggest adding this to the PROBLEMS file.

Andrew




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