From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15945 invoked by alias); 12 Dec 2010 20:11:29 -0000 Received: (qmail 15931 invoked by uid 22791); 12 Dec 2010 20:11:27 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,TW_BJ,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-ey0-f170.google.com (HELO mail-ey0-f170.google.com) (209.85.215.170) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 12 Dec 2010 20:11:19 +0000 Received: by eyf5 with SMTP id 5so3263965eyf.15 for ; Sun, 12 Dec 2010 12:11:17 -0800 (PST) Received: by 10.213.29.197 with SMTP id r5mr1711044ebc.57.1292184676809; Sun, 12 Dec 2010 12:11:16 -0800 (PST) Received: from [127.0.0.1] (dslb-084-059-045-038.pools.arcor-ip.net [84.59.45.38]) by mx.google.com with ESMTPS id b52sm4482848eei.19.2010.12.12.12.11.15 (version=SSLv3 cipher=RC4-MD5); Sun, 12 Dec 2010 12:11:16 -0800 (PST) Message-ID: <4D052C56.9000302@gmail.com> Date: Sun, 12 Dec 2010 20:11:00 -0000 From: Michael Trensch User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.23) Gecko/20090812 Lightning/0.9 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 MIME-Version: 1.0 To: insight@sourceware.org Subject: Insight CVS and MingW Content-Type: multipart/mixed; boundary="------------000800070203020809020600" Mailing-List: contact insight-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sourceware.org X-SW-Source: 2010-q4/txt/msg00019.txt.bz2 This is a multi-part message in MIME format. --------------000800070203020809020600 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-length: 913 Hi all, I am currently trying to build a MingW Version of Insight to be able to debug a ARM evaluation board using openOCD as gdbserver. I was tired of using cygwin as I got into trouble when multiple applications were using different cygwin dll's. I know Keith is trying to integrate some patches to make it work, but I did not want to wait (no offense to your work) So I fiddled around a little in the scripts and sources and got a "arm-elf-insight.exe" under MingW. My evaluation board is currently not on my desk and I don't know if I will get it back soon, so I don't have a chance to try it. But I wanted to post the patch which allowed me to compile Insight under my Msys / GCC.4.5.0 environment. I hope it does not break any Cygwin or other support. Probably it can help Keith on his MingW support, if he is not already trying the same things while taking over his wife's PC ;) Best Regards, Michael --------------000800070203020809020600 Content-Type: text/plain; name="Insight_Mingw.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="Insight_Mingw.patch" Content-length: 5491 diff --git a/src/config/tcl.m4 b/src/config/tcl.m4 index 900a2ce..cf7e801 100644 --- a/src/config/tcl.m4 +++ b/src/config/tcl.m4 @@ -33,7 +33,7 @@ AC_DEFUN([SC_PATH_TCLCONFIG], [ # First check to see if --with-tcl was specified. case "${host}" in - *-*-cygwin*) platDir="win" ;; + *-*-cygwin*|*-*-mingw*) platDir="win" ;; *) platDir="unix" ;; esac if test x"${with_tclconfig}" != x ; then @@ -165,7 +165,7 @@ AC_DEFUN([SC_PATH_TKCONFIG], [ # then check for a private Tk library case "${host}" in - *-*-cygwin*) platDir="win" ;; + *-*-cygwin*|*-*-mingw*) platDir="win" ;; *) platDir="unix" ;; esac if test x"${ac_cv_c_tkconfig}" = x ; then diff --git a/src/gdb/configure b/src/gdb/configure index 2bc49d6..6ab54a8 100755 --- a/src/gdb/configure +++ b/src/gdb/configure @@ -15045,7 +15045,7 @@ else # First check to see if --with-tcl was specified. case "${host}" in - *-*-cygwin*) platDir="win" ;; + *-*-cygwin*|*-*-mingw*) platDir="win" ;; *) platDir="unix" ;; esac if test x"${with_tclconfig}" != x ; then @@ -15174,7 +15174,7 @@ else # then check for a private Tk library case "${host}" in - *-*-cygwin*) platDir="win" ;; + *-*-cygwin*|*-*-mingw*) platDir="win" ;; *) platDir="unix" ;; esac if test x"${ac_cv_c_tkconfig}" = x ; then diff --git a/src/gdb/gdbtk/plugins/configure b/src/gdb/gdbtk/plugins/configure index cff4096..51a9445 100755 --- a/src/gdb/gdbtk/plugins/configure +++ b/src/gdb/gdbtk/plugins/configure @@ -3407,7 +3407,7 @@ else # First check to see if --with-tcl was specified. case "${host}" in - *-*-cygwin*) platDir="win" ;; + *-*-cygwin*|*-*-mingw*) platDir="win" ;; *) platDir="unix" ;; esac if test x"${with_tclconfig}" != x ; then @@ -3602,7 +3602,7 @@ else # then check for a private Tk library case "${host}" in - *-*-cygwin*) platDir="win" ;; + *-*-cygwin*|*-*-mingw*) platDir="win" ;; *) platDir="unix" ;; esac if test x"${ac_cv_c_tkconfig}" = x ; then diff --git a/src/libgui/configure b/src/libgui/configure index 797affb..a5d0bac 100755 --- a/src/libgui/configure +++ b/src/libgui/configure @@ -4621,7 +4621,7 @@ if test x$ide_cv_os_cygwin32 = xyes; then fi case "${host}" in -*-*-cygwin*) +*-*-cygwin*|*-*-mingw*) touch ac$$.c if ${CC} -c -mwin32 ac$$.c >/dev/null 2>&1; then case "$LIBGUI_CFLAGS" in @@ -4633,7 +4633,7 @@ case "${host}" in ;; esac case "${host}" in -*-*-cygwin*) +*-*-cygwin*|*-*-mingw*) LIBGUI_CFLAGS="-DWIN32 $LIBGUI_CFLAGS" ;; esac @@ -4673,7 +4673,7 @@ else # First check to see if --with-tcl was specified. case "${host}" in - *-*-cygwin*) platDir="win" ;; + *-*-cygwin*|*-*-mingw*) platDir="win" ;; *) platDir="unix" ;; esac if test x"${with_tclconfig}" != x ; then @@ -4868,7 +4868,7 @@ else # then check for a private Tk library case "${host}" in - *-*-cygwin*) platDir="win" ;; + *-*-cygwin*|*-*-mingw*) platDir="win" ;; *) platDir="unix" ;; esac if test x"${ac_cv_c_tkconfig}" = x ; then @@ -5027,7 +5027,7 @@ cd ${here} if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then # Using in-tree Tcl/Tk case "${host}" in - *-*-cygwin*) platDir="win" ;; + *-*-cygwin*|*-*-mingw*) platDir="win" ;; *) platDir="unix" ;; esac diff --git a/src/libgui/configure.ac b/src/libgui/configure.ac index 0eb55b0..d43156b 100644 --- a/src/libgui/configure.ac +++ b/src/libgui/configure.ac @@ -53,7 +53,7 @@ if test x$ide_cv_os_cygwin32 = xyes; then fi case "${host}" in -*-*-cygwin*) +*-*-cygwin*|*-*-mingw*) touch ac$$.c if ${CC} -c -mwin32 ac$$.c >/dev/null 2>&1; then case "$LIBGUI_CFLAGS" in @@ -65,7 +65,7 @@ case "${host}" in ;; esac case "${host}" in -*-*-cygwin*) +*-*-cygwin*|*-*-mingw*) LIBGUI_CFLAGS="-DWIN32 $LIBGUI_CFLAGS" ;; esac AC_SUBST(LIBGUI_CFLAGS) @@ -93,7 +93,7 @@ cd ${here} if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then # Using in-tree Tcl/Tk case "${host}" in - *-*-cygwin*) platDir="win" ;; + *-*-cygwin*|*-*-mingw*) platDir="win" ;; *) platDir="unix" ;; esac diff --git a/src/tcl/win/tclWinChan.c b/src/tcl/win/tclWinChan.c index 731df20..2cecf34 100644 --- a/src/tcl/win/tclWinChan.c +++ b/src/tcl/win/tclWinChan.c @@ -122,8 +122,8 @@ static Tcl_ChannelType fileChannelType = { }; #ifdef HAVE_NO_SEH -static void *ESP; -static void *EBP; +static void *ESP __attribute__((used)); +static void *EBP __attribute__((used)); #endif /* HAVE_NO_SEH */ diff --git a/src/tcl/win/tclWinDde.c b/src/tcl/win/tclWinDde.c index 80e3070..b745abf 100644 --- a/src/tcl/win/tclWinDde.c +++ b/src/tcl/win/tclWinDde.c @@ -1175,7 +1175,8 @@ Tcl_DdeObjCmd( } case DDE_EVAL: { objc -= (async + 3); - ((Tcl_Obj **) objv) += (async + 3); + //((Tcl_Obj **) objv) += (async + 3); + objv += (async + 3); /* * See if the target interpreter is local. If so, execute diff --git a/src/tcl/win/tclWinReg.c b/src/tcl/win/tclWinReg.c index ee453c7..21772a1 100644 --- a/src/tcl/win/tclWinReg.c +++ b/src/tcl/win/tclWinReg.c @@ -747,7 +747,7 @@ GetValue( Tcl_NewStringObj(Tcl_DStringValue(&buf), Tcl_DStringLength(&buf))); if (regWinProcs->useWide) { - while (*((Tcl_UniChar *)p)++ != 0) {} + while (*((Tcl_UniChar *)p++) != 0) {} } else { while (*p++ != '\0') {} } --------------000800070203020809020600--