From owner-cvs-all@FreeBSD.ORG Sun Oct 5 02:05:26 2008 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6D6A2106568A; Sun, 5 Oct 2008 02:05:26 +0000 (UTC) (envelope-from davidxu@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 5A9928FC0C; Sun, 5 Oct 2008 02:05:26 +0000 (UTC) (envelope-from davidxu@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id m9525QbR066273; Sun, 5 Oct 2008 02:05:26 GMT (envelope-from davidxu@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id m9525Qti066272; Sun, 5 Oct 2008 02:05:26 GMT (envelope-from davidxu@repoman.freebsd.org) Message-Id: <200810050205.m9525Qti066272@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to davidxu@repoman.freebsd.org using -f From: David Xu Date: Sun, 5 Oct 2008 02:03:54 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/amd64/amd64 vm_machdep.c src/sys/i386/i386 vm_machdep.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Oct 2008 02:05:26 -0000 davidxu 2008-10-05 02:03:54 UTC FreeBSD src repository Modified files: sys/amd64/amd64 vm_machdep.c sys/i386/i386 vm_machdep.c Log: SVN rev 183615 on 2008-10-05 02:03:54Z by davidxu If the current thread has the trap bit set (i.e. a debugger had single stepped the process to the system call), we need to clear the trap flag from the new frame. Otherwise, the new thread will receive a (likely unexpected) SIGTRAP when it executes the first instruction after returning to userland. Revision Changes Path 1.259 +8 -0 src/sys/amd64/amd64/vm_machdep.c 1.292 +8 -0 src/sys/i386/i386/vm_machdep.c