Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Doug Evans <xdje42@gmail.com>
To: Pierre-Marie de Rodat <derodat@adacore.com>
Cc: Pedro Alves <palves@redhat.com>,
	 GDB Patches <gdb-patches@sourceware.org>
Subject: Re: [PATCH] Add proper handling for non-local references in nested functions
Date: Sun, 26 Jul 2015 17:28:00 -0000	[thread overview]
Message-ID: <m3bneyzv51.fsf@sspiff.org> (raw)
In-Reply-To: <55AFB35E.3030608@adacore.com> (Pierre-Marie de Rodat's message	of "Wed, 22 Jul 2015 17:14:38 +0200")

Pierre-Marie de Rodat <derodat@adacore.com> writes:
> On 07/22/2015 04:26 PM, Doug Evans wrote:
>> One thought that comes to mind when reading the patch is that
>> you introduce the term "static link", and it doesn't mean what
>> the casual reader will think it means.
>>
>> E.g.,
>>
>> +     This method is designed to work with static links (nested
>> functions
>> +     handling).  Static links are function properties whose
>> evaluation return
>> +     the frame base address for the enclosing frame.
>>
>> I think we need something less ambiguous / more clear.
>
> Having dived in nested functions, “static link” is currently wired in
> my mind to nested functions. ;-) What do you think it can be confused
> with? Statically linked libraries?

Mostly that there's nothing in the reading of "static link" that tells me it
would be anything else. Obviously a casual reader will think it's
*probably* not that, but in the absence of any cues this reader is left
wondering where did this term come from.

> One advantage of “static link” is that it’s the term which the DWARF
> specification uses. GCC says “static chain” instead and I’ve read
> somewhere “activation record”, although it actually means: the record
> pointed to by the static chain.

Bleah, I wasn't aware of this term's usage in DWARF.
That's a good point.
I'd be ok with a comment in a couple of key locations that say
the term is derived from DW_AT_static_link.
[I know you mention it in at least one place, but IWBN
if it were mentioned in, e.g., the description of block_static_link.]

> I liked the one I used because of the DWARF specification vocabulary,
> but I’m open to changing it if it’s confusing.
>
> Thanks in advance for the review!


  reply	other threads:[~2015-07-26 17:28 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-02 14:36 [PATCH] Add proper handling for non-local references in nested subprograms Pierre-Marie de Rodat
2015-03-10 15:26 ` Pedro Alves
2015-03-20 12:24   ` [PATCH] Add proper handling for non-local references in nested functions Pierre-Marie de Rodat
2015-05-29 12:28     ` Pedro Alves
2015-06-09 21:46       ` Pierre-Marie de Rodat
2015-07-22  9:16         ` Pierre-Marie de Rodat
2015-07-22 14:26           ` Doug Evans
2015-07-22 15:14             ` Pierre-Marie de Rodat
2015-07-26 17:28               ` Doug Evans [this message]
2015-07-22 17:58             ` Kevin Buettner
2015-07-23  1:36           ` Kevin Buettner
2015-07-23 10:44             ` Pierre-Marie de Rodat
2015-07-23 13:44               ` Kevin Buettner
2015-07-23 16:14                 ` Pierre-Marie de Rodat
2015-07-23 17:22                   ` Kevin Buettner
2015-07-23 17:33                     ` Pierre-Marie de Rodat
2015-07-23 17:51                       ` Kevin Buettner
2015-07-23 18:06                   ` Kevin Buettner
2015-07-23 18:23                     ` Kevin Buettner
2015-07-24 10:38                       ` Pierre-Marie de Rodat
2015-07-26 17:39                         ` Doug Evans
2015-07-24  9:26                     ` Pierre-Marie de Rodat
2015-07-26 20:35               ` Doug Evans
2015-07-31 10:53                 ` Pierre-Marie de Rodat
2015-08-10  8:34                   ` Pierre-Marie de Rodat
2015-08-13 15:03                     ` Doug Evans
2015-08-14  6:31                       ` Pierre-Marie de Rodat
2015-08-15  5:12                   ` Doug Evans
2015-08-15  6:21                     ` Doug Evans
2015-08-17 13:27                       ` Pierre-Marie de Rodat
2015-08-17 13:33                     ` Pierre-Marie de Rodat
2015-08-22 17:30                       ` Doug Evans
2015-08-25 12:14                         ` Pierre-Marie de Rodat
2015-09-02 23:50                       ` Joel Brobecker
2015-09-03  7:31                         ` Pierre-Marie de Rodat
2015-09-03 12:40                           ` Joel Brobecker
2015-09-03 14:03                             ` Pierre-Marie de Rodat
2015-09-16 16:16                         ` Doug Evans
2015-09-20 18:20                           ` pushed: " Joel Brobecker
2015-08-15  5:13                   ` Doug Evans

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=m3bneyzv51.fsf@sspiff.org \
    --to=xdje42@gmail.com \
    --cc=derodat@adacore.com \
    --cc=gdb-patches@sourceware.org \
    --cc=palves@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