From owner-freebsd-ppc@FreeBSD.ORG Thu Aug 24 03:59:54 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 DBB0E16A4E5 for ; Thu, 24 Aug 2006 03:59:54 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from dommail.onthenet.com.au (dommail.OntheNet.com.au [203.13.70.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 425D243D58 for ; Thu, 24 Aug 2006 03:59:49 +0000 (GMT) (envelope-from grehan@freebsd.org) Received: from [10.33.24.110] (nat-198-95-226-228.netapp.com [198.95.226.228]) by dommail.onthenet.com.au (MOS 3.5.7-GR) with ESMTP id CBF25023 (AUTH peterg@ptree32.com.au); Thu, 24 Aug 2006 13:59:42 +1000 (EST) Message-ID: <44ED2448.7030503@freebsd.org> Date: Wed, 23 Aug 2006 21:00:08 -0700 From: Peter Grehan User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.8b) Gecko/20051014 MIME-Version: 1.0 To: Marcel Moolenaar References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 03:59:54 -0000 > I just committed PowerPC support to gdb in the tree. Thankyou for that Marcel ! > There are various problems with gdb. One of the most annoying is that > if you set a breakpoint, it's not always being hit. I suspect this > is a kernel problem and not a gdb problem, because the breakpoint is > sometimes hit. 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. I'll see if I can work out what NetBSD does. later, Peter.