Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Nov 2007 17:50:26 -0500
From:      John Baldwin <jhb@freebsd.org>
To:        Kris Kennaway <kris@freebsd.org>
Cc:        cvs-src@freebsd.org, src-committers@freebsd.org, cvs-all@freebsd.org
Subject:   Re: cvs commit: src/sys/amd64/amd64 db_trace.c exception.S machdep.c trap.c
Message-ID:  <200711151750.27613.jhb@freebsd.org>
In-Reply-To: <473CC907.3070007@FreeBSD.org>
References:  <200711152200.lAFM0xCF018460@repoman.freebsd.org> <200711151708.23974.jhb@freebsd.org> <473CC907.3070007@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday 15 November 2007 05:32:39 pm Kris Kennaway wrote:
> John Baldwin wrote:
> > On Thursday 15 November 2007 05:00:57 pm John Baldwin wrote:
> >> jhb         2007-11-15 22:00:57 UTC
> >>
> >>   FreeBSD src repository
> >>
> >>   Modified files:
> >>     sys/amd64/amd64      db_trace.c exception.S machdep.c trap.c 
> >>   Log:
> >>   Add support for cross double fault frames in stack traces:
> >>   - Populate the register values for the trapframe put on the stack by 
the
> >>     double fault handler.
> >>   - Teach DDB's trace routine to treat a double fault like other trap 
> > frames.
> >>   
> >>   MFC after:      3 days
> > 
> > As an aside, because amd64 uses much saner stack frames than i386, kgdb 
will 
> > trace across a double fault just fine w/o any further patches if the 
kernel 
> > has this fix.
> > 
> 
> Nice.

I'm working on fixing kgdb on i386 to cross double faults as well.  It's a 
good bit nastier as I have to do evil things to find the tss for the CPU and 
read the registers out of that, but I hope to test it tomorrow.

-- 
John Baldwin



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