Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Michael Eager <eager@eagercon.com>
To: Jim Blandy <jimb@codesourcery.com>
Cc: gdb@sources.redhat.com
Subject: Re: GDB Documentation and Request for Help
Date: Fri, 30 Mar 2007 21:14:00 -0000	[thread overview]
Message-ID: <460D7DC7.1050803@eagercon.com> (raw)
In-Reply-To: <m3odmah2bx.fsf@codesourcery.com>

Jim Blandy wrote:
> Daniel Jacobowitz <drow@false.org> writes:
>> On Fri, Mar 30, 2007 at 11:26:39AM -0700, Michael Eager wrote:
>>> Jim Blandy wrote:
>>>> If you post here, I think people would be happy to explain what's
>>>> current and what isn't.  I'll watch for your messages.
>>> Thanks.  I think that my questions are not very specific and
>>> it would be better to go through the Target Arch chapter
>>> and mark it up.
>>> But here goes:  what did FRAME_INIT_SAVED get replaced by?
>> It got replaced by an entirely demand driven system.  There's only two
>> entry points: this_id and prev_register.  Every registered unwinder
>> provides both.
> 
> Michael, your question suggests that you're looking at some code in
> your old port, and trying to figure out where it goes in your new
> port.  I would find that a very hard question to answer if I were in
> your shoes.  Instead, start by reading frame-unwind.h and having your
> foo_gdbarch_init function call frame_unwind_append_sniffer with a
> structure containing appropriate functions, written from scratch.
> 
> In other words, you may be able to use the old port to understand how
> your target works, but you'll need to decide afresh how to express
> that understanding in the new arch description framework.

That's exactly the approach I'm taking.

> (Having worked on both, I think the new frame system is *much* nicer
> to work with, and more reliable.  So your efforts won't be wasted.)

I'm sure that it is.  It's just not documented.  Reading code from
other targets to figure out what's needed is, well, challenging.

I'll take another look at frame-unwind.h.

-- 
Michael Eager	 eager@eagercon.com
1960 Park Blvd., Palo Alto, CA 94306  650-325-8077


  reply	other threads:[~2007-03-30 21:14 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-30 17:20 Michael Eager
2007-03-30 18:08 ` Jim Blandy
2007-03-30 18:27   ` Michael Eager
2007-03-30 18:41     ` Daniel Jacobowitz
2007-03-30 21:02       ` Jim Blandy
2007-03-30 21:14         ` Michael Eager [this message]
2007-03-31  8:29           ` Eli Zaretskii
2007-04-04 14:57           ` Dave Korn

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=460D7DC7.1050803@eagercon.com \
    --to=eager@eagercon.com \
    --cc=gdb@sources.redhat.com \
    --cc=jimb@codesourcery.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