Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@mvista.com>
To: gdb@sources.redhat.com
Subject: Re: `chain-frame'
Date: Thu, 09 Jan 2003 02:38:00 -0000	[thread overview]
Message-ID: <20030109023850.GA9277@nevyn.them.org> (raw)
In-Reply-To: <3E1CD9F5.4090607@redhat.com>

I'm trying, but I still don't quite see how you're laying this out. 
All help welcomed!  Maybe I should look over your WIP again; has it
changed since you last posted it?

I think I understand now why you want fake-frame different from
cfi-frame.  I'll probably wrap my head around it better when I take a
good look at the code, eventually.

On Wed, Jan 08, 2003 at 09:09:57PM -0500, Andrew Cagney wrote:
> I've been looking for a better name for the mechanism the targets 
> currently use when unwinding a frame.  I've been using saved-regs frame, 
> but that is pretty pervasive - all frames contain saved regs.
> 
> I'm thinking of instead calling it a `chain-frame' since the existing 
> mechanism relies not just on the frame->saved_regs[] array but also the 
> FRAME_CHAIN() method.
> 
> This means that there are so far potentially:
> 
> dummy-frame:
> Created when doing an inferior function call.

Unwinds from the dummy register cache...

> regcache-frame (regs-frame?):
> A frame that maps directly onto the register cache.

Doesn't unwind, since we're at the top.

> cfi-frame:
> Implemented using dwarf2cfi (this is the holy grail)

Unwinds using the CFI reader and the DWARF-2 CFI data.

> sigtramp-frame:
> Corresponds to a signal trampoline.

Unwinds using the sigtramp handler.

> fake-frame (?):
> Recently discussed, would also use dwarf2cfi but with fake debug 
> information.

Unwinds using the CFI reader and fake DWARF-2 CFI information.  Someday
maybe have a more generalized "unwind language"; that's my hope,
anyway.  So we don't have to encode and decode the CFI gunk.

And the other group of frames just use the current frame chain code,
and poke at the stack to find the saved registers; maybe
"stack-chain-frame"?


-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


  reply	other threads:[~2003-01-09  2:38 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-09  2:11 `chain-frame' Andrew Cagney
2003-01-09  2:38 ` Daniel Jacobowitz [this message]
2003-01-09  3:06   ` `chain-frame' Andrew Cagney
2003-01-09  3:12     ` `chain-frame' Daniel Jacobowitz
2003-01-09 16:04       ` `chain-frame' Andrew Cagney
2003-01-10 15:47       ` `chain-frame' Andrew Cagney
2003-01-10 15:52         ` `chain-frame' Daniel Jacobowitz
2003-01-10 16:18           ` `chain-frame' Andrew Cagney
2003-01-10 16:21             ` `chain-frame' Daniel Jacobowitz
2003-01-10 18:40               ` `chain-frame' Andrew Cagney

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030109023850.GA9277@nevyn.them.org \
    --to=drow@mvista.com \
    --cc=gdb@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox