svn commit: r399623 - in head/devel/gdb: . files
Tijl Coosemans
tijl at FreeBSD.org
Sun Oct 18 17:31:18 UTC 2015
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 at 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)),
More information about the svn-ports-head
mailing list