Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/compat/linux/arch/powerpc Fixed a bug in Linux/powerpc k...



details:   https://anonhg.NetBSD.org/src/rev/882c1ba997f4
branches:  trunk
changeset: 503273:882c1ba997f4
user:      manu <manu%NetBSD.org@localhost>
date:      Sun Feb 04 14:24:38 2001 +0000

description:
Fixed a bug in Linux/powerpc ktrace support (it's still broken, anyway)

diffstat:

 sys/compat/linux/arch/powerpc/linux_ptrace.c |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (31 lines):

diff -r 1c934d91ea04 -r 882c1ba997f4 sys/compat/linux/arch/powerpc/linux_ptrace.c
--- a/sys/compat/linux/arch/powerpc/linux_ptrace.c      Sun Feb 04 11:06:14 2001 +0000
+++ b/sys/compat/linux/arch/powerpc/linux_ptrace.c      Sun Feb 04 14:24:38 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: linux_ptrace.c,v 1.1 2001/01/19 01:36:51 manu Exp $ */
+/*     $NetBSD: linux_ptrace.c,v 1.2 2001/02/04 14:24:38 manu Exp $ */
 
 /*-
  * Copyright (c) 1999, 2001 The NetBSD Foundation, Inc.
@@ -211,7 +211,7 @@
                regs->cr = linux_regs->lccr;
                regs->xer = linux_regs->lxer;
                regs->ctr = linux_regs->lctr;
-               regs->pc = 0; /* XXX obviously this won't work ;o) */
+               regs->pc = linux_regs->lnip; /* XXX */
 
                error = process_write_regs(t, regs);
                goto out;
@@ -293,8 +293,10 @@
                        return 0;
 
        case  LINUX_PTRACE_POKEUSR:
-               /* XXX We don't do much yet... */
-               addr = SCARG(uap, addr);
+               /* 
+                * XXX NetBSD/i386 only handle debugregs here. It seems these 
+                * debugregs are not availlable on powerpc. Hence we do nothing.
+                */
                break;
        default:
                /* never reached */



Home | Main Index | Thread Index | Old Index