From owner-cvs-all Thu Jan 10 3:50: 2 2002 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 9819A37B404; Thu, 10 Jan 2002 03:49:55 -0800 (PST) Received: (from bde@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g0ABnt273542; Thu, 10 Jan 2002 03:49:55 -0800 (PST) (envelope-from bde) Message-Id: <200201101149.g0ABnt273542@freefall.freebsd.org> From: Bruce Evans Date: Thu, 10 Jan 2002 03:49:55 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/i386/i386 machdep.c trap.c src/sys/i386/linux linux_sysvec.c src/sys/i386/svr4 svr4_machdep.c src/sys/pc98/i386 machdep.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG bde 2002/01/10 03:49:55 PST Modified files: sys/i386/i386 machdep.c trap.c sys/i386/linux linux_sysvec.c sys/i386/svr4 svr4_machdep.c sys/pc98/i386 machdep.c Log: Clear the single-step flag for signal handlers. This fixes bogus trace traps on the first instruction of signal handlers. In trap.c:syscall(), fake a trace trap if the single-step flag was set on entry to the kernel, not if it will be set on exit from the kernel. This fixes bogus trace traps after the last instruction of signal handlers. gdb-4.18 (the version in FreeBSD) still has problems with the program in the PR. These seem to be due to bugs in gdb and not in FreeBSD, and are fixed in gdb-5.1 (the distribution version). PR: 33262 Tested by: k Macy MFC after: 1 day Revision Changes Path 1.488 +4 -6 src/sys/i386/i386/machdep.c 1.211 +3 -1 src/sys/i386/i386/trap.c 1.94 +2 -2 src/sys/i386/linux/linux_sysvec.c 1.24 +2 -1 src/sys/i386/svr4/svr4_machdep.c 1.252 +4 -6 src/sys/pc98/i386/machdep.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message