This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: [gdb-7.5.91] mips sim fails to build on mingw32
- From: Pedro Alves <palves at redhat dot com>
- To: Joel Sherrill <joel dot sherrill at oarcorp dot com>
- Cc: Ralf Corsepius <ralf dot corsepius at rtems dot org>, Mike Frysinger <vapier at gentoo dot org>, "gdb at sourceware dot org" <gdb at sourceware dot org>
- Date: Wed, 27 Mar 2013 11:20:23 +0000
- Subject: Re: [gdb-7.5.91] mips sim fails to build on mingw32
- References: <5evvfpyhuvbs9ftm3edxb7na dot 1363372668425 at email dot android dot com> <5143F627 dot 3030905 at rtems dot org> <5144169C dot 6060902 at rtems dot org> <51448AD1 dot 70201 at oarcorp dot com> <51454320 dot 1090000 at rtems dot org> <5145E9AF dot 9080401 at oarcorp dot com>
On 03/17/2013 04:05 PM, Joel Sherrill wrote:
> + # mingw32 does not support sockser
> + SIM_DV_SOCKSER_O=""
> + case ${host} in
> + *mingw32*) ;;
> + *) SIM_DV_SOCKSER_O="dv-sockser.o"
> + AC_DEFINE_UNQUOTED(
> + [HAVE_DV_SOCKSER], 1, [Define if dv-sockser is usable.])
> + ;;
> + esac
> + AC_SUBST(SIM_DV_SOCKSER_O)
> fi
OOC, is there a fundamental reason dv-sockser.o couldn't
be made to work on mingw, or is it that nobody has bothered yet?
I skimmed the file and it just looked like straight socket stuff, which
usually means that porting to mingw just revolves around including
windows.h/winsock2.h and using send/recv/closesocket instead of bsd
style read/write/close, etc.
--
Pedro Alves