svn commit: r400860 - in head/devel/gdb: . files

Tijl Coosemans tijl at FreeBSD.org
Thu Nov 5 18:48:48 UTC 2015


Author: tijl
Date: Thu Nov  5 18:48:46 2015
New Revision: 400860
URL: https://svnweb.freebsd.org/changeset/ports/400860

Log:
  - Fix a potential parallel build issue
  - Fix a regression when debugging a threaded process that forks
    (like r399623, but for vfork(2))
  
  PR:		203661
  Submitted by:	luca.pizzamiglio at gmail.com (maintainer)

Modified:
  head/devel/gdb/Makefile
  head/devel/gdb/files/extrapatch-kgdb
  head/devel/gdb/files/fbsd-threads.c

Modified: head/devel/gdb/Makefile
==============================================================================
--- head/devel/gdb/Makefile	Thu Nov  5 17:17:05 2015	(r400859)
+++ head/devel/gdb/Makefile	Thu Nov  5 18:48:46 2015	(r400860)
@@ -3,7 +3,7 @@
 
 PORTNAME=	gdb
 PORTVERSION=	7.10
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	devel
 MASTER_SITES=	GNU
 

Modified: head/devel/gdb/files/extrapatch-kgdb
==============================================================================
--- head/devel/gdb/files/extrapatch-kgdb	Thu Nov  5 17:17:05 2015	(r400859)
+++ head/devel/gdb/files/extrapatch-kgdb	Thu Nov  5 18:48:46 2015	(r400860)
@@ -2,6 +2,16 @@ diff --git gdb/Makefile.in gdb/Makefile.
 index dfaa8a3..182d875 100644
 --- gdb/Makefile.in
 +++ gdb/Makefile.in
+@@ -207,7 +207,8 @@
+ 
+ # Generated headers in the gnulib directory.  These must be listed
+ # so that they are generated before other files are compiled.
+-GNULIB_H = $(GNULIB_BUILDDIR)/import/string.h @GNULIB_STDINT_H@
++GNULIB_H = $(GNULIB_BUILDDIR)/import/string.h \
++	$(GNULIB_BUILDDIR)/import/alloca.h @GNULIB_STDINT_H@
+ 
+ #
+ # CLI sub directory definitons
 @@ -650,7 +650,8 @@ ALL_64_TARGET_OBS = \
  	ia64-linux-tdep.o ia64-vms-tdep.o ia64-tdep.o \
  	mips64obsd-tdep.o \

Modified: head/devel/gdb/files/fbsd-threads.c
==============================================================================
--- head/devel/gdb/files/fbsd-threads.c	Thu Nov  5 17:17:05 2015	(r400859)
+++ head/devel/gdb/files/fbsd-threads.c	Thu Nov  5 18:48:46 2015	(r400860)
@@ -766,6 +766,7 @@ fbsd_thread_wait (struct target_ops *ops
   ret = beneath->to_wait (beneath, ptid, ourstatus, options);
   if (GET_PID(ret) >= 0 &&
     ( ourstatus->kind == TARGET_WAITKIND_STOPPED ||
+      ourstatus->kind == TARGET_WAITKIND_VFORKED ||
       ourstatus->kind == TARGET_WAITKIND_FORKED ) )
     {
       lwp = get_current_lwp (GET_PID(ret));


More information about the svn-ports-all mailing list