Module Name: src Committed By: kamil Date: Mon Jan 16 21:19:35 UTC 2017
Modified Files: src/sys/arch/amd64/include: userret.h Log Message: Allow to mix single-step with hardware assisted watchpoints on amd64 This case needs new handling in trap recognition. Sponsored by <The NetBSD Foundation> To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 src/sys/arch/amd64/include/userret.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/amd64/include/userret.h diff -u src/sys/arch/amd64/include/userret.h:1.10 src/sys/arch/amd64/include/userret.h:1.11 --- src/sys/arch/amd64/include/userret.h:1.10 Thu Dec 15 12:04:17 2016 +++ src/sys/arch/amd64/include/userret.h Mon Jan 16 21:19:35 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: userret.h,v 1.10 2016/12/15 12:04:17 kamil Exp $ */ +/* $NetBSD: userret.h,v 1.11 2017/01/16 21:19:35 kamil Exp $ */ /* * XXXfvdl same as i386 counterpart, but should probably be independent. @@ -83,12 +83,9 @@ userret(struct lwp *l) mi_userret(l); /* - * Never mix debug registers with single step, while technically - * possible on x86 CPUs, it adds unnecessary complications we do - * not want to handle it. + * Allow to mix debug registers with single step. */ - if ((l->l_md.md_regs->tf_rflags & PSL_T) == 0 && - l->l_md.md_flags & MDL_X86_HW_WATCHPOINTS) + if (l->l_md.md_flags & MDL_X86_HW_WATCHPOINTS) set_x86_hw_watchpoints(l); else clear_x86_hw_watchpoints();