# HG changeset patch # User bartv # Date 1152610596 0 # Node ID 42e30b66c3f84b8cf5a739e6e4a488a8aaed975a # Parent fdefb3632fb0425a4fd7b2c0a9c438aae1d45de7 Work around problem with C++ exceptions in current cygwin diff --git a/host/tools/configtool/standalone/common/ChangeLog b/host/tools/configtool/standalone/common/ChangeLog --- a/host/tools/configtool/standalone/common/ChangeLog +++ b/host/tools/configtool/standalone/common/ChangeLog @@ -1,3 +1,8 @@ +2006-07-10 Bart Veer + + * ecosconfig.cxx: add early C++ exception throw to work around + a cygwin issue. + 2005-12-16 Bart Veer * cdl_exec.cxx (cmd_remove): replace reserved word interface with diff --git a/host/tools/configtool/standalone/common/ecosconfig.cxx b/host/tools/configtool/standalone/common/ecosconfig.cxx --- a/host/tools/configtool/standalone/common/ecosconfig.cxx +++ b/host/tools/configtool/standalone/common/ecosconfig.cxx @@ -72,6 +72,12 @@ int main (int argc, char * argv []) { bool enable_debug_set = false; // --enable-debug or --disable-debug int debug_level = 0; // --enable-debug=[0|1|2] +#ifdef __CYGWIN__ + try { + throw int(42); + } catch(...) { }; +#endif + Tcl_FindExecutable(argv[0]); // getopt() cannot easily be used here since this code has to