Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Jun 2002 13:18:09 -0700
From:      Mark Peek <mp@FreeBSD.org>
To:        Andrew Gallatin <gallatin@cs.duke.edu>, obrien@FreeBSD.ORG
Cc:        alpha@FreeBSD.ORG
Subject:   Re: gdb breaks world
Message-ID:  <p05111a03b94514f94996@[10.1.10.118]>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?p05111a03b94514f94996>