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]

[patch/5.2] Hack HP/UX to work using -Dvfork=fork


Sigh,

There must be a rule that as part of every release there is at least one 
hack.  Well the attached is the hack for GDB 5.2.  It gets it to work on 
HP/UX.

enjoy,
Andrew
2002-04-07  Andrew Cagney  <ac131313@redhat.com>

	I believe Jeff Law denies responsability for this one:
	* config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
	* config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
	* config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
	Work-around for PR gdb/366.

Index: config/pa/hpux1020.mh
===================================================================
RCS file: /cvs/src/src/gdb/config/pa/hpux1020.mh,v
retrieving revision 1.4
diff -u -r1.4 hpux1020.mh
--- config/pa/hpux1020.mh	24 Jan 2002 03:42:59 -0000	1.4
+++ config/pa/hpux1020.mh	7 Apr 2002 22:21:24 -0000
@@ -1,6 +1,10 @@
 # Host: Hewlett-Packard PA-RISC machine, running HPUX 10.20
 
-MH_CFLAGS = -D__HP_CURSES
+# FIXME: cagney/2002-04-07: gdb/366: The -Dvfork=fork hack below is
+# stop GDB hanging on HP/UX.  For some reason vfork() hangs yet fork()
+# doesn't ....
+
+MH_CFLAGS = -D__HP_CURSES -Dvfork=fork
 
 XM_FILE= xm-hppah.h
 
Index: config/pa/hpux11.mh
===================================================================
RCS file: /cvs/src/src/gdb/config/pa/hpux11.mh,v
retrieving revision 1.4
diff -u -r1.4 hpux11.mh
--- config/pa/hpux11.mh	24 Jan 2002 03:42:59 -0000	1.4
+++ config/pa/hpux11.mh	7 Apr 2002 22:21:24 -0000
@@ -1,6 +1,10 @@
 # Host: Hewlett-Packard PA-RISC machine, running HPUX 11.00
 
-MH_CFLAGS = -D__HP_CURSES
+# FIXME: cagney/2002-04-07: gdb/366: The -Dvfork=fork hack below is
+# stop GDB hanging on HP/UX.  For some reason vfork() hangs yet fork()
+# doesn't ....
+
+MH_CFLAGS = -D__HP_CURSES -Dvfork=fork
 
 XM_FILE= xm-hppah.h
 
Index: config/pa/hpux11w.mh
===================================================================
RCS file: /cvs/src/src/gdb/config/pa/hpux11w.mh,v
retrieving revision 1.4
diff -u -r1.4 hpux11w.mh
--- config/pa/hpux11w.mh	24 Jan 2002 03:42:59 -0000	1.4
+++ config/pa/hpux11w.mh	7 Apr 2002 22:21:24 -0000
@@ -1,6 +1,10 @@
 # Host: Hewlett-Packard PA-RISC machine, running HPUX 11.00
 
-MH_CFLAGS = -D__HP_CURSES
+# FIXME: cagney/2002-04-07: gdb/366: The -Dvfork=fork hack below is
+# stop GDB hanging on HP/UX.  For some reason vfork() hangs yet fork()
+# doesn't ....
+
+MH_CFLAGS = -D__HP_CURSES -Dvfork=fork
 
 XM_FILE= xm-hppah.h
 

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