From owner-freebsd-emulation Wed Sep 8 11:35:29 1999 Delivered-To: freebsd-emulation@freebsd.org Received: from lor.watermarkgroup.com (lor.watermarkgroup.com [207.202.73.33]) by hub.freebsd.org (Postfix) with ESMTP id C4C71150C4 for ; Wed, 8 Sep 1999 11:35:26 -0700 (PDT) (envelope-from luoqi@watermarkgroup.com) Received: (from luoqi@localhost) by lor.watermarkgroup.com (8.8.8/8.8.8) id OAA12069; Wed, 8 Sep 1999 14:33:57 -0400 (EDT) (envelope-from luoqi) Date: Wed, 8 Sep 1999 14:33:57 -0400 (EDT) From: Luoqi Chen Message-Id: <199909081833.OAA12069@lor.watermarkgroup.com> To: marcus@jet.franken.de, nox@jelal.kn-bremen.de Subject: Re: debugger, stepi, c(ontinue) from breakpoint... Cc: FreeBSD-emulation@FreeBSD.ORG, wine-devel@winehq.com Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > - if ((frame.tf_eflags & PSL_T) && !(frame.tf_eflags & PSL_VM)) { > + if ((frame.tf_eflags & PSL_T) && !(frame.tf_eflags & PSL_VM) && > + *callp->sy_call != sigreturn && *callp->sy_call != linux_sigreturn) { > /* Traced syscall. */ > frame.tf_eflags &= ~PSL_T; > + /* tell the signal handler this is a trace trap */ > + frame.tf_trapno = T_TRCTRAP; > trapsignal(p, SIGTRAP, 0); > } > > (so wine must be the first program that handles SIGTAP for itself and > sets the trace bit from a signal handler? :) I Cc'd this to -emulation, > are any committers reading or should i also send-pr it?) > It seems to me that SIGTRAP is signalled for either a breakpoint or the TF bit in eflags, so it is probably safe to assume it's a single step unless the trapno is T_BPTTRAP. -lq To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message