Re: [gdb-7.5.91] mips sim fails to build on mingw32

Joel Sherrill
2013-03-17T01:13:50Z

[-- Attachment #1: Type: text/plain, Size: 959 bytes --]

Hi

Thanks for the pointers.

I have done some minimal testing on this. I built it on
CentOS 6.x with and without the --enable-sim-hardware
option. The patch is against the 7.5.91 snapshot which
should be close enough.

It is based off of bfin.

2013-03-16 Joel Sherrill <joel.sherrill@oarcorp.com>

* configure.ac: Avoid use of dv-sockser on *mingw32*
* aclocal.m4: Regenerated.
* configure: Regenerated.

--joel

On 3/16/2013 6:27 PM, Mike Frysinger wrote:
> On Saturday 16 March 2013 14:48:12 Joel Sherrill wrote:
>> But I don't know how to regenerate the configure script in gdb. I see
>> I need autoconf 2.64 but what's the magic incantation.
> i do:
> cd sim/mips
> aclocal
> autoconf
> -mike

--
Joel Sherrill, Ph.D. Director of Research & Development
joel.sherrill@OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985

[-- Attachment #2: mips_diff.txt --]
[-- Type: text/plain, Size: 993 bytes --]

2013-03-16 Joel Sherrill <joel.sherrill@oarcorp.com>

* configure.ac: Avoid use of dv-sockser on *mingw32*
* aclocal.m4: Regenerated.
* configure: Regenerated.

diff -uNr gdb-7.5.91-virgin/sim/mips/configure.ac gdb-7.5.91/sim/mips/configure.ac
--- gdb-7.5.91-virgin/sim/mips/configure.ac 2013-01-01 00:41:39.000000000 -0600
+++ gdb-7.5.91/sim/mips/configure.ac 2013-03-16 13:38:42.800403652 -0500
@@ -418,9 +418,23 @@
*)
;;
esac
+
SIM_AC_OPTION_HARDWARE($hw_enabled,$hw_devices,$hw_extra_devices)
-mips_extra_objs="dv-sockser.o"
-AC_SUBST(mips_extra_objs)
+
+mips_extra_objs=
+dnl make sure the dv-sockser code can be supported (i.e. windows)
+case ${host} in
+ *mingw32*) ;;
+ *)
+ AC_DEFINE_UNQUOTED([HAVE_DV_SOCKSER], 1, [Define if dv-sockser is usable.])
+ mips_extra_objs="${mips_extra_objs} dv-sockser.o"
+ ;;
+esac
+
+AC_SUBST([mips_extra_objs], ${mips_extra_objs})
+
+## mips_extra_objs="dv-sockser.o"
+## AC_SUBST(mips_extra_objs)

# Choose simulator engine