Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Joel Brobecker <brobecker@adacore.com>
To: Roland Schwingel <roland@onevision.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH v3] Add dll trampoline code handling for windows 64bit
Date: Thu, 29 Mar 2012 18:21:00 -0000	[thread overview]
Message-ID: <20120329182102.GO2701@adacore.com> (raw)
In-Reply-To: <4F630E3C.8010006@onevision.com>

Hi Roland,

> 2012-03-16  Roland Schwingel <roland.schwingel@onevision.com>
> 
>         * amd64-windows-tdep.c: #include "frame.h".
>         (amd64_windows_skip_trampoline_code): New function.
>         (amd64_windows_init_abi): Add trampoline registration.

No one reviewed þhe patch as far as I can tell, I am sorry about that.
As a general guideline, it's OK to ping us every week or two...

I think the code looks pretty good, and you can commit, with a couple
of very minor almost-nitpicky little comments (a apologize for asking
for your forgiveness)...

Hmmm, I actually cannot find any copyright assignment for you on
file. Do you have one? Or is this done on behalf of your employer
who might have one? Please let me know... We can give you write-
after-approval priviledges as soon as we have confirmed that you
do have an assignment on file.

> +      /* Get address of function pointer at end of pc.  */
> +      CORE_ADDR indirect_addr = pc + offset + 6;

I think it would be useful to explain where the magic constant "6"
comes from... I'd almost write the expression "pc + 6 + offset".

> +      struct minimal_symbol *indsym =
> +        indirect_addr ? lookup_minimal_symbol_by_pc (indirect_addr) : 0;
> +      const char *symname = indsym ? SYMBOL_LINKAGE_NAME (indsym) : 0;

I'd rather you used NULL instead of 0, even if we're pretty much
guaranteed that NULL will always be zero. That's really nit-picky,
but it seems clearer that way, at least for me.

> +            destination = 

Trailing space there?

> +  /* register trampoline handling code.  */

Sentences need to start with a capital letter...

-- 
Joel


  reply	other threads:[~2012-03-29 18:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-16  9:56 Roland Schwingel
2012-03-29 18:21 ` Joel Brobecker [this message]
2012-03-30  6:47 Roland Schwingel
2012-03-30  9:15 ` Pedro Alves

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=20120329182102.GO2701@adacore.com \
    --to=brobecker@adacore.com \
    --cc=gdb-patches@sourceware.org \
    --cc=roland@onevision.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