Subject: Re: DDB in GENERIC
To: Nathan J. Williams <nathanw@wasabisystems.com>
From: David Laight <david@l8s.co.uk>
List: port-amd64
Date: 02/28/2007 00:00:33
On Mon, Feb 26, 2007 at 06:28:05PM -0500, Nathan J. Williams wrote:
> David Laight <david@l8s.co.uk> writes:
> 
> > On Fri, Feb 23, 2007 at 11:00:13PM +0000, David Laight wrote:
> >> 
> >> amd64 is almost always compiled without a frame pointer, other schemes
> >> (.EH_FRAME) are used to get the stack traceback info.
> >
> > Actually it might make an interesting SoC project to write a stack
> > traceback function that neither requires a frame pointer nor the
> > .eh_frame section.
> 
> This sounds pointlessly masochistic. The compiler is generating useful
> debug information; we should use it. It's not terribly difficult to
> parse and use.

Except that you don't want it loaded for the kernel.

It also isn't that masochistic, you just follow the instruction sequence
forwards monitoring instructions that change 'sp' looking for a return.

	David

-- 
David Laight: david@l8s.co.uk