From owner-p4-projects@FreeBSD.ORG Sun Jun 27 02:40:20 2004 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 32AFA16A4D0; Sun, 27 Jun 2004 02:40:20 +0000 (GMT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0C0CC16A4CE for ; Sun, 27 Jun 2004 02:40:20 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id E295C43D3F for ; Sun, 27 Jun 2004 02:40:19 +0000 (GMT) (envelope-from davidxu@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i5R2e5ko085316 for ; Sun, 27 Jun 2004 02:40:05 GMT (envelope-from davidxu@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i5R2e5p1085313 for perforce@freebsd.org; Sun, 27 Jun 2004 02:40:05 GMT (envelope-from davidxu@freebsd.org) Date: Sun, 27 Jun 2004 02:40:05 GMT Message-Id: <200406270240.i5R2e5p1085313@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to davidxu@freebsd.org using -f From: David Xu To: Perforce Change Reviews Subject: PERFORCE change 55883 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Jun 2004 02:40:20 -0000 http://perforce.freebsd.org/chv.cgi?CH=55883 Change 55883 by davidxu@davidxu_alona on 2004/06/27 02:40:05 Add ptrace_clear_single_step to every arch, alpha already had one. Affected files ... .. //depot/projects/davidxu_ksedbg/src/sys/amd64/amd64/machdep.c#2 edit .. //depot/projects/davidxu_ksedbg/src/sys/i386/i386/machdep.c#2 edit .. //depot/projects/davidxu_ksedbg/src/sys/ia64/ia64/machdep.c#2 edit .. //depot/projects/davidxu_ksedbg/src/sys/pc98/i386/machdep.c#2 edit .. //depot/projects/davidxu_ksedbg/src/sys/powerpc/powerpc/machdep.c#2 edit .. //depot/projects/davidxu_ksedbg/src/sys/sparc64/sparc64/machdep.c#2 edit Differences ... ==== //depot/projects/davidxu_ksedbg/src/sys/amd64/amd64/machdep.c#2 (text+ko) ==== @@ -1296,6 +1296,13 @@ } int +ptrace_clear_single_step(struct thread *td) +{ + td->td_frame->tf_rflags &= ~PSL_T; + return (0); +} + +int fill_regs(struct thread *td, struct reg *regs) { struct pcb *pcb; ==== //depot/projects/davidxu_ksedbg/src/sys/i386/i386/machdep.c#2 (text+ko) ==== @@ -2222,6 +2222,13 @@ } int +ptrace_clear_single_step(struct thread *td) +{ + td->td_frame->tf_eflags &= ~PSL_T; + return (0); +} + +int fill_regs(struct thread *td, struct reg *regs) { struct pcb *pcb; ==== //depot/projects/davidxu_ksedbg/src/sys/ia64/ia64/machdep.c#2 (text+ko) ==== @@ -1238,6 +1238,14 @@ } int +ptrace_clear_single_step(struct thread *td) +{ + + td->td_frame->tf_special.psr &= ~IA64_PSR_SS; + return (0); +} + +int fill_regs(struct thread *td, struct reg *regs) { struct trapframe *tf; ==== //depot/projects/davidxu_ksedbg/src/sys/pc98/i386/machdep.c#2 (text+ko) ==== @@ -2279,6 +2279,13 @@ } int +ptrace_clear_single_step(struct thread *td) +{ + td->td_frame->tf_eflags &= ~PSL_T; + return (0); +} + +int fill_regs(struct thread *td, struct reg *regs) { struct pcb *pcb; ==== //depot/projects/davidxu_ksedbg/src/sys/powerpc/powerpc/machdep.c#2 (text+ko) ==== @@ -809,6 +809,14 @@ return (ENOSYS); } +int +ptrace_clear_single_step(struct thread *td) +{ + + /* XXX: coming soon... */ + return (ENOSYS); +} + /* * Initialise a struct pcpu. */ ==== //depot/projects/davidxu_ksedbg/src/sys/sparc64/sparc64/machdep.c#2 (text+ko) ==== @@ -693,6 +693,13 @@ return (0); } +int +ptrace_clear_single_step(struct thread *td) +{ + /* TODO; */ + return (0); +} + void exec_setregs(struct thread *td, u_long entry, u_long stack, u_long ps_strings) {