From: Pedro Alves <pedro@codesourcery.com>
To: gdb-patches@sourceware.org
Cc: Joel Brobecker <brobecker@adacore.com>,
Tom Tromey <tromey@redhat.com>,
ktietz70@googlemail.com
Subject: Re: [RFA/commit/Win64] Remove new extra leading underscore in symbol name
Date: Thu, 24 Jun 2010 18:42:00 -0000 [thread overview]
Message-ID: <201006241942.32722.pedro@codesourcery.com> (raw)
In-Reply-To: <20100624182317.GI2595@adacore.com>
On Thursday 24 June 2010 19:23:17, Joel Brobecker wrote:
> > Joel> 2010-06-17 Joel Brobecker <brobecker@adacore.com>
> > Joel> gdb/
> > Joel> * coffread.c (getsymname): Skip the leading underscore on pe64.
> >
> > I don't know anything about this target, but the binutils patch includes
> > a --enable-leading-mingw64-underscores option...
> >
> > Joel> + const char *target = bfd_get_target (symfile_bfd);
> > Joel> + const int is_pe64 = (strcmp (target, "pe-x86-64") == 0
> > Joel> + || strcmp (target, "pei-x86-64") == 0);
> >
> > ...so maybe instead of looking at the target name, it would be better to
> > use bfd_get_target_info here?
>
> I'm a little nervous at changing the check to a non target-specific
> one without multi-platform testing. Unfortunately, I haven't had
> a chance to work on this yet, and I'd really like to have that for 7.2.
>
> Would it be OK for me to commit this change as is while I instrument
> what you suggest on all other platforms we have that use COFF? (I'm
> expecting to be able to make that change today)
I'm confused on your change. It sounds like you're using a debugger
that postdates the change to default to not output underscores on
win64, with a compiler that still outputs the underscores. What
happens when you update your compiler? I expect your patch to break
binaries produced by a compiler that also doesn't output
underscores anymore on c symbols, as mingw64's. Isn't that so?
I don't think either a bfd_get_target or bfd_get_target_info check
will always get you a right answer, since those essentially are
returning hardcoded answers in bfd, not how the binaries were
built. Am I wrong?
--
Pedro Alves
next prev parent reply other threads:[~2010-06-24 18:42 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-17 22:25 Joel Brobecker
2010-06-18 17:40 ` Tom Tromey
2010-06-24 18:23 ` Joel Brobecker
2010-06-24 18:31 ` Tom Tromey
2010-06-24 18:42 ` Pedro Alves [this message]
2010-06-24 19:00 ` Joel Brobecker
2010-06-24 19:25 ` Pedro Alves
2010-06-24 20:12 ` Kai Tietz
2010-06-24 20:32 ` Joel Brobecker
2010-06-24 20:41 ` Kai Tietz
2010-06-25 8:33 ` Pierre Muller
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=201006241942.32722.pedro@codesourcery.com \
--to=pedro@codesourcery.com \
--cc=brobecker@adacore.com \
--cc=gdb-patches@sourceware.org \
--cc=ktietz70@googlemail.com \
--cc=tromey@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