This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH v2] Fix gdbserver build with x86_64-w64-mingw32 -m32
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Zachary T Welch <zwelch at codesourcery dot com>
- Cc: Sergio Durigan Junior <sergiodj at redhat dot com>, gdb-patches at sourceware dot org
- Date: Tue, 13 Jan 2015 13:21:49 +0400
- Subject: Re: [PATCH v2] Fix gdbserver build with x86_64-w64-mingw32 -m32
- Authentication-results: sourceware.org; auth=none
- References: <874mrzu3cd dot fsf at redhat dot com> <1421084758-2096-1-git-send-email-zwelch at codesourcery dot com>
> This patch allows a x86_64-w64-mingw32 toolchain to build a 32-bit
> gdbserver. Without it, gdbserver attempts to link to the 64-bit
> register files, resulting in undefined references.
>
> This version was regenerated with correct version of aclocal and rebased to the
> current HEAD.
>
> * configure.ac: Add check for -m32 on x86_64-*-mingw*.
> * configure.srv: If using -m32 on x86_64-*-mingw*, use i386
> instead of amd64 registers.
> * configure: Regenerated.
As explained in...
https://www.sourceware.org/ml/gdb-patches/2015-01/msg00324.html
... I am more convinced now that this not correct. From what
I have seen so far, I think you are needing this patch because
you are calling configure incorrectly.
--
Joel