Cross-compiling a MinGW GDB

Christian Biesinger cbiesinger@google.com
Wed Jul 22 17:47:36 GMT 2020


On Wed, Jul 22, 2020 at 11:51 AM Eli Zaretskii <eliz@gnu.org> wrote:
>
> Does anyone build their MinGW GDB by cross-compiling it on GNU/Linux?
> If so, could you please share your experience with specifying the
> Python tree during the build, such that the built GDB will be able to
> use Python features on the target Windows systems?
>
> I'm asking because Kieth Marshall is trying to build a recent GDB this
> way, to update the binaries offered by the MinGW site, and he bumps
> into all kinds of annoying problems, see, for example, the discussion
> starting here:
>
>   https://osdn.net/projects/mingw/lists/archive/users/2020-July/000607.html
>
> If someone could provide practical advice how to avoid these
> annoyances, It would probably make Keith's job much more pleasant and
> less time-consuming.

I haven't done this myself but I am aware of two things:
- https://sourceware.org/gdb/wiki/CrossCompilingWithPythonSupport
- The patch discussed at
https://sourceware.org/legacy-ml/gdb-patches/2012-12/msg00754.html
claims to improve cross-compiling with python (Debian used to carry
that patch, though they've since dropped it)

Christian


More information about the Gdb-patches mailing list