Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Christopher Faylor <cgf@redhat.com>
To: gdb-patches@sources.redhat.com
Subject: Re: RFA: strip stdcall suffixes under cygwin
Date: Wed, 27 Mar 2002 20:09:00 -0000	[thread overview]
Message-ID: <20020328040905.GA5852@redhat.com> (raw)
In-Reply-To: <3CA29627.5040900@cygnus.com>

On Wed, Mar 27, 2002 at 11:03:51PM -0500, Andrew Cagney wrote:
>>Hmm (yes, I know, it's bad form to follow up your own e-mail), is this
>>>an attribute of the object file's symbol information and hence can be
>>>set by examining that info?  If that is true there is no need to
>>>multi-arch it.
>>
>>
>>I'm not sure that I entirely understand the question but what this patch
>>is dealing with is the fact that on Windows function symbols sometimes
>>have a @n attached to them.  'n' is, as far as I know, never anything
>>other than a number.  The only time that a function looks like this is
>>when it is defined with the stdcall (and possibly fastcall) attribute.
>
>It is just that new macro that is a problem.  New target dependant 
>macros/methods need to be configured at run time.

Right.  I thought if I explained what it was doing, either I'd figure
out the answer as I was typing or you'd figure it out as you were
reading.  :-)

>>So, the information could be derived at configure time, at least.  It's
>>purely a windows-specific thing though.  I don't think that there is
>>any other identifying information in the object file that would mark
>>this as a stdcall other than the addition of a '@' to the function
>>name.
>
>Would the executable file's format (MS PE?) identify the executable as
>belonging to windows?

Yes, certainly.  Are you saying the macro could be a global which is
set by detecting if the executable type was PE?

cgf


  reply	other threads:[~2002-03-28  4:09 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-27 15:35 RFA: strip stdcall suffixes under Cygwin Jim Blandy
2002-03-27 15:48 ` RFA: strip stdcall suffixes under cygwin Christopher Faylor
2002-03-27 15:49 ` RFA: strip stdcall suffixes under Cygwin Daniel Jacobowitz
2002-03-27 15:50 ` Andrew Cagney
2002-03-27 17:59   ` Andrew Cagney
2002-03-27 19:42     ` RFA: strip stdcall suffixes under cygwin Christopher Faylor
2002-03-27 20:05       ` Andrew Cagney
2002-03-27 20:09         ` Christopher Faylor [this message]
2002-03-27 20:22           ` Andrew Cagney

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=20020328040905.GA5852@redhat.com \
    --to=cgf@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