From owner-freebsd-alpha Sun Jun 30 13:18:17 2002 Delivered-To: freebsd-alpha@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C4D2137B401 for ; Sun, 30 Jun 2002 13:18:13 -0700 (PDT) Received: from relay.pair.com (relay1.pair.com [209.68.1.20]) by mx1.FreeBSD.org (Postfix) with SMTP id C538243E1A for ; Sun, 30 Jun 2002 13:18:12 -0700 (PDT) (envelope-from mp@FreeBSD.org) Received: (qmail 93032 invoked from network); 30 Jun 2002 20:18:11 -0000 Received: from 12-236-91-101.client.attbi.com (HELO ?10.1.10.118?) (12.236.91.101) by relay1.pair.com with SMTP; 30 Jun 2002 20:18:11 -0000 X-pair-Authenticated: 12.236.91.101 Mime-Version: 1.0 X-Sender: (Unverified) Message-Id: In-Reply-To: <15647.24981.880431.704585@grasshopper.cs.duke.edu> References: <15646.25960.889781.783159@grasshopper.cs.duke.edu> <20020629193514.A51177@dragon.nuxi.com> <15646.28621.258621.69134@grasshopper.cs.duke.edu> <20020629214620.A56685@dragon.nuxi.com> <15647.23464.742291.557283@grasshopper.cs.duke.edu> <20020630123742.C71518@dragon.nuxi.com> <15647.24981.880431.704585@grasshopper.cs.duke.edu> Date: Sun, 30 Jun 2002 13:18:09 -0700 To: Andrew Gallatin , obrien@FreeBSD.ORG From: Mark Peek Subject: Re: gdb breaks world Cc: alpha@FreeBSD.ORG Content-Type: text/plain; charset="us-ascii" ; format="flowed" Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org At 3:52 PM -0400 6/30/02, Andrew Gallatin wrote: >David O'Brien writes: > > On Sun, Jun 30, 2002 at 03:27:36PM -0400, Andrew Gallatin wrote: > > > What was the rationale for how the x86 kvm-fbsd.c was brought forward > > > and the alpha kvm-fbsd.c was left behind? > > > > I begged people to try the gdb52 port, but it turns out that there wasn't > > Alpha kgdb support -- only i386 support. At the point I realized > >Partially my fault. I was at my office in LA for the last 3 weeks and >my -current alpha back in OH was powered off, so I had no way to test >the port. I should have at least looked at it, though. Sorry, you can't take the blame...it's my fault! :-) Seriously, I knew that alpha support was missing due to a variety of reasons (lack of hardware, beast being down, needing a kernel/kcore to work on the gdb -k sypport). I did however state what was in the port and alpha kernel support wasn't specified. > > IMO we keep doing things too differently between our arches. I would > > like to see us try to do the same thing as much as possible. I thought > > maybe we could share a single kvm-fbsd.c file; but after looking at it > > when I made that commit I guess not. BUT I do think we can share some > > things across all arches (maybe we add a few #defines to arch headers to > > help). So I expect there will need to be a kvm-fbsd-{ARCH}.c file added > > with just a _few_ things in it. > >I agree. Most of the code is duplicated, but done in slightly >different ways since we (I?) derived the kvm-fbsd.c file from existing >NetBSD/alpha support. I agree with David also. I believe we should unify the kernel support as much as possible. This will be more important as other architectures (sparc64, ia64, ppc) need kernel debugging and the smaller the diffs, the easier the port. I might have some time later to take a look into this and cobble something together. I'll let you know. Mark To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message