This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: HPUX problems
- From: Andrew Cagney <ac131313 at cygnus dot com>
- To: Elena Zannoni <ezannoni at redhat dot com>
- Cc: gdb at sources dot redhat dot com, law at redhat dot com
- Date: Sat, 09 Feb 2002 23:45:27 -0500
- Subject: Re: HPUX problems
- References: <15436.39582.760941.103254@localhost.cygnus.com>
> 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