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

> 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?

It's changed.  I'm going to cut a branch.

> regcache-frame (regs-frame?):
>> A frame that maps directly onto the register cache.
> 
> 
> Doesn't unwind, since we're at the top.

Nope!  At the bottom, and it does unwind.

This unwinds to the ``inner most frame''.  Instead of calling 
create_new_frame(), get_current_frame() creates this frame and then 
unwinds it.

If get_current_frame()'s attempt at unwinding this frame fails.  A fake 
frame is created (or even the regs-frame) and returned  This guarentees 
that `there is always a frame'.

For the moment it unwinds the FP/PC using read_fp() and read_pc(), and 
the registers by reading the register cache.  Eventually, it can use 
methods that: don't suffer from decr-pc-after-break; don't assume global 
state; and also refer to the thread's stop reason when determining the 
pc/fp.

Another name for this one is:

	sentinal-frame

since it acts as the sentinal one beyond the inner most frame.

> 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.

Yes, and Yes.  The later can just plug in.

> 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"?

Oops, yes.  Just:

	chain-frame:

though I think.

Andrew



  reply	other threads:[~2003-01-09  3:06 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 ` `chain-frame' Daniel Jacobowitz
2003-01-09  3:06   ` Andrew Cagney [this message]
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=3E1CE724.2090401@redhat.com \
    --to=ac131313@redhat.com \
    --cc=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