Re: Building GDB 7.3.92 with MinGW

Eli Zaretskii
2012-01-10T20:56:28Z

> From: Tom Tromey <tromey@redhat.com>
> Cc: gdb-patches@sourceware.org
> Date: Tue, 10 Jan 2012 12:12:14 -0700
>
> >>>>> "Eli" == Eli Zaretskii <eliz@gnu.org> writes:
>
> Eli> Any objections to the following patch? (If approved, I will add a
> Eli> comment explaining the problem on Windows which requires this.)
> Eli> --- gdb/gdb_curses.h~0 2012-01-06 06:43:14.000000000 +0200
> Eli> +++ gdb/gdb_curses.h 2012-01-10 13:21:10.626119900 +0200
> Eli> @@ -27,6 +27,9 @@
> Eli> #elif defined (HAVE_CURSESX_H)
> Eli> #include <cursesX.h>
> Eli> #elif defined (HAVE_CURSES_H)
> Eli> +#if defined(__MINGW32__) && defined(MOUSE_MOVED)
> Eli> +#undef MOUSE_MOVED
> Eli> +#endif
> Eli> #include <curses.h>
> Eli> #endif
>
> I don't really mind this patch. But, why is this something for gdb to
> solve rather than mingw?

Unlikely: it's the problem between PDCurses and the MS-Windows API
header files.

> Eli> 2. "make install-strip" fails in readline/, in sim/, and in gdb/:
>
> Eli> The reason is that these directories simply don't have the
> Eli> "install-strip" target in their Makefile.in files. I think that
> Eli> target should be added, because that's AFAIK how GDB is supposed to
> Eli> be installed on end-user systems.
>
> This is in the GNU standards, but in practice few people use it.
>
> Of course, patches are welcome. This isn't the only places where gdb's
> Makefiles diverge from the standards.

I'll try.