Re: Building today's snapshot of GDB with MinGW

Eli Zaretskii
2020-07-02T17:47:07Z

> From: Simon Marchi <simon.marchi@polymtl.ca>
> Cc: gdb-patches@sourceware.org, brobecker@adacore.com, tromey@adacore.com
> Date: Thu, 2 Jul 2020 10:30:00 -0400
>
> > 290 i[34567]86-*-linux*)
> > 291 # Target: Intel 386 running GNU/Linux
> > 292 gdb_target_obs="i386-linux-tdep.o \
> > 293 glibc-tdep.o \
> > 294 solib-svr4.o symfile-mem.o \
> > 295 linux-tdep.o linux-record.o"
> > 296 if test "x$enable_64_bit_bfd" = "xyes"; then
> > 297 # Target: GNU/Linux x86-64
> > 298 gdb_target_obs="amd64-linux-tdep.o ${gdb_target_obs}"
> > 299 fi
> > 300 ;;
> >
> > We could perhaps do the same for Windows, I don't think there would be any
> > downsides to it, and it could be useful to some people.
>
> In fact, we should probably do it, otherwise it's confusing. You build GDB
> for Windows, GDB claims that it supports x86-64, since you can set it using
> "set architecture":
>
> (gdb) set architecture
> auto i386 i386:intel i386:x64-32 i386:x64-32:intel i386:x86-64 i386:x86-64:intel i8086
>
> But that's not really helpful because that GDB doesn't know about Windows
> on x86-64:
>
> (gdb) set architecture i386:x86-64
> warning: A handler for the OS ABI "Windows" is not built into this configuration
> of GDB. Attempting to continue with the default i386:x86-64 settings.
>
> The target architecture is assumed to be i386:x86-64

I agree.