From owner-freebsd-ppc@FreeBSD.ORG Thu Aug 24 04:11:15 2006 Return-Path: X-Original-To: ppc@freebsd.org Delivered-To: freebsd-ppc@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EA43E16A4DE; Thu, 24 Aug 2006 04:11:15 +0000 (UTC) (envelope-from marcel@xcllnt.net) Received: from ns1.xcllnt.net (209-128-86-226.BAYAREA.NET [209.128.86.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 42C6543D5D; Thu, 24 Aug 2006 04:11:15 +0000 (GMT) (envelope-from marcel@xcllnt.net) Received: from [192.168.4.150] (pptp0.pn.xcllnt.net [192.168.4.150]) by ns1.xcllnt.net (8.13.6/8.13.6) with ESMTP id k7O4BEUh037383; Wed, 23 Aug 2006 21:11:14 -0700 (PDT) (envelope-from marcel@xcllnt.net) In-Reply-To: <44ED2448.7030503@freebsd.org> References: <44ED2448.7030503@freebsd.org> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <46D747A2-7126-450A-83E4-DA7367706F18@xcllnt.net> Content-Transfer-Encoding: 7bit From: Marcel Moolenaar Date: Wed, 23 Aug 2006 21:10:45 -0700 To: Peter Grehan X-Mailer: Apple Mail (2.752.2) Cc: ppc@freebsd.org Subject: Re: gdb(1) in the tree X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Aug 2006 04:11:16 -0000 On Aug 23, 2006, at 9:00 PM, Peter Grehan wrote: > PowerPC has separate non-coherent I and D caches - writing to > instruction memory requires a a flush of the D cache and an > invalidate of the I cache for that particular memory address. > > This sounds like that type of problem. I'm assuming that gdb uses > a ptrace write to do the breakpoint. There probably needs to be an > MD callout after a PT_WRITE_I. Yes, I was thinking along those lines as well, though I didn't had the details. > I'll see if I can work out what NetBSD does. Ok. In the mean time I'll work on kgdb... -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net