Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Oct 2015 17:31:17 +0000 (UTC)
From:      Tijl Coosemans <tijl@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r399623 - in head/devel/gdb: . files
Message-ID:  <201510181731.t9IHVHJA044268@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tijl
Date: Sun Oct 18 17:31:17 2015
New Revision: 399623
URL: https://svnweb.freebsd.org/changeset/ports/399623

Log:
  Fix a regression when debugging a threaded process that forks.
  
  PR:		203661
  Submitted by:	luca.pizzamiglio@gmail.com (maintainer)

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

Modified: head/devel/gdb/Makefile
==============================================================================
--- head/devel/gdb/Makefile	Sun Oct 18 17:12:13 2015	(r399622)
+++ head/devel/gdb/Makefile	Sun Oct 18 17:31:17 2015	(r399623)
@@ -3,7 +3,7 @@
 
 PORTNAME=	gdb
 PORTVERSION=	7.10
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	devel
 MASTER_SITES=	GNU
 

Modified: head/devel/gdb/files/fbsd-threads.c
==============================================================================
--- head/devel/gdb/files/fbsd-threads.c	Sun Oct 18 17:12:13 2015	(r399622)
+++ head/devel/gdb/files/fbsd-threads.c	Sun Oct 18 17:31:17 2015	(r399623)
@@ -764,7 +764,9 @@ fbsd_thread_wait (struct target_ops *ops
   td_thrinfo_t ti;
 
   ret = beneath->to_wait (beneath, ptid, ourstatus, options);
-  if (GET_PID(ret) >= 0 && ourstatus->kind == TARGET_WAITKIND_STOPPED)
+  if (GET_PID(ret) >= 0 &&
+    ( ourstatus->kind == TARGET_WAITKIND_STOPPED ||
+      ourstatus->kind == TARGET_WAITKIND_FORKED ) )
     {
       lwp = get_current_lwp (GET_PID(ret));
       ret = thread_from_lwp (BUILD_LWP(lwp, GET_PID(ret)),



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201510181731.t9IHVHJA044268>