Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Jim Blandy <jimb@redhat.com>
To: Daniel Jacobowitz <drow@false.org>
Cc: gdb-patches@sources.redhat.com, ezannoni@redhat.com
Subject: Re: [rfa/dwarf/doc] Inter-compilation-unit reference support for partial DIEs
Date: Tue, 10 Aug 2004 00:24:00 -0000	[thread overview]
Message-ID: <vt24qnbzvuy.fsf@zenia.home> (raw)
In-Reply-To: <20040808193053.GA27352@nevyn.them.org>


Daniel Jacobowitz <drow@false.org> writes:
> On Sun, Aug 08, 2004 at 02:17:41PM -0400, Daniel Jacobowitz wrote:
> > On Sat, Aug 07, 2004 at 11:39:53PM -0500, Jim Blandy wrote:
> > > Well, you understand that I'm trying to get at really has nothing to
> > > do with correctness, or performance, or anything like that.  I want
> > > the structures to look more "normal".  I don't see that they task
> > > they're carrying out is so strange that they shouldn't match the
> > > idioms everyone's got wired into their heads better, to maximize the
> > > chances that they get the big picture from a casual read.
> > > 
> > > How about putting the 'read_in' links all in the always-present
> > > structs?  That way the linked list looks more like a linked list: it
> > > actually points to an instance of the same structure that contains it.
> > > And we can blow four bytes per CU.  Then, if we need it, put a link in
> > > the structure for read-in CU's back to the always-present structs.
> > 
> > You need to make this decision one way or another, because the current
> > idiom makes perfect sense to me, so the change would gain me no clarity
> > at the expense of an extra pointer.  If you'd like me to make that
> > change, I'll do it.
> > 
> > The object is a struct dwarf2_per_cu_data.  Each is either in the
> > read-in or not-read-in state; if it is in the read-in state there is a
> > dwarf2_cu which is owned by this object, containing additional state
> > variables.  One of the additional state variables is the pointer to the
> > next item in the list of read-in objects.
> 
> That didn't come out very well.  Let me try again.

:)

> It sounds like you would consider it clearer to have the read_in
> pointer in the dwarf2_per_cu_data structure, instead of in the
> dwarf2_cu structure that it points to.  Shall I make that change?

I think the best way to tell whether a revision is a matter of
personal taste or a genuine improvement in clarity is to see whether
other developers agree that the revision is an improvement; a
significant improvement is recognizable as such.  Don't worry about
the link.


  reply	other threads:[~2004-08-10  0:24 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-20 17:09 Daniel Jacobowitz
2004-04-20 19:43 ` Eli Zaretskii
2004-04-22 22:15 ` Jim Blandy
2004-06-17  3:42 ` Daniel Jacobowitz
2004-06-17  4:19   ` Eli Zaretskii
2004-06-17  4:21     ` Daniel Jacobowitz
2004-06-17  4:26       ` Eli Zaretskii
2004-07-15 18:45   ` Daniel Jacobowitz
2004-07-16 11:18     ` Eli Zaretskii
2004-08-04 23:07     ` Daniel Jacobowitz
2004-08-05 17:23       ` Jim Blandy
2004-08-05 18:05         ` Daniel Jacobowitz
2004-08-06 22:25           ` Jim Blandy
2004-08-07 22:01             ` Daniel Jacobowitz
2004-08-08  4:42               ` Jim Blandy
2004-08-08 18:17                 ` Daniel Jacobowitz
2004-08-08 19:30                   ` Daniel Jacobowitz
2004-08-10  0:24                     ` Jim Blandy [this message]
2004-08-06 22:28           ` Jim Blandy
2004-08-06 22:58           ` Jim Blandy
2004-08-07  0:05           ` Jim Blandy
2004-09-16 21:15 ` Daniel Jacobowitz
2004-09-20 16:41   ` Daniel Jacobowitz
2004-09-20 20:28   ` Jim Blandy
2004-09-20 23:59     ` Daniel Jacobowitz
2004-04-22 22:58 Michael Elizabeth Chastain

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=vt24qnbzvuy.fsf@zenia.home \
    --to=jimb@redhat.com \
    --cc=drow@false.org \
    --cc=ezannoni@redhat.com \
    --cc=gdb-patches@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