From: "Dave Korn" <dave.korn@artimi.com>
To: "'Michael Eager'" <eager@eagercon.com>,
"'Jim Blandy'" <jimb@codesourcery.com>
Cc: <gdb@sources.redhat.com>
Subject: RE: GDB Documentation and Request for Help
Date: Wed, 04 Apr 2007 14:57:00 -0000 [thread overview]
Message-ID: <023601c776c9$86c303e0$2e08a8c0@CAM.ARTIMI.COM> (raw)
In-Reply-To: <460D7DC7.1050803@eagercon.com>
On 30 March 2007 22:15, Michael Eager wrote:
> Jim Blandy wrote:
>> 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.
I stumbled across a fairly useful document some time ago: "Porting GDB (1) arch and frame v0.4", at
http://teawater.googlepages.com/epgdb1.pdf
(there's also a .txt equivalent if you'd prefer). Although it's far from complete, and English is not teawater's first language, it's pretty clear and comprehensible, and has much more up-to-date information than gdbint.
cheers,
DaveK
--
Can't think of a witty .sigline today....
prev parent reply other threads:[~2007-04-04 14:57 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
2007-03-31 8:29 ` Eli Zaretskii
2007-04-04 14:57 ` Dave Korn [this message]
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='023601c776c9$86c303e0$2e08a8c0@CAM.ARTIMI.COM' \
--to=dave.korn@artimi.com \
--cc=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