This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA/commit/Win64] Remove new extra leading underscore in symbol name
- From: Tom Tromey <tromey at redhat dot com>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: gdb-patches at sourceware dot org, ktietz70 at googlemail dot com
- Date: Fri, 18 Jun 2010 11:40:20 -0600
- Subject: Re: [RFA/commit/Win64] Remove new extra leading underscore in symbol name
- References: <1276813536-31761-1-git-send-email-brobecker@adacore.com>
- Reply-to: tromey at redhat dot com
>>>>> "Joel" == Joel Brobecker <brobecker@adacore.com> writes:
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?
Tom