This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA/gdb-7.2] Enable leading-mingw64-underscores by default.


> From: Joel Brobecker <brobecker@adacore.com>
> Cc: ktietz70@googlemail.com,	Joel Brobecker <brobecker@adacore.com>
> Date: Wed,  7 Jul 2010 12:21:22 -0700
> 
> There has been a recent ABI change made in GCC for x64-windows, and
> the corresponding change was made in binutils/GCC at the same time.
> This change must be synchronized between GCC & GDB, because they must
> both follow the same convention.
> 
> While this change was made, and backward-compatibility switch was
> added: --enable-leading-mingw64-underscores.
> 
> Until we have a GCC release containing that ABI change (scheduled for
> GCC 4.5.1), I think it is more helpful for this GDB release to assume
> the old ABI.

Is this a build-time only option?  Or can it be toggled at run time?

If the former, I think it is a very bad idea to have the ABI fixed at
build time, because most users of MinGW do not build their own GDB.
At the time when 2 incompatible ABIs coexist, it is very important to
have GDB that could adapt to either.

If the latter, is this issue documented anywhere (I cannot find it)?
If it is documented, why doesn't this patch include a suitable change
for that documentation?  If it isn't, please add it, and please
include in the docs the symptoms of using the wrong ABI, which is when
the user should set this option accordingly.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]